index.html 5.2 KB

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