index.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Express</title>
  5. <link rel="stylesheet" href="stylesheets/style.css">
  6. <link rel="stylesheet" href="stylesheets/bootstrap/bootstrap.css">
  7. <link rel="stylesheet" href="stylesheets/bootstrap/bootstrap-grid.css">
  8. <link rel="stylesheet" href="stylesheets/bootstrap/bootstrap-reboot.css">
  9. </head>
  10. <body>
  11. <!-- Shortcut buttons -->
  12. <div>
  13. <nav class="navbar navbar-expand-lg navbar-light bg-light">
  14. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  15. <ul class="navbar-nav mr-auto">
  16. <li class="nav-item active">
  17. <button class="nav-link btn btn-light" accesskey="a"
  18. title="Voltar para essa lista de atalhos Alt + a"
  19. data-toggle="tooltip" data-placement="bottom">Lista de Atalhos<span class="sr-only">Lista de
  20. Atalhos</span>
  21. </button>
  22. </li>
  23. <li class="nav-item">
  24. <a class="nav-link" href="#" title="Ir para a lista de operações Alt + O" data-toggle="tooltip"
  25. data-placement="bottom">Lista de Operações<span class="sr-only">Lista de
  26. Operações</span></a>
  27. </li>
  28. </ul>
  29. </div>
  30. </nav>
  31. </div>
  32. <!-- Shortcut buttons -->
  33. <!-- Code selects -->
  34. <div>
  35. <div class="container-fluid">
  36. <div class="row">
  37. <nav class="col-md-2 d-none d-md-block bg-light sidebar">
  38. <div class="sidebar-sticky">
  39. <ul class="nav flex-column">
  40. <li class="nav-item">
  41. <button class="dropdown-item" accesskey="v" type="button"
  42. onclick="buildVariablesSubmenu()">Variáveis
  43. </button>
  44. </li>
  45. <li class="nav-item">
  46. <button class="dropdown-item" accesskey="v" type="button"
  47. onclick="buildOperationsSubMenu()">Operações
  48. </button>
  49. </li>
  50. <li class="nav-item">
  51. <button class="btn btn-success" accesskey="v" type="button"
  52. onclick="compile()">Compilar
  53. </button>
  54. </li>
  55. </ul>
  56. </div>
  57. </nav>
  58. <div style="position: absolute; display: none; left: 360px; z-index: 1; width: 400px;" id="subMenuOptions">
  59. <div class="card">
  60. <div class="card-title" id="subMenuOptionsTitle">
  61. <div class="text-center">
  62. <h3 id="subMenuOptionsTitleH3">Variáveis</h3>
  63. </div>
  64. </div>
  65. <div class="card-body" id="subMenuOptionsBody">
  66. </div>
  67. <div class="card-footer" id="subMenuOptionsFooter">
  68. <button type="button" class="btn btn-danger" onclick="subMenuOptions.style.display = 'none';">
  69. Cancelar
  70. </button>
  71. </div>
  72. </div>
  73. </div>
  74. <div id="code" class="col-10 code-editor">
  75. <div class="d-flex justify-content-center">
  76. <h4>Workspace</h4>
  77. </div>
  78. <div id="workspace" class="row m-3" style="background-color: #a3a3a3"></div>
  79. <div class="d-flex justify-content-center">
  80. <h4>Área de Trabalho</h4>
  81. </div>
  82. <div id="main" class="row m-3 m-3" style="background-color: #717171"></div>
  83. <div id="functions" class="row"></div>
  84. <div id="compiledCode">
  85. <div class="d-flex justify-content-center">
  86. <h4>Código compilado</h4>
  87. </div>
  88. <code type="javascripts" id="compiledJavascriptCode"></code>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. <!-- Code selects -->
  94. <!-- Where to place the code modal -->
  95. <div class="modal fade" id="workspacePositionModal" tabindex="-1" role="dialog"
  96. aria-labelledby="workspacePositionModalLabel" aria-hidden="true">
  97. <div class="modal-dialog" role="document">
  98. <div class="modal-content">
  99. <div class="modal-header">
  100. <h5 class="modal-title" id="workspacePositionModalLabel">Onde colocar variável ?</h5>
  101. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  102. <span aria-hidden="true">&times;</span>
  103. </button>
  104. </div>
  105. <div class="modal-body" id="workspacePositionModalBody">
  106. <div class="form-group">
  107. <label for="workspacePositionModalPositionsSelect">Colocar após: </label>
  108. <select class="form-control" id="workspacePositionModalPositionsSelect">
  109. <!-- To be filled dinamically with options -->
  110. </select>
  111. </div>
  112. </div>
  113. <div class="modal-footer">
  114. <button type="button" class="btn btn-secondary" data-dismiss="modal">Fechar</button>
  115. <button type="button" class="btn btn-primary" id="workspacePositionModalAddButton">Adicionar
  116. </button>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. <!-- Where to place the code modal -->
  123. <script src="javascripts/util/jquery-3.5.0.js"></script>
  124. <script src="javascripts/util/jquery.hotkeys.js"></script>
  125. <script src="javascripts/bootstrap/bootstrap.bundle.js"></script>
  126. <script src="javascripts/bootstrap/bootstrap.js"></script>
  127. <script src="javascripts/shortcuts/shortcuts-events.js"></script>
  128. <script src="javascripts/data-types.js"></script>
  129. <script src="javascripts/code-view.js"></script>
  130. <script src="javascripts/util/sub-menu.js"></script>
  131. <script src="javascripts/compiler.js"></script>
  132. <!-- <script src="/javascripts/modules/main-code-types.js"></script>-->
  133. <script src="javascripts/modules/variables/util-variables.js"></script>
  134. <script src="javascripts/modules/variables/main-variables.js"></script>
  135. <script src="javascripts/modules/variables/workspace-variables.js"></script>
  136. <script src="javascripts/modules/variables/sub-menu.js"></script>
  137. <script src="javascripts/modules/operators/operations.js"></script>
  138. <script src="javascripts/modules/operators/sub-menu.js"></script>
  139. <script src="javascripts/modules/operators/main-operators.js"></script>
  140. <script src="javascripts/modules/operators/util-operators.js"></script>
  141. <script src="javascripts/modules/operators/workspace-operators.js"></script>
  142. <script>
  143. console.log("Keyboard key press debug started")
  144. $('body').on('keyup', function (e) {
  145. console.log("Tecla precionada: " + e.originalEvent.key);
  146. console.log("Foco: " + e.target.innerText);
  147. });
  148. </script>
  149. </body>
  150. </html>