index.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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>
  75. </div>
  76. </div>
  77. </div>
  78. <div class="ten wide column">
  79. <div class="ui raised container segment div_to_body">
  80. <div class="ui icon menu center aligned container" style="width: 438px; margin-top: -10px;">
  81. <a class="item">
  82. <i class="file icon"></i>
  83. </a>
  84. <a class="item">
  85. <i class="save icon"></i>
  86. </a>
  87. <a class="item">
  88. <i class="upload icon"></i>
  89. </a>
  90. <a class="item">
  91. <i class="download icon"></i>
  92. </a>
  93. <a class="item undo_button disabled">
  94. <i class="undo icon"></i>
  95. </a>
  96. <a class="item">
  97. <i class="redo icon"></i>
  98. </a>
  99. <a class="item run_button">
  100. <i class="play icon"></i>
  101. </a>
  102. <a class="item">
  103. <i class="stop icon"></i>
  104. </a>
  105. <a class="item">
  106. <i class="help icon"></i>
  107. </a>
  108. </div>
  109. <div class="ui one column container segment ivprog_visual_panel loading">
  110. <div class="program_signature"><data class="i18n" value="ui:program">program</data> { </div>
  111. <div class="all_functions list-group" id="listWithHandle">
  112. </div>
  113. <div class="ui teal small labeled icon button add_function_button">
  114. <data class="i18n" value="ui:btn_function">Function</data>
  115. <i class="add icon"></i>
  116. </div>
  117. <div class="program_final">}</div>
  118. </div>
  119. <div class="ui one column container segment ivprog_textual_panel loading" style="display: none;">
  120. <textarea class="ivprog_textual_code" disabled></textarea>
  121. </div>
  122. <div id='ivprog-term' class="six column wide" style="display: none">
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. <script>
  128. $(document).ready(() => {
  129. ivprogCore.initVisualUI();
  130. $('.menu .item')
  131. .tab(); ;
  132. /*
  133. document.querySelectorAll('.button.menu-item').forEach(function(element, index, array) {
  134. element.addEventListener('dragstart', function(e) {
  135. console.log(this);
  136. }, false);
  137. });*/
  138. });
  139. </script>
  140. <script src="js/semantic/semantic.min.js"></script>
  141. <script src="js/semantic/semantic-buttons.js"></script>
  142. </body>
  143. </html>