index.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <meta http-equiv="Pragma" content="no-cache">
  6. <title></title>
  7. <link href="css/roboto.css" type="text/css" rel="stylesheet">
  8. <link rel="stylesheet" href="css/semantic.min.css"/>
  9. <link rel="stylesheet" type="text/css" href="css/codemirror.css">
  10. <link rel="stylesheet" type="text/css" href="css/show-hint.css">
  11. <link rel="stylesheet" type="text/css" href="css/ttcn.css">
  12. <link rel="stylesheet" type="text/css" href="css/ivprog-visual-1.0.css">
  13. <link rel="stylesheet" type="text/css" href="css/ivprog-term.css">
  14. <link rel="stylesheet" type="text/css" href="css/ivprog-editor.css">
  15. <script src="js/jquery.min.js"></script>
  16. <script src="js/jquery-ui.min.js"></script>
  17. <script src="js/semantic.min.js"></script>
  18. <script src="js/Sortable.js"></script>
  19. <script src="js/filesaver.min.js"></script>
  20. <script src="js/iassign-integration-functions.js"></script>
  21. </head>
  22. <body>
  23. <input type="file" name="ivph_file" id="ivph_file" style="position:absolute;margin-top: -500px !important;">
  24. <div class="ui height_100 add_accordion" id="ui_main_div">
  25. <div class="title default_visual_title">
  26. <i class="dropdown icon"></i>
  27. </div>
  28. <div class="content height_100">
  29. <div class="ui raised container segment div_to_body">
  30. <div class="ui container main_title only_in_frame">
  31. <h2>iVProg</h2>
  32. </div>
  33. <div class="ui icon menu center aligned container" style="width: 438px; margin-top: -20px;">
  34. <a class="item active visual_coding_button">
  35. <i class="window maximize outline icon"></i>
  36. </a>
  37. <a class="item textual_coding_button">
  38. <i class="code icon"></i>
  39. </a>
  40. <a class="item upload_file_button" id="upload_file_button">
  41. <i class="upload icon"></i>
  42. </a>
  43. <a class="item download_file_button" id="download_file_button">
  44. <i class="download icon"></i>
  45. </a>
  46. <a class="item undo_button disabled">
  47. <i class="undo icon"></i>
  48. </a>
  49. <a class="item redo_button disabled">
  50. <i class="redo icon"></i>
  51. </a>
  52. <a id="run_button" class="item run_button">
  53. <i class="play icon"></i>
  54. </a>
  55. <a id="stop_button" class="item stop_button" style="display: none">
  56. <i class="stop icon"></i>
  57. </a>
  58. <a class="item assessment assessment_button">
  59. <i class="check icon"></i>
  60. </a>
  61. <!--<a class="item expand_button">
  62. <i class="expand arrows alternate icon"></i>
  63. </a>-->
  64. <a class="item help_button">
  65. <i class="help icon"></i>
  66. </a>
  67. </div>
  68. <div class="ui one column container segment ivprog_visual_panel loading">
  69. <div class="global_var">
  70. <div class="ui icon button add-globalVar-button add_global_button purple">
  71. <i class="icons">
  72. <i class="icon superscript" style="margin-top: -2px;margin-bottom: 2px;margin-left: 1px;margin-right: 1px; font-size: 18px;"></i>
  73. <i class="corner add icon inverted" style="font-size: 10px;padding-top: 5px;padding-left: 7px;"></i>
  74. </i>
  75. </div>
  76. <div class="list_globals" id="listGlobalsHandle"></div>
  77. </div>
  78. <div class="all_functions list-group" id="listWithHandle">
  79. </div>
  80. <div class="ui teal small labeled icon button add_function_button">
  81. <data class="i18n" value="ui:btn_function">Function</data>
  82. <i class="add icon"></i>
  83. </div>
  84. <div class="program_final"></div>
  85. </div>
  86. <div class="ui one column container segment ivprog_textual_panel loading" style="display: none;">
  87. <textarea id="ivprog-text-editor" class=".ivprog_textual_code"></textarea>
  88. </div>
  89. <div id='ivprog-term-div' class="six column wide">
  90. </div>
  91. </div>
  92. </div>
  93. <div class="dimmer_content_message">
  94. <h3>Aconteceu um erro ao processar a atividade. <br> Recarregue a página para tentar novamente.</h3>
  95. <button class="positive ui button">Recarregar</button>
  96. </div>
  97. <script src="js/iassign-integration-functions.js"></script>
  98. </div>
  99. <script src="js/vendors~main.dd0a03a355e98d9beb77.js"></script><script src="js/main.057ebe8ca55b355184cd.js"></script></body>
  100. <script>
  101. var mouseX;
  102. var mouseY;
  103. $(document).ready(() => {
  104. var $buttons = $('.ivprog_format .button'),
  105. handler = {
  106. activate: function () {
  107. $(this)
  108. .addClass('active')
  109. .siblings()
  110. .removeClass('active');
  111. }
  112. };
  113. $buttons.on('click', handler.activate);
  114. $('.ivprog_format_info').popup(
  115. {
  116. popup: $('.custom.popup'),
  117. on: 'click'
  118. });
  119. $(".data_types_dropdown").dropdown();
  120. $('.ui.dropdown').dropdown();
  121. $('.ivprog_visual_panel').removeClass("loading");
  122. $(document).mousemove(function (e) {
  123. var parentOffset = $('.ivprog_visual_panel').offset();;
  124. mouseX = e.pageX - parentOffset.left + 300;
  125. mouseY = e.pageY - parentOffset.top + 100;
  126. /*$('.created_element').css('top', mouseY);
  127. $('.created_element').css('left', mouseX);*/
  128. });
  129. ivprogCore.LocalizedStrings.updateTagText();
  130. ivprogCore.CodeEditor.initTextEditor("ivprog-text-editor");
  131. iassingIntegration();
  132. if (iLMparameters.iLM_PARAM_TeacherAutoEval == null) {
  133. ivprogCore.initVisualUI();
  134. }
  135. });
  136. </script>
  137. </html>