index.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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. <i class="icon plus circle purple add_global_button"></i>
  63. <i class="icon circle white back"></i>
  64. <div class="ui icon button add-globalVar-button add_global_button purple"><i class="icon superscript"></i></div>
  65. <div class="list_globals" id="listGlobalsHandle"></div>
  66. </div>
  67. <div class="all_functions list-group" id="listWithHandle">
  68. </div>
  69. <div class="ui teal small labeled icon button add_function_button">
  70. <data class="i18n" value="ui:btn_function">Function</data>
  71. <i class="add icon"></i>
  72. </div>
  73. <div class="program_final"></div>
  74. </div>
  75. <div class="ui one column container segment ivprog_textual_panel loading" style="display: none;">
  76. <textarea class="ivprog_textual_code" readonly></textarea>
  77. </div>
  78. <div id='ivprog-term' class="six column wide">
  79. <div class="div_toggle_console"><i class="inverted terminal icon green button_toggle_console"></i></div>
  80. </div>
  81. </div>
  82. </div>
  83. <script src="js/iassign-integration-functions.js"></script>
  84. </div>
  85. </body>
  86. <script>
  87. var mouseX;
  88. var mouseY;
  89. $(document).ready(() => {
  90. var $buttons = $('.ivprog_format .button'),
  91. handler = {
  92. activate: function () {
  93. $(this)
  94. .addClass('active')
  95. .siblings()
  96. .removeClass('active');
  97. }
  98. };
  99. $buttons.on('click', handler.activate);
  100. $('.ivprog_format_info').popup(
  101. {
  102. popup: $('.custom.popup'),
  103. on: 'click'
  104. });
  105. $(".data_types_dropdown").dropdown();
  106. $('.ui.dropdown').dropdown();
  107. $('.ivprog_visual_panel').removeClass("loading");
  108. $(document).mousemove(function (e) {
  109. var parentOffset = $('.ivprog_visual_panel').offset();;
  110. mouseX = e.pageX - parentOffset.left + 300;
  111. mouseY = e.pageY - parentOffset.top + 100;
  112. /*$('.created_element').css('top', mouseY);
  113. $('.created_element').css('left', mouseX);*/
  114. });
  115. ivprogCore.LocalizedStrings.updateTagText();
  116. iassingIntegration();
  117. if (iLMparameters.iLM_PARAM_TeacherAutoEval == null) {
  118. ivprogCore.initVisualUI();
  119. }
  120. });
  121. </script>
  122. </html>