main.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html ng-app="ivprog">
  3. <head>
  4. <title>iVProg - versão HTML</title>
  5. <meta charset="utf-8" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <link href="css/bootstrap.min.css" rel="stylesheet" media="screen" />
  8. <link href="css/font-awesome.css" rel="stylesheet" media="screen" />
  9. <link href="css/bootstrap-editable.css" rel="stylesheet" media="screen" />
  10. <link href="css/ivprog.css" rel="stylesheet" media="screen" />
  11. </head>
  12. <body>
  13. <!--div class="header">
  14. <h1><img src="img/logo.png" title="iVProg" /></h1>
  15. </div-->
  16. <div ng-view></div>
  17. <span ng-controller="CommCtrl" id="commCtrl"></span>
  18. <script src="js/jquery.1.8.3.js"></script>
  19. <script src="js/jsdeferred.jquery.js"></script>
  20. <script src="js/bootstrap.min.js"></script>
  21. <script src="js/angular.js"></script>
  22. <script src="js/app.js"></script>
  23. <script src="js/app-i18n.js"></script>
  24. <script src="js/controllers.js"></script>
  25. <script src="js/services.js"></script>
  26. <script src="js/angular-resource.js"></script>
  27. <script src="js/jquery.ui.js"></script>
  28. <script src="js/angular.ui.min.js"></script>
  29. <script>
  30. function getParameterByName (name) {
  31. var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
  32. return match ? decodeURIComponent(match[1].replace(/\+/g, ' ')) : null;
  33. }
  34. function getAnswer () {
  35. return angular.element("#commCtrl").scope().getSource()
  36. }
  37. function getEvaluation () { // run(true)
  38. //D alert('ivprog/main.html')
  39. return angular.element("#commCtrl").scope().getEvaluation();
  40. //return "getEvaluation will return some value in future";
  41. }
  42. function getEvaluationCallback (nota) {
  43. parent.getEvaluationCallback (nota);
  44. }
  45. var iLMparameters = {
  46. iLM_PARAM_ServerToGetAnswerURL : getParameterByName("iLM_PARAM_ServerToGetAnswerURL"),
  47. iLM_PARAM_SendAnswer : getParameterByName("iLM_PARAM_SendAnswer"),
  48. iLM_PARAM_AssignmentURL : getParameterByName("iLM_PARAM_AssignmentURL"),
  49. iLM_PARAM_Assignment : getParameterByName("iLM_PARAM_Assignment"),
  50. lang : getParameterByName("lang"),
  51. };
  52. function trackAction (action) {
  53. $.post(iLMparameters.iLM_PARAM_ServerToGetAnswerURL+"&track=1", { trackingData: "html=1;"+action }, function(d){});
  54. }
  55. </script>
  56. </body>
  57. </html>