1
0

index.html 5.4 KB

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