index.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  7. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.0/semantic.min.css" integrity="sha256-9mbkOfVho3ZPXfM7W8sV2SndrGDuh7wuyLjtsWeTI1Q=" crossorigin="anonymous" />
  8. <link rel="stylesheet" type="text/css" href="css/ivprog-visual-1.0.css">
  9. <link rel="stylesheet" type="text/css" href="css/ivprog-term.css">
  10. <link rel="stylesheet" type="text/css" href="css/codemirror.css">
  11. <link rel="stylesheet" type="text/css" href="css/show-hint.css">
  12. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
  13. <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"
  14. integrity="sha256-KM512VNnjElC30ehFwehXjx1YCHPiQkOPmqnrWtpccM="
  15. crossorigin="anonymous"></script>
  16. <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.0/semantic.min.js" integrity="sha256-x1fC6BXl6BwnUhfQqqqC0Fd/n12wH+u8u9va6+E7xaA=" crossorigin="anonymous"></script>
  17. <script src="js/Sortable.js"></script>
  18. <script src="js/iassign-integration-functions.js"></script>
  19. <style>
  20. .CodeMirror {
  21. height: 100% !important;
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <div class="ui height_100 add_accordion" id="ui_main_div">
  27. <div class="title default_visual_title">
  28. <i class="dropdown icon"></i>
  29. </div>
  30. <div class="content height_100">
  31. <div class="ui raised container segment div_to_body">
  32. <div class="ui container main_title only_in_frame">
  33. <h2>iVProg</h2>
  34. </div>
  35. <div class="ui icon menu center aligned container" style="width: 438px; margin-top: -20px;">
  36. <a class="item active visual_coding_button">
  37. <i class="window maximize outline icon"></i>
  38. </a>
  39. <a class="item textual_coding_button">
  40. <i class="code icon"></i>
  41. </a>
  42. <a class="item upload_file_button disabled">
  43. <i class="upload icon"></i>
  44. </a>
  45. <a class="item download_file_button disabled">
  46. <i class="download icon"></i>
  47. </a>
  48. <a class="item undo_button disabled">
  49. <i class="undo icon"></i>
  50. </a>
  51. <a class="item redo_button disabled">
  52. <i class="redo icon"></i>
  53. </a>
  54. <a class="item run_button">
  55. <i class="play 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="cor
  73. ner 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. <script src="js/iassign-integration-functions.js"></script>
  94. </div>
  95. </body>
  96. <script>
  97. var mouseX;
  98. var mouseY;
  99. $(document).ready(() => {
  100. var $buttons = $('.ivprog_format .button'),
  101. handler = {
  102. activate: function () {
  103. $(this)
  104. .addClass('active')
  105. .siblings()
  106. .removeClass('active');
  107. }
  108. };
  109. $buttons.on('click', handler.activate);
  110. $('.ivprog_format_info').popup(
  111. {
  112. popup: $('.custom.popup'),
  113. on: 'click'
  114. });
  115. $(".data_types_dropdown").dropdown();
  116. $('.ui.dropdown').dropdown();
  117. $('.ivprog_visual_panel').removeClass("loading");
  118. $(document).mousemove(function (e) {
  119. var parentOffset = $('.ivprog_visual_panel').offset();;
  120. mouseX = e.pageX - parentOffset.left + 300;
  121. mouseY = e.pageY - parentOffset.top + 100;
  122. /*$('.created_element').css('top', mouseY);
  123. $('.created_element').css('left', mouseX);*/
  124. });
  125. ivprogCore.LocalizedStrings.updateTagText();
  126. iassingIntegration();
  127. if (iLMparameters.iLM_PARAM_TeacherAutoEval == null) {
  128. ivprogCore.initVisualUI();
  129. }
  130. });
  131. </script>
  132. </html>