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.

287 lines
10 KiB

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 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. <!-- <label for="fname">File name</label>
  185. <br />
  186. <input type="text" id="fname" name="fname" />
  187. <button id="create" type="button" class="btn btn-success">
  188. Create File
  189. </button>
  190. <a download="info.txt" id="downloadlink" style="display: none"
  191. >Download Here</a
  192. > -->
  193. <h4 class="mt-1">Upload a file</h4>
  194. <div class="mb-3">
  195. <input type="file" id="fileInput" class="form-control" />
  196. </div>
  197. </div>
  198. </div>
  199. </div>
  200. <div class="col-6">
  201. <nav class="navbar navbar-expand-lg text-bg-secondary">
  202. <div class="container-fluid">
  203. <button
  204. class="navbar-toggler"
  205. type="button"
  206. data-bs-toggle="collapse"
  207. data-bs-target="#navbarNav"
  208. aria-controls="navbarNav"
  209. aria-expanded="false"
  210. aria-label="Toggle navigation"
  211. >
  212. <span class="navbar-toggler-icon"></span>
  213. </button>
  214. <div class="collapse navbar-collapse" id="navbarNav">
  215. <ul class="navbar-nav nav-underline">
  216. <li class="nav-item">
  217. <a
  218. class="nav-link text-light active rightNav"
  219. aria-current="page"
  220. href="#"
  221. id="output"
  222. >Output</a
  223. >
  224. </li>
  225. <li class="nav-item">
  226. <a
  227. class="nav-link text-light rightNav"
  228. href="#"
  229. id="simulator"
  230. >Simulator</a
  231. >
  232. </li>
  233. <li class="nav-item">
  234. <a class="nav-link text-light rightNav" href="#" id="graph"
  235. >Graph</a
  236. >
  237. </li>
  238. </ul>
  239. </div>
  240. </div>
  241. </nav>
  242. <div class="form-group">
  243. <div
  244. id="scrollableOutput"
  245. class="form-control scrollable-textarea rounded-0"
  246. style="
  247. height: calc(100vh - 96px);
  248. width: 100%;
  249. overflow: auto;
  250. white-space: nowrap;
  251. "
  252. readonly
  253. placeholder="Output"
  254. ></div>
  255. <div class="zoom-controls">
  256. <button id="zoomOutBtn" class="btn">-</button>
  257. <button id="zoomInBtn" class="btn">+</button>
  258. <button id="centerSvgButton" class="btn">Center</button>
  259. </div>
  260. </div>
  261. </div>
  262. </div>
  263. </div>
  264. <script
  265. src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.min.js"
  266. integrity="sha384-cn7l7gDp0eyniUwwAZgrzD06kc/tftFf19TOAs2zVinnD/C7E91j9yyk5//jjpt/"
  267. crossorigin="anonymous"
  268. ></script>
  269. <script
  270. type="text/javascript"
  271. src="https://cdn.jsdelivr.net/npm/toastify-js"
  272. ></script>
  273. <script src="javascript/syntax.js"></script>
  274. <script src="javascript/index.js"></script>
  275. <script src="javascript/zoom.js"></script>
  276. <script src="javascript/filesHandling.js"></script>
  277. </body>
  278. </html>