exemplo_n_primeiros_fibonacci.html~ 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. <h1>&nbsp;iVProg : Visual Programming (LInE-IME-USP)</h1>
  17. <div class="bloco">
  18. <span ng-controller="CommCtrl" id="commCtrl"></span>
  19. <script src="js/jquery.1.8.3.js"></script>
  20. <script src="js/jsdeferred.jquery.js"></script>
  21. <script src="js/bootstrap.min.js"></script>
  22. <script src="js/angular.js"></script>
  23. <script src="js/app.js"></script>
  24. <!--script src="js/app-i18n.js"></script-->
  25. <script src="js/controllers.js"></script>
  26. <script src="js/services.js"></script>
  27. <script src="js/angular-resource.js"></script>
  28. <script src="js/jquery.ui.js"></script>
  29. <script src="js/angular.ui.min.js"></script>
  30. <div ng-view></div>
  31. <iframe frameborder="0" name="iLM" style="width: 800px; height: 600px;" id="iLM" name="iLM"
  32. src="?MA_PARAM_PropositionURL=true&MA_PARAM_Proposition=exemplo_n_primeiros_fibonacci.ivp">
  33. </iframe>
  34. </div>
  35. <script>
  36. function getParameterByName(name) {
  37. var match = RegExp('[?&]' + name + '=([^&]*)')
  38. .exec(window.location.search);
  39. return match ?
  40. decodeURIComponent(match[1].replace(/\+/g, ' '))
  41. : null;
  42. }
  43. function getAnswer(){
  44. return angular.element("#commCtrl").scope().getSource()
  45. }
  46. function getEvaluation(){
  47. return angular.element("#commCtrl").scope().getEvaluation();
  48. //return "getEvaluation will return some value in future";
  49. }
  50. function getEvaluationCallback(nota){
  51. parent.getEvaluationCallback(nota);
  52. }
  53. var ilaParams = {
  54. MA_PARAM_PropositionURL: getParameterByName("MA_PARAM_PropositionURL"),
  55. MA_PARAM_notSEND: getParameterByName("MA_PARAM_notSEND"),
  56. MA_PARAM_addresPOST: getParameterByName("MA_PARAM_addresPOST"),
  57. MA_PARAM_PropositionURL: getParameterByName("MA_PARAM_PropositionURL"),
  58. MA_PARAM_Proposition: getParameterByName("MA_PARAM_Proposition"),
  59. };
  60. function trackAction(action){
  61. if(ilaParams.MA_PARAM_addresPOST!=null){
  62. $.post(ilaParams.MA_PARAM_addresPOST+"&track=1", { trackingData: "html=1;"+action }, function(d){
  63. });
  64. }
  65. }
  66. </script>
  67. <div class="foot">
  68. <a href="http://www.ime.usp.br/line">LInE</a> |
  69. <a href="http://www.matematica.br">iM&aacute;tica;</a> |
  70. <a href="http://www.usp.br/line/mooc">MOOC</a>
  71. </div>
  72. </body>
  73. </html>