index.html 5.5 KB

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