You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

277 lines
9.8 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
6 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>Internship</title>
  7. <link
  8. rel="stylesheet"
  9. href="node_modules/bootstrap/dist/css/bootstrap.min.css"
  10. />
  11. <link rel="stylesheet" href="styles/prism.css" />
  12. <link
  13. rel="stylesheet"
  14. href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
  15. />
  16. <link
  17. rel="stylesheet"
  18. type="text/css"
  19. href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css"
  20. />
  21. <link rel="stylesheet" href="codemirror-5.65.16/lib/codemirror.css" />
  22. <script src="codemirror-5.65.16/lib/codemirror.js"></script>
  23. <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.53.2/mode/javascript/javascript.min.js"></script>
  24. <script src="node_modules/@viz-js/viz/lib/viz-standalone.js"></script>
  25. </head>
  26. <body>
  27. <div class="container-fluid">
  28. <div class="row gx-0">
  29. <div class="col-6">
  30. <nav class="navbar navbar-expand-lg text-bg-secondary">
  31. <div class="container-fluid">
  32. <a
  33. class="navbar-brand active text-light"
  34. style="padding-bottom: 0.8%"
  35. >Tempest-online</a
  36. >
  37. <button type="button" class="btn btn-primary" id="runBtn">
  38. <i class="fa fa-play pb-1" style="font-size: 15px"></i>
  39. </button>
  40. </div>
  41. </nav>
  42. <div class="form-group">
  43. <div
  44. class="d-flex justify-content-between align-content-center p-1"
  45. >
  46. <h5 class="p-0">Prism model</h5>
  47. <div class="col-lg-2 col-md-3 col-sm-3 d-flex">
  48. <button class="btn border" id="downloadFirstEditor">
  49. <i class="fa fa-download" aria-hidden="true"></i>
  50. </button>
  51. <label for="prismModelInput" class="btn border">
  52. <i class="fa fa-upload" aria-hidden="true"></i>
  53. </label>
  54. <input type="file" id="prismModelInput" class="hiddenInput" />
  55. </div>
  56. </div>
  57. <textarea
  58. id="firstInput"
  59. class="form-control rounded-0"
  60. name="code"
  61. data-mdb-perfect-scrollbar-init
  62. ></textarea>
  63. </div>
  64. <div class="form-group mb-2 mt-2">
  65. <div
  66. class="d-flex justify-content-between align-content-center p-1"
  67. >
  68. <h5 class="p-0">Specifications</h5>
  69. <div class="col-lg-2 col-md-3 col-sm-3 d-flex">
  70. <button class="btn border" id="downloadSpecifications">
  71. <i class="fa fa-download" aria-hidden="true"></i>
  72. </button>
  73. <label for="specificationsInput" class="btn border">
  74. <i class="fa fa-upload" aria-hidden="true"></i>
  75. </label>
  76. <input
  77. type="file"
  78. id="specificationsInput"
  79. class="hiddenInput"
  80. />
  81. </div>
  82. </div>
  83. <textarea
  84. type="text"
  85. class="form-control rounded-0"
  86. style="height: 100%"
  87. id="secondInput"
  88. ></textarea>
  89. </div>
  90. <div class="form-group">
  91. <button
  92. class="btn btn-secondary btn-sm dropdown-toggle"
  93. type="button"
  94. data-bs-toggle="collapse"
  95. data-bs-target="#collapseExample"
  96. aria-expanded="false"
  97. aria-controls="collapseExample"
  98. >
  99. Advanced
  100. </button>
  101. <div class="collapse" id="collapseExample">
  102. <div class="card card-body mt-2 rounded-0">
  103. <div class="row">
  104. <div class="col-sm-2">
  105. <div class="form-group">
  106. <div class="form-check">
  107. <input
  108. class="form-check-input"
  109. type="checkbox"
  110. value="1"
  111. id="checkbox1"
  112. />
  113. <label class="form-check-label" for="checkbox1">
  114. 1
  115. </label>
  116. </div>
  117. <div class="form-check">
  118. <input
  119. class="form-check-input"
  120. type="checkbox"
  121. value="2"
  122. id="checkbox2"
  123. />
  124. <label class="form-check-label" for="checkbox2">
  125. 2
  126. </label>
  127. </div>
  128. <div class="form-check">
  129. <input
  130. class="form-check-input"
  131. type="checkbox"
  132. value="3"
  133. id="checkbox3"
  134. />
  135. <label class="form-check-label" for="checkbox3">
  136. 3
  137. </label>
  138. </div>
  139. </div>
  140. </div>
  141. <div class="col-sm-4">
  142. <div class="form-group">
  143. <div class="form-check">
  144. <input
  145. class="form-check-input"
  146. type="checkbox"
  147. value="4"
  148. id="checkbox4"
  149. />
  150. <label class="form-check-label" for="checkbox4">
  151. 4
  152. </label>
  153. </div>
  154. <div class="form-check">
  155. <input
  156. class="form-check-input"
  157. type="checkbox"
  158. value="5"
  159. id="checkbox5"
  160. />
  161. <label class="form-check-label" for="checkbox5">
  162. 5
  163. </label>
  164. </div>
  165. <div class="form-check">
  166. <input
  167. class="form-check-input"
  168. type="checkbox"
  169. value="6"
  170. id="checkbox6"
  171. />
  172. <label class="form-check-label" for="checkbox6">
  173. 6
  174. </label>
  175. </div>
  176. </div>
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. </div>
  182. <div class="row">
  183. <div class="col">
  184. <h4 class="mt-1">Upload a file</h4>
  185. <div class="mb-3">
  186. <input type="file" id="fileInput" class="form-control" />
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. <div class="col-6">
  192. <nav class="navbar navbar-expand-lg text-bg-secondary">
  193. <div class="container-fluid">
  194. <button
  195. class="navbar-toggler"
  196. type="button"
  197. data-bs-toggle="collapse"
  198. data-bs-target="#navbarNav"
  199. aria-controls="navbarNav"
  200. aria-expanded="false"
  201. aria-label="Toggle navigation"
  202. >
  203. <span class="navbar-toggler-icon"></span>
  204. </button>
  205. <div class="collapse navbar-collapse" id="navbarNav">
  206. <ul class="navbar-nav nav-underline">
  207. <li class="nav-item">
  208. <a
  209. class="nav-link text-light active rightNav"
  210. aria-current="page"
  211. href="#"
  212. id="output"
  213. >Output</a
  214. >
  215. </li>
  216. <li class="nav-item">
  217. <a
  218. class="nav-link text-light rightNav"
  219. href="#"
  220. id="simulator"
  221. >Simulator</a
  222. >
  223. </li>
  224. <li class="nav-item">
  225. <a class="nav-link text-light rightNav" href="#" id="graph"
  226. >Graph</a
  227. >
  228. </li>
  229. </ul>
  230. </div>
  231. </div>
  232. </nav>
  233. <div class="form-group">
  234. <div
  235. id="scrollableOutput"
  236. class="form-control scrollable-textarea rounded-0"
  237. style="
  238. height: calc(100vh - 96px);
  239. width: 100%;
  240. overflow: auto;
  241. white-space: nowrap;
  242. "
  243. readonly
  244. placeholder="Output"
  245. ></div>
  246. <div class="zoom-controls">
  247. <button id="zoomOutBtn" class="btn">-</button>
  248. <button id="zoomInBtn" class="btn">+</button>
  249. <button id="centerSvgButton" class="btn">Center</button>
  250. </div>
  251. </div>
  252. </div>
  253. </div>
  254. </div>
  255. <script
  256. src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.min.js"
  257. integrity="sha384-cn7l7gDp0eyniUwwAZgrzD06kc/tftFf19TOAs2zVinnD/C7E91j9yyk5//jjpt/"
  258. crossorigin="anonymous"
  259. ></script>
  260. <script
  261. type="text/javascript"
  262. src="https://cdn.jsdelivr.net/npm/toastify-js"
  263. ></script>
  264. <script src="javascript/syntax.js"></script>
  265. <script src="javascript/index.js"></script>
  266. <script src="javascript/zoom.js"></script>
  267. <script src="javascript/filesHandling.js"></script>
  268. </body>
  269. </html>