index-local.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Babylon.js Playground</title>
  5. <meta charset='utf-8' />
  6. <meta name="viewport" content="width=device-width, user-scalable=no">
  7. <script src="https://code.jquery.com/pep/0.4.2/pep.min.js"></script>
  8. <!--For canvas/code separator-->
  9. <script src="js/libs/split.js"></script>
  10. <script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.6.2/dat.gui.min.js"></script>
  11. <!-- jszip -->
  12. <script src="js/libs/jszip.min.js"></script>
  13. <script src="js/libs/fileSaver.js"></script>
  14. <!--Monaco-->
  15. <script src="node_modules/monaco-editor/min/vs/loader.js"></script>
  16. <!-- Babylon.js -->
  17. <script src="https://preview.babylonjs.com/cannon.js"></script>
  18. <script src="https://preview.babylonjs.com/Oimo.js"></script>
  19. <script src="../tools/DevLoader/BabylonLoader.js"></script>
  20. <link href="css/index.css" rel="stylesheet" />
  21. </head>
  22. <body>
  23. <div class="navbar navBar1600">
  24. <div class="title">
  25. Babylon.js Playground
  26. </div>
  27. <div class="version" id="mainTitle">
  28. </div>
  29. <div class="category">
  30. <div class="button run" id="runButton1600">Run <i class="fa fa-play" aria-hidden="true"></i></div>
  31. </div>
  32. <div class="category">
  33. <div class="button" id="newButton1600">New<i class="fa fa-file" aria-hidden="true"></i></div>
  34. <div class="button removeOnPhone" id="clearButton1600">Clear<i class="fa fa-trash" aria-hidden="true"></i></div>
  35. </div>
  36. <div class="category">
  37. <div class="button" id="saveButton1600">Save <i class="fa fa-floppy-o" aria-hidden="true"></i></div>
  38. <div class="button removeOnPhone" id="zipButton1600">Zip<i class="fa fa-download" aria-hidden="true"></i></div>
  39. </div>
  40. <div class="category">
  41. <div class="button select">Settings
  42. <div class="toDisplay">
  43. <div class="option subSelect">Theme <i class="fa fa-chevron-right" aria-hidden="true"></i>
  44. <div class="toDisplaySub">
  45. <div class="option" id="darkTheme1600">Dark</div>
  46. <div class="option" id="lightTheme1600">Light</div>
  47. </div>
  48. </div>
  49. <div class="option subSelect"><span id="currentFontSize1600">Font: 14</span><i class="fa fa-chevron-right" aria-hidden="true"></i>
  50. <div class="toDisplaySub">
  51. <div class="option" onclick="setFontSize(12);">12</div>
  52. <div class="option" onclick="setFontSize(14);">14</div>
  53. <div class="option" onclick="setFontSize(16);">16</div>
  54. <div class="option" onclick="setFontSize(18);">18</div>
  55. <div class="option" onclick="setFontSize(20);">20</div>
  56. <div class="option" onclick="setFontSize(22);">22</div>
  57. </div>
  58. </div>
  59. <div class="option" id="safemodeToggle1600">Safe mode <i class="fa fa-square-o" aria-hidden="true"></i></div>
  60. <div class="option checked" id="editorButton1600">Editor <i class="fa fa-check-square" aria-hidden="true"></i>
  61. </div>
  62. <div class="option" id="fullscreenButton1600">Fullscreen</div>
  63. <div class="option" id="editorFullscreenButton1600">Editor Fullscreen</div>
  64. <div class="option" id="formatButton1600">Format code</div>
  65. <div class="option" id="minimapToggle1600">Minimap
  66. <i class="fa fa-square-o" aria-hidden="true"></i>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="button uncheck" id="debugButton1600">Debug layer <i class="fa fa-square-o" aria-hidden="true"></i></div>
  71. <div class="button" id="metadataButton1600">Metadata</div>
  72. </div>
  73. <div class="category right">
  74. <div class="button select"><span id="currentVersion1600">Version: Latest</span>
  75. <div class="toDisplay">
  76. <div class="option" onclick="setVersion('latest');">Latest</div>
  77. <div class="option" onclick="setVersion('2.5');">2.5</div>
  78. </div>
  79. </div>
  80. <div class="button select"> <span id="currentScript1600">Scenes</span>
  81. <div class="toDisplayBig">
  82. <ul id="scriptsList1600">
  83. </ul>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="save-message" id="saveMessage">
  88. This PG has missing metadata. Click save to add them.
  89. </div>
  90. </div>
  91. <div class="navbar navBar1475">
  92. <div class="title">
  93. Babylon.js Playground
  94. </div>
  95. <div class="version" id="mainTitle">
  96. </div>
  97. <div class="category">
  98. <div class="button run" id="runButton1475">Run <i class="fa fa-play" aria-hidden="true"></i></div>
  99. </div>
  100. <div class="category">
  101. <div class="button" id="newButton1475">New<i class="fa fa-file" aria-hidden="true"></i></div>
  102. <div class="button removeOnPhone" id="clearButton1475">Clear<i class="fa fa-trash" aria-hidden="true"></i></div>
  103. </div>
  104. <div class="category">
  105. <div class="button" id="saveButton1475">Save <i class="fa fa-floppy-o" aria-hidden="true"></i></div>
  106. <div class="button removeOnPhone" id="zipButton1475">Zip<i class="fa fa-download" aria-hidden="true"></i></div>
  107. </div>
  108. <div class="category">
  109. <div class="button select">Settings
  110. <div class="toDisplay">
  111. <div class="option subSelect">Theme <i class="fa fa-chevron-right" aria-hidden="true"></i>
  112. <div class="toDisplaySub">
  113. <div class="option" id="darkTheme1475">Dark</div>
  114. <div class="option" id="lightTheme1475">Light</div>
  115. </div>
  116. </div>
  117. <div class="option subSelect"><span id="currentFontSize1475">Font: 14</span><i class="fa fa-chevron-right" aria-hidden="true"></i>
  118. <div class="toDisplaySub">
  119. <div class="option" onclick="setFontSize(12);">12</div>
  120. <div class="option" onclick="setFontSize(14);">14</div>
  121. <div class="option" onclick="setFontSize(16);">16</div>
  122. <div class="option" onclick="setFontSize(18);">18</div>
  123. <div class="option" onclick="setFontSize(20);">20</div>
  124. <div class="option" onclick="setFontSize(22);">22</div>
  125. </div>
  126. </div>
  127. <div class="option" id='safemodeToggle1475'>Safe mode <i class="fa fa-square-o" aria-hidden="true"></i></div>
  128. <div class="option checked" id="editorButton1475">Editor <i class="fa fa-check-square" aria-hidden="true"></i>
  129. </div>
  130. <div class="option" id="fullscreenButton1475">Fullscreen</div>
  131. <div class="option" id="editorFullscreenButton1475">Editor Fullscreen</div>
  132. <div class="option" id="formatButton1475">Format code</div>
  133. <div class="option" id="minimapToggle1475">Minimap
  134. <i class="fa fa-square-o" aria-hidden="true"></i>
  135. </div>
  136. <div class="option" id="debugButton1475">Debug layer<i class="fa fa-square-o" aria-hidden="true"></i></div>
  137. <div class="option" id="metadataButton1475">Metadata</div>
  138. <div class="option subSelect"><span id="currentVersion1475">Vers. : Latest</span><i class="fa fa-chevron-right" aria-hidden="true"></i>
  139. <div class="toDisplaySub">
  140. <div class="option" onclick="setVersion('latest');">Latest</div>
  141. <div class="option" onclick="setVersion('2.5');">2.5</div>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. <div class="category right">
  148. <div class="button select"> <span id="currentScript1475">Scenes</span>
  149. <div class="toDisplayBig">
  150. <ul id="scriptsList1475">
  151. </ul>
  152. </div>
  153. </div>
  154. </div>
  155. <div class="save-message" id="saveMessage">
  156. This PG has missing metadata. Click save to add them.
  157. </div>
  158. </div>
  159. <div class="navbar navBar1030">
  160. <div class="category">
  161. <div class="button run" id="runButton1030">Run <i class="fa fa-play" aria-hidden="true"></i></div>
  162. </div>
  163. <div class="category">
  164. <div class="button" id="newButton1030">New<i class="fa fa-file" aria-hidden="true"></i></div>
  165. <div class="button removeOnPhone" id="clearButton1030">Clear<i class="fa fa-trash" aria-hidden="true"></i></div>
  166. </div>
  167. <div class="category">
  168. <div class="button" id="saveButton1030">Save <i class="fa fa-floppy-o" aria-hidden="true"></i></div>
  169. <div class="button removeOnPhone" id="zipButton1030">Zip<i class="fa fa-download" aria-hidden="true"></i></div>
  170. </div>
  171. <div class="category">
  172. <div class="button select">Settings
  173. <div class="toDisplay">
  174. <div class="option subSelect">Theme <i class="fa fa-chevron-right" aria-hidden="true"></i>
  175. <div class="toDisplaySub">
  176. <div class="option" id="darkTheme1030">Dark</div>
  177. <div class="option" id="lightTheme1030">Light</div>
  178. </div>
  179. </div>
  180. <div class="option subSelect"><span id="currentFontSize1030">Font: 14</span><i class="fa fa-chevron-right" aria-hidden="true"></i>
  181. <div class="toDisplaySub">
  182. <div class="option" onclick="setFontSize(12);">12</div>
  183. <div class="option" onclick="setFontSize(14);">14</div>
  184. <div class="option" onclick="setFontSize(16);">16</div>
  185. <div class="option" onclick="setFontSize(18);">18</div>
  186. <div class="option" onclick="setFontSize(20);">20</div>
  187. <div class="option" onclick="setFontSize(22);">22</div>
  188. </div>
  189. </div>
  190. <div class="option" id="safemodeToggle1030">Safe mode <i class="fa fa-square-o" aria-hidden="true"></i></div>
  191. <div class="option checked" id="editorButton1030">Editor <i class="fa fa-check-square" aria-hidden="true"></i>
  192. </div>
  193. <div class="option" id="fullscreenButton1030">Fullscreen</div>
  194. <div class="option" id="editorFullscreenButton1030">Editor Fullscreen</div>
  195. <div class="option" id="formatButton1030">Format code</div>
  196. <div class="option" id="minimapToggle1030">Minimap
  197. <i class="fa fa-square-o" aria-hidden="true"></i>
  198. </div>
  199. <div class="option" id="debugButton1030">Debug layer<i class="fa fa-square-o" aria-hidden="true"></i></div>
  200. <div class="option" id="metadataButton1030">Metadata</div>
  201. <div class="option subSelect"><span id="currentVersion1030">Vers. : Latest</span><i class="fa fa-chevron-right" aria-hidden="true"></i>
  202. <div class="toDisplaySub">
  203. <div class="option" onclick="setVersion('latest');">Latest</div>
  204. <div class="option" onclick="setVersion('2.5');">2.5</div>
  205. </div>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. <div class="category right">
  211. <div class="button select"> <span id="currentScript1030">Scenes</span>
  212. <div class="toDisplayBig">
  213. <ul id="scriptsList1030">
  214. </ul>
  215. </div>
  216. </div>
  217. </div>
  218. <div class="save-message" id="saveMessage">
  219. This PG has missing metadata. Click save to add them.
  220. </div>
  221. </div>
  222. <div class="navbar navBar750">
  223. <div class="category">
  224. <div class="button select">File
  225. <div class="toDisplay">
  226. <div class="option" id="runButton750">Run <i class="fa fa-play" aria-hidden="true"></i></div>
  227. <div class="option" id="newButton750">New <i class="fa fa-file" aria-hidden="true"></i></div>
  228. <div class="option" id="clearButton750">Clear <i class="fa fa-trash" aria-hidden="true"></i></div>
  229. <div class="option" id="saveButton750">Save <i class="fa fa-floppy-o" aria-hidden="true"></i></div>
  230. <div class="option" id="zipButton750">Zip <i class="fa fa-download" aria-hidden="true"></i></div>
  231. </div>
  232. </div>
  233. </div>
  234. <div class="category">
  235. <div class="button select">Settings
  236. <div class="toDisplay">
  237. <div class="option subSelect">Theme <i class="fa fa-chevron-right" aria-hidden="true"></i>
  238. <div class="toDisplaySub">
  239. <div class="option" id="darkTheme750">Dark</div>
  240. <div class="option" id="lightTheme750">Light</div>
  241. </div>
  242. </div>
  243. <div class="option subSelect"><span id="currentFontSize750">Font: 14</span><i class="fa fa-chevron-right" aria-hidden="true"></i>
  244. <div class="toDisplaySub">
  245. <div class="option" onclick="setFontSize(12);">12</div>
  246. <div class="option" onclick="setFontSize(14);">14</div>
  247. <div class="option" onclick="setFontSize(16);">16</div>
  248. <div class="option" onclick="setFontSize(18);">18</div>
  249. <div class="option" onclick="setFontSize(20);">20</div>
  250. <div class="option" onclick="setFontSize(22);">22</div>
  251. </div>
  252. </div>
  253. <div class="option" id="safemodeToggle750">Safe mode <i class="fa fa-square-o" aria-hidden="true"></i></div>
  254. <div style="display:none;" class="option checked" id="editorButton750">Editor <i class="fa fa-check-square" aria-hidden="true"></i>
  255. </div>
  256. <div class="option" id="fullscreenButton750">Fullscreen</div>
  257. <div class="option" id="editorFullscreenButton750">Editor Fullscreen</div>
  258. <div class="option" id="formatButton750">Format code</div>
  259. <div class="option" id="minimapToggle750">Minimap
  260. <i class="fa fa-square-o" aria-hidden="true"></i>
  261. </div>
  262. <div class="option" id="debugButton750">Debug layer<i class="fa fa-square-o" aria-hidden="true"></i></div>
  263. <div class="option" id="metadataButton750">Metadata</div>
  264. <div class="option subSelect"><span id="currentVersion750">Vers. : Latest</span><i class="fa fa-chevron-right" aria-hidden="true"></i>
  265. <div class="toDisplaySub">
  266. <div class="option" onclick="setVersion('latest');">Latest</div>
  267. <div class="option" onclick="setVersion('2.5');">2.5</div>
  268. </div>
  269. </div>
  270. </div>
  271. </div>
  272. </div>
  273. <div class="category right">
  274. <div class="button select"> <span id="currentScript750">Scenes</span>
  275. <div class="toDisplayBig">
  276. <ul id="scriptsList750">
  277. </ul>
  278. </div>
  279. </div>
  280. </div>
  281. <div class="save-message" id="saveMessage">
  282. This PG has missing metadata. Click save to add them.
  283. </div>
  284. </div>
  285. <div class="wrapper">
  286. <div id="jsEditor"></div>
  287. <div id="canvasZone">
  288. <canvas touch-action="none" id="renderCanvas"></canvas>
  289. </div>
  290. </div>
  291. <span class="label" id="fpsLabel">FPS</span>
  292. <div id="errorZone">
  293. </div>
  294. <div class="navbarBottom">
  295. <div id="statusBar"></div>
  296. <div class="links">
  297. <div class='link'><a target='_new' href="https://www.netlify.com/">Deployed by Netlify</a></div>
  298. <div class='link'> <a target='_new' href="http://www.html5gamedevs.com/forum/16-babylonjs/">Forum</a></div>
  299. <div class='link'><a target='_new' href="https://www.babylonjs.com/sandbox">Sandbox</a></div>
  300. <div class='link'><a target='_new' href="https://doc.babylonjs.com">Documentation</a></div>
  301. <div class='link'><a target='_new' href="https://doc.babylonjs.com/playground">Search</a></div>
  302. </div>
  303. </div>
  304. <div id="saveLayer" class="save-layer">
  305. <div class="save-form">
  306. <label for="saveFormTitle">TITLE</label>
  307. <div class="separator"></div>
  308. <input type="text" maxlength="120" id="saveFormTitle" class="save-form-title">
  309. <label for="saveFormDescription">DESCRIPTION</label>
  310. <div class="separator"></div>
  311. <textarea id="saveFormDescription" rows="4" cols="10"></textarea>
  312. <label for="saveFormTags">TAGS (separated by comma)</label>
  313. <div class="separator"></div>
  314. <textarea id="saveFormTags" rows="4" cols="10"></textarea>
  315. <div class="save-form-buttons" id="saveFormButtons">
  316. <div id="saveFormButtonOk" class="button">OK</div>
  317. <div id="saveFormButtonCancel" class="button">Cancel</div>
  318. </div>
  319. </div>
  320. </div>
  321. <div id="waitDiv">
  322. <span id="waitTitle">Babylon.js Playground<BR><BR><BR></span>
  323. <img src="waitlogo.png" id="waitLogo"/>
  324. </div>
  325. <script src="https://code.jquery.com/jquery.js"></script>
  326. <script src="js/actions.js"></script>
  327. <script src="js/pbt.js"></script>
  328. <script>
  329. BABYLONDEVTOOLS.Loader.require('js/index.js')
  330. .load();
  331. </script>
  332. </body>
  333. </html>