index.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. <link rel="stylesheet" type="text/css" href="js/semantic/semantic.min.css">
  6. <link rel="stylesheet" type="text/css" href="css/ivprog-visual-1.0.css">
  7. <link rel="stylesheet" type="text/css" href="css/ivprog-term.css">
  8. <script src="js/jquery-3.3.1.min.js"></script>
  9. <script src="build/ivprog.bundle.js"></script>
  10. <script src="js/iassign-integration-functions.js"></script>
  11. <script src="i18n/i18n-engine.js"></script>
  12. <script src="js/jquery-ui.js"></script>
  13. <script src="js/Sortable.js"></script>
  14. </head>
  15. <body>
  16. <div class="ui one column doubling stackable grid container">
  17. <div class="column">
  18. <div class="ui container main_title">
  19. <h2>iVProg</h2>
  20. <span>interactive coding</span>
  21. </div>
  22. <div class="ui container content_margin">
  23. <div class="content_sub_margin">
  24. <div class="blue ui ivprog_format buttons">
  25. <button class="ui button active visual_coding_button">Visual</button>
  26. <button class="ui button textual_coding_button">Textual</button>
  27. </div>
  28. <a class="ivprog_format_info">
  29. <i class="circular inverted some-wrapping-div teal info icon small label ivprog_format_info popup"></i>
  30. </a>
  31. <div class="ui custom popup">
  32. Choice how you prefer to develop. If disabled, teacher doesn't allow this change. <a href="#">See documentation about it.</a>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="ui equal height stretched centered grid">
  39. <div class="five wide column">
  40. <div class="ui raised container segment div_to_menu">
  41. <div class="ui top attached tabular menu">
  42. <a class="item" data-tab="variaveis">Vari&aacute;veis</a>
  43. <a class="item active" data-tab="comandos">Comandos</a>
  44. <a class="item" data-tab="funcoes">Fun&ccedil;&otilde;es</a>
  45. </div>
  46. <div class="ui bottom attached tab segment" data-tab="variaveis">
  47. <div class="ui one column container segment ivprog_visual_panel loading">
  48. <div class="global_var">
  49. <div class="ui icon button add-globalVar-button add_global_button"><i class="icon superscript"></i></div>
  50. </div>
  51. <div class="ui container list_globals list-group"></div>
  52. </div>
  53. </div>
  54. <div class="ui bottom attached tab segment active" data-tab="comandos">
  55. <div class="ui one column container segment ivprog_visual_panel loading">
  56. <!--mudar-->
  57. <!-- <div class="ui teal small labeled icon button add_function_button" draggable="true">
  58. <data class="i18n" value="Function">Function</data>
  59. <i class="add icon"></i>
  60. </div> -->
  61. <div class="ui container list-group list-commands">
  62. </div>
  63. </div>
  64. </div>
  65. <div class="ui bottom attached tab segment" data-tab="funcoes">
  66. <div class="ui one column container segment ivprog_visual_panel loading">
  67. <!--mudar-->
  68. <!-- <div class="ui teal small labeled icon button add_function_button" draggable="true">
  69. <data class="i18n" value="Function">Function</data>
  70. <i class="add icon"></i>
  71. </div> -->
  72. <div class="ui container list-group functions_labels">
  73. </div>
  74. <div class="ui container list-group library_labels">
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="ten wide column">
  81. <div class="ui raised container segment div_to_body">
  82. <div class="ui icon menu center aligned container" style="width: 438px; margin-top: -10px;">
  83. <a class="item">
  84. <i class="file icon"></i>
  85. </a>
  86. <a class="item">
  87. <i class="save icon"></i>
  88. </a>
  89. <a class="item">
  90. <i class="upload icon"></i>
  91. </a>
  92. <a class="item">
  93. <i class="download icon"></i>
  94. </a>
  95. <a class="item undo_button disabled">
  96. <i class="undo icon"></i>
  97. </a>
  98. <a class="item">
  99. <i class="redo icon"></i>
  100. </a>
  101. <a class="item run_button">
  102. <i class="play icon"></i>
  103. </a>
  104. <a class="item">
  105. <i class="stop icon"></i>
  106. </a>
  107. <a class="item">
  108. <i class="help icon"></i>
  109. </a>
  110. </div>
  111. <div class="ui one column container segment ivprog_visual_panel loading">
  112. <div class="program_signature"><data class="i18n" value="ui:program">program</data> { </div>
  113. <div class="all_functions list-group" id="listWithHandle">
  114. </div>
  115. <div class="ui teal small labeled icon button add_function_button">
  116. <data class="i18n" value="ui:btn_function">Function</data>
  117. <i class="add icon"></i>
  118. </div>
  119. <div class="program_final">}</div>
  120. </div>
  121. <div class="ui one column container segment ivprog_textual_panel loading" style="display: none;">
  122. <textarea class="ivprog_textual_code" disabled></textarea>
  123. </div>
  124. <div id='ivprog-term' class="six column wide" style="display: none">
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <script>
  130. $(document).ready(() => {
  131. ivprogCore.initVisualUI();
  132. $('.menu .item')
  133. .tab(); ;
  134. /*
  135. document.querySelectorAll('.button.menu-item').forEach(function(element, index, array) {
  136. element.addEventListener('dragstart', function(e) {
  137. console.log(this);
  138. }, false);
  139. });*/
  140. });
  141. </script>
  142. <script src="js/semantic/semantic.min.js"></script>
  143. <script src="js/semantic/semantic-buttons.js"></script>
  144. </body>
  145. </html>