My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

index.html 50KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  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,maximum-scale=1,minimal-ui,shrink-to-fit=no" />
  6. <meta name="Title" content="Marlin WebUI" />
  7. <meta name="Description" content="Marlin WebUI based on E4d@box WebUI" />
  8. <meta name="Generator" content="E4d@box" />
  9. <meta name="Owner" content="E4d@box" />
  10. <meta name="Author" content="MandrakeDesign" />
  11. <meta name="google" content="notranslate" />
  12. <meta http-equiv="Content-Language" content="en_GB" />
  13. <title>Marlin WebUI</title>
  14. <link rel="shortcut icon" href="#" />
  15. <link rel="stylesheet" type="text/css" href="bootstrap.min.css" />
  16. <link rel="stylesheet" type="text/css" href="webmarlin-font.css">
  17. <link rel="stylesheet" type="text/css" href="webmarlin.css" />
  18. <script>
  19. var ua = window.navigator.userAgent;
  20. var msie = ua.indexOf("MSIE ");
  21. if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)){ top.location.replace('index-ie.html'); }
  22. function hideAddressBar() { if(!window.location.hash) { if(document.height < window.outerHeight) { document.body.style.height = (window.outerHeight + 50) + 'px'; }
  23. setTimeout( function(){ window.scrollTo(0, 1); }, 50 );
  24. }}
  25. window.addEventListener("load", function(){ if(!window.pageYOffset){ hideAddressBar(); } } );
  26. window.addEventListener("orientationchange", hideAddressBar );
  27. </script>
  28. <script src="moment.min.js"></script>
  29. <script src="webmarlin-class.js"></script>
  30. </head>
  31. <body>
  32. <!-- Javascript sources ========================================================================================== -->
  33. <script type="text/javascript" src="jquery-3.5.1.slim.min.js"></script>
  34. <script type="text/javascript" src="jquery.browser.min.js"></script>
  35. <script type="text/javascript" src="bootstrap.min.js"></script>
  36. <script type="text/javascript" src="bootstrap4-toggle.min.js"></script>
  37. <script async="" src="filesaver.min.js"></script>
  38. <script type="text/javascript" src="chart.min.js"></script>
  39. <script type="text/javascript" src="webmarlin.js"></script>
  40. <!-- Accordion =================================================================================================== -->
  41. <div id="main-panel" class="h-100 bg-secondary m-0 p-0">
  42. <div class="container-fluid h-100 p-0">
  43. <div class="accordion accordion-always-open h-100 d-flex flex-column bg-light" id="accordion-panels">
  44. <!-- PANEL: Fixed Title ==================================================================================== -->
  45. <div class="bg-dark text-light text-left p-2">
  46. <span class="h4">Marlin WebUI </span> by atbox.tech
  47. <button type="button" class="btn btn-sm btn-success float-right ml-1" data-toggle="modal" data-target="#modal-info" style="width:35px; height:33px"><i class="icon icon-info"></i></button>
  48. <a href="http://marlinfw.org/" target="_blank" class="float-right"><img src="marlin-logo-dark.png" alt="MarlinLogo" width="100" height="33" /></a>
  49. </div>
  50. <!-- PANEL: Fixed connection status bar ==================================================================== -->
  51. <div id="div-conn-statusbar" class="bg-danger text-light text-left p-1">
  52. <div class="float-left font-italic h5 my-0 pl-1">
  53. <span id="div-conn-statusico" class="badge badge-light mr-2" style="width:30px;"><i class="icon icon-plug"></i></span><span id="div-conn-statusmsg">Disconnected</span>
  54. </div>
  55. <div class="btn-toolbar float-right mr-1" role="toolbar">
  56. <div class="btn-group mr-1" role="group">
  57. <button type="button" id="btn-wsconnect" class="btn btn-sm btn-dark" style="width:35px; height:30px"><span id="btn-connect-status"><i class="icon icon-bolt"></i></span></button>
  58. </div>
  59. <div class="btn-group" role="group">
  60. <button type="button" id="btn-settings" class="btn btn-sm btn-dark" style="width:35px; height:30px" data-toggle="modal" data-target="#modal-settings"><i class="icon icon-sliders"></i></button>
  61. </div>
  62. </div>
  63. </div>
  64. <!-- PANEL: Printer status ================================================================================= -->
  65. <div class="card-header flex-shrink-1 p-0 bg-dark text-light" id="accordion-panel-status-head">
  66. <button class="btn btn-sm btn-dark btn-block text-left" type="button" data-toggle="collapse" data-target="#accordion-panel-status-body" aria-expanded="true" aria-controls="accordion-panel-status-body">
  67. <span class="h5"><span class="badge badge-success" style="width:30px;"><i class="icon icon-info-circled"></i></span><span class="ml-2">Status</span></span>
  68. <div class="badge badge-secondary float-right"><span class="h5 icon icon-chevron-down"></span></div>
  69. </button>
  70. </div>
  71. <div id="accordion-panel-status-body" class="collapse flex-grow-1 collapse-panel" aria-labelledby="accordion-panel-status-head" data-parent="#accordion-panels">
  72. <div class="card-body h-100 border-bottom p-1 text-left">
  73. <div class="card mb-1 border-0">
  74. <div class="card-header card-header-title text-light bg-secondary m-0 p-1"><i class="icon icon-info mr-1 ml-1"></i>Printer status</div>
  75. <div class="card-body px-0 py-1 bg-light badge-description">
  76. <div class="border-bottom pb-1">
  77. Printing status <div id="div-pstatus-sdprint" class="badge badge-danger badge-description float-right pb-1">Idle</div>
  78. </div>
  79. <div id="div-pstatus-timer" class="border-bottom py-1 collapse">
  80. Printing timer
  81. <div class="float-right ml-1">Remain: <span id="div-pstatus-timer-remain" class="badge badge-info badge-description pb-1">0:45:12</span></div>
  82. <div class="float-right ml-1">Estimated: <span id="div-pstatus-timer-estimated" class="badge badge-info badge-description pb-1">1:12:34</span></div>
  83. <div class="float-right">Elapsed: <span id="div-pstatus-timer-elapsed" class="badge badge-info badge-description pb-1">0:00:00</span></div>
  84. </div>
  85. <div id="div-pstatus-progress" class="pt-1 collapse">
  86. Printing progress:
  87. <div id="div-pstatus-progress-percent" class="badge badge-info badge-description float-right pb-1">10%</div>
  88. <div id="div-pstatus-progress-bytes" class="badge badge-info badge-description float-right pb-1 mr-1">1 of 123456</div>
  89. <div class="progress mt-1" style="height: 10px;"><div class="progress-bar bg-success" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div></div>
  90. </div>
  91. </div>
  92. </div>
  93. <div class="card mb-1 border-0">
  94. <div class="card-header card-header-title text-light bg-secondary m-0 p-1"><i class="icon icon-thermometer mr-1 ml-1"></i>Temperatures</div>
  95. <div class="card-body px-0 py-1 bg-light">
  96. <div>
  97. Auto temperature detection
  98. <div class="float-right form-inline">
  99. <select id="auto-temp-interval" class="form-control form-control-sm mr-1" style="width:80px;" disabled>
  100. <option value="1">1 sec</option>
  101. <option value="5">5 sec</option>
  102. <option value="10">10 sec</option>
  103. <option value="30">30 sec</option>
  104. <option value="60">60 sec</option>
  105. </select>
  106. <input type="checkbox" id="set-auto-temp" data-input-type="togglebtn" data-size="sm" data-width="80" data-toggle="toggle" data-onstyle="success" data-offstyle="outline-dark" data-on="ON" data-off="OFF" disabled>
  107. </div>
  108. </div>
  109. <canvas id="chart-temps" height="150"></canvas>
  110. <table class="w-100" cellpadding="0" cellspacing="0">
  111. <tr>
  112. <td width="40%">
  113. <div class="card mr-1">
  114. <div class="card-header py-0 px-1 bg-info text-light card-header-description">Sensor</div>
  115. <div class="card-body py-0 px-1 card-header-description">
  116. <table class="w-100">
  117. <tr><td class="border-bottom" style="height:28px;">Hotend (extruder) sensor</td></tr>
  118. <tr><td style="height:28px;">Bed sensor</td></tr>
  119. </table>
  120. </div>
  121. </div>
  122. </td>
  123. <td width="15%">
  124. <div class="card mr-1">
  125. <div class="card-header py-0 px-1 bg-info text-light card-header-description">Detected</div>
  126. <div class="card-body py-0 px-1 card-header-description text-right">
  127. <table class="w-100">
  128. <tr><td class="border-bottom" style="height:28px;"><div id="div-temp-extruder-detect">-</div></td></tr>
  129. <tr><td style="height:28px;"><div id="div-temp-bed-detect">-</div></td></tr>
  130. </table>
  131. </div>
  132. </div>
  133. </td>
  134. <td width="15%">
  135. <div class="card mr-1">
  136. <div class="card-header py-0 px-1 bg-info text-light card-header-description">Set</div>
  137. <div class="card-body py-0 px-1 card-header-description text-right">
  138. <table class="w-100">
  139. <tr><td class="border-bottom" style="height:28px;"><div id="div-temp-extruder-set">-</div></td></tr>
  140. <tr><td style="height:28px;"><div id="div-temp-bed-set">-</div></td></tr>
  141. </table>
  142. </div>
  143. </div>
  144. </td>
  145. <td width="15%">
  146. <div class="card mr-1">
  147. <div class="card-header py-0 px-1 bg-info text-light card-header-description">Unit</div>
  148. <div class="card-body py-0 px-1 card-header-description text-center">
  149. <table class="w-100">
  150. <tr><td class="border-bottom" style="height:28px;"><div id="div-temp-extruder-unit">-</div></td></tr>
  151. <tr><td style="height:28px;"><div id="div-temp-bed-unit">-</div></td></tr>
  152. </table>
  153. </div>
  154. </div>
  155. </td>
  156. <td width="20%">
  157. <div class="card">
  158. <div class="card-header py-0 px-1 bg-info text-light card-header-description">Chart display</div>
  159. <div class="card-body py-0 px-1 card-header-description text-center">
  160. <table class="w-100">
  161. <tr>
  162. <td class="border-bottom" style="height:28px;">
  163. <div class="custom-control custom-switch">
  164. <input type="checkbox" class="custom-control-input" id="chart-show-extruder" checked disabled>
  165. <label id="chart-show-extruder-label" class="custom-control-label" for="chart-show-extruder">Show</label>
  166. </div>
  167. </td>
  168. </tr>
  169. <tr>
  170. <td style="height:28px;">
  171. <div class="custom-control custom-switch">
  172. <input type="checkbox" class="custom-control-input" id="chart-show-bed" checked disabled>
  173. <label id="chart-show-bed-label" class="custom-control-label" for="chart-show-bed">Show</label>
  174. </div>
  175. </td>
  176. </tr>
  177. </table>
  178. </div>
  179. </div>
  180. </td>
  181. </tr>
  182. </table>
  183. </div>
  184. <div class="card mb-1 border-0">
  185. <div class="card-header card-header-title text-light bg-secondary m-0 p-1"><i class="icon icon-refresh mr-1 ml-1"></i>Hotend fan speed</div>
  186. <div class="card-body px-0 py-1 bg-light">
  187. <table width="100%" cellspacing="0" cellpadding="0" border="0">
  188. <tr>
  189. <td width="70%" valign="top" class="pr-2">
  190. <table class="w-100" cellspacing="0" cellpadding="0" border="0">
  191. <tr style="height:20px;">
  192. <td class="border-bottom card-header-description">Current fan speed</td>
  193. <td class="border-bottom card-header-description text-right"><div id="div-fan-speed-current">-</div></td>
  194. </tr>
  195. <tr style="height:20px;">
  196. <td class="border-bottom card-header-description">Set fan speed</td>
  197. <td class="border-bottom card-header-description text-right"><div id="div-fan-speed-set">-</div></td>
  198. </tr>
  199. <tr>
  200. <td colspan="2" class="card-header-description">
  201. <table class="w-100">
  202. <tr>
  203. <td width="9%" class="text-left">OFF</td>
  204. <td width="9%" class="text-center">10%</td>
  205. <td width="9%" class="text-center">20%</td>
  206. <td width="9%" class="text-center">30%</td>
  207. <td width="9%" class="text-center">40%</td>
  208. <td width="10%" class="text-center">50%</td>
  209. <td width="9%" class="text-center">60%</td>
  210. <td width="9%" class="text-center">70%</td>
  211. <td width="9%" class="text-center">80%</td>
  212. <td width="9%" class="text-center">90%</td>
  213. <td width="9%" class="text-right">FULL</td>
  214. </tr>
  215. </table>
  216. </td>
  217. </tr>
  218. <tr><td colspan="2"><input type="range" class="custom-range" min="0" max="100" step="1" value="0" id="fan-speed-range" disabled></td></tr>
  219. </table>
  220. </td>
  221. <td width="30%"><canvas id="chart-fanspeed" height="70" width="100"></canvas></td>
  222. </tr>
  223. </table>
  224. </div>
  225. </div>
  226. </div>
  227. </div>
  228. </div>
  229. <!-- PANEL: Printer controls =============================================================================== -->
  230. <div class="card-header flex-shrink-1 p-0 bg-dark text-light" id="accordion-panel-controls-head">
  231. <button class="btn btn-sm btn-dark btn-block text-left" type="button" data-toggle="collapse" data-target="#accordion-panel-controls-body" aria-expanded="true" aria-controls="accordion-panel-controls-body">
  232. <span class="h5"><span class="badge badge-success" style="width:30px;"><i class="icon icon-tasks"></i></span><span class="ml-2">Controls</span></span>
  233. <div class="badge badge-secondary float-right"><span class="h5 icon icon-chevron-down"></span></div>
  234. </button>
  235. </div>
  236. <div id="accordion-panel-controls-body" class="collapse flex-grow-1 collapse-panel" aria-labelledby="accordion-panel-controls-head" data-parent="#accordion-panels">
  237. <div class="card-body h-100 border-bottom p-1 text-left">
  238. <div class="card mb-1 border-0">
  239. <div class="card-header card-header-title text-light bg-secondary m-0 p-1"><i class="icon icon-home mr-1 ml-1"></i>Home positioning</div>
  240. <div class="card-body px-0 py-1 bg-light badge-description">
  241. <table class="w-100" cellpadding="0" cellspacing="0">
  242. <tr>
  243. <td class="text-center text-light bg-info rounded-top">All axis</td>
  244. <td style="width:2px"></td>
  245. <td class="text-center text-light bg-info rounded-top">X axis</td>
  246. <td style="width:2px"></td>
  247. <td class="text-center text-light bg-info rounded-top">Y axis</td>
  248. <td style="width:2px"></td>
  249. <td class="text-center text-light bg-info rounded-top">Z axis</td>
  250. </tr>
  251. <tr>
  252. <td class="text-center"><button id="btn-move-home-all" type="button" class="btn btn-block btn-dark" style="border-radius:0px 0px 5px 5px;" disabled><i class="icon icon-home mr-1"></i><i class="icon icon-arrows"></i></button></td>
  253. <td style="width:2px"></td>
  254. <td class="text-center"><button id="btn-move-home-x" type="button" class="btn btn-block btn-dark" style="border-radius:0px 0px 5px 5px;" disabled><i class="icon icon-home mr-1"></i><i class="icon icon-arrows-h"></i></button></td>
  255. <td style="width:2px"></td>
  256. <td class="text-center"><button id="btn-move-home-y" type="button" class="btn btn-block btn-dark" style="border-radius:0px 0px 5px 5px;" disabled><i class="icon icon-home mr-1"></i><i class="icon icon-arrows-v"></i></button></td>
  257. <td style="width:2px"></td>
  258. <td class="text-center"><button id="btn-move-home-z" type="button" class="btn btn-block btn-dark" style="border-radius:0px 0px 5px 5px;" disabled><i class="icon icon-home mr-1"></i><i class="icon icon-angle-double-down"></i></button></td>
  259. </tr>
  260. </table>
  261. </div>
  262. </div>
  263. <div class="card mb-1 border-0">
  264. <div class="card-header card-header-title text-light bg-secondary m-0 p-1"><i class="icon icon-arrows-alt mr-1 ml-1"></i>Movements</div>
  265. <div class="card-body px-0 py-1 bg-light badge-description">
  266. <div class="list-group list-group-flush">
  267. <div class="list-group-item bg-light px-0 py-1">
  268. <label for="txt-move-steps" class="">Steps movements size (mm)</label>
  269. <div class="form-group">
  270. <input type="text" id="txt-move-steps" class="form-control form-control-sm float-right" value="10" style="width:80px"/>
  271. <input type="range" class="form-control-range" min="0" max="50" step="1" id="customRange3" value="10">
  272. </div>
  273. </div>
  274. <div class="list-group-item bg-light px-0 py-1">
  275. Move on X axis
  276. <button type="button" id="btn-move-xr" class="btn btn-sm btn-dark float-right" style="width:80px;"><i class="icon icon-long-arrow-right"></i></button>
  277. <button type="button" id="btn-move-xl" class="btn btn-sm btn-dark float-right mr-1" style="width:80px;"><i class="icon icon-long-arrow-left"></i></button>
  278. </div>
  279. <div class="list-group-item bg-light px-0 py-1">
  280. Move on Y axis
  281. <button type="button" id="btn-move-yb" class="btn btn-sm btn-dark float-right" style="width:80px;"><i class="icon icon-long-arrow-down"></i></button>
  282. <button type="button" id="btn-move-yf" class="btn btn-sm btn-dark float-right mr-1" style="width:80px;"><i class="icon icon-long-arrow-up"></i></button>
  283. </div>
  284. <div class="list-group-item bg-light px-0 py-1">
  285. Move on Z axis
  286. <button type="button" id="btn-move-zd" class="btn btn-sm btn-dark float-right" style="width:80px;"><i class="icon icon-angle-double-down"></i></button>
  287. <button type="button" id="btn-move-zu" class="btn btn-sm btn-dark float-right mr-1" style="width:80px;"><i class="icon icon-angle-double-up"></i></button>
  288. </div>
  289. </div>
  290. </div>
  291. </div>
  292. <div class="card mb-1 border-0">
  293. <div class="card-header card-header-title text-light bg-secondary m-0 p-1"><i class="icon icon-cog mr-1 ml-1"></i>Steppers locking</div>
  294. <div class="card-body px-0 py-1 bg-light badge-description">
  295. <table class="w-100" cellpadding="0" cellspacing="0">
  296. <tr>
  297. <td colspan="6" class="pb-1">
  298. Lock/Unlock all steppers (X, Y, Z, E)
  299. </td>
  300. <td class="pb-1">
  301. <input type="checkbox" class="float-right" id="set-stepper-all" data-input-type="togglebtn" data-size="sm" data-width="100%" data-toggle="toggle" data-onstyle="success" data-offstyle="outline-dark" data-on="Lock" data-off="Unlock" disabled>
  302. </td>
  303. </tr>
  304. <tr>
  305. <td class="text-center text-light bg-info rounded-top">X stepper</td>
  306. <td style="width:2px"></td>
  307. <td class="text-center text-light bg-info rounded-top">Y stepper</td>
  308. <td style="width:2px"></td>
  309. <td class="text-center text-light bg-info rounded-top">Z stepper</td>
  310. <td style="width:2px"></td>
  311. <td class="text-center text-light bg-info rounded-top">E stepper</td>
  312. </tr>
  313. <tr>
  314. <td class="text-center pt-1"><input type="checkbox" id="set-stepper-x" data-input-type="togglebtn" data-size="sm" data-width="100%" data-toggle="toggle" data-onstyle="success" data-offstyle="outline-dark" data-on="Locked" data-off="Unlocked" disabled></td>
  315. <td style="width:2px"></td>
  316. <td class="text-center pt-1"><input type="checkbox" id="set-stepper-y" data-input-type="togglebtn" data-size="sm" data-width="100%" data-toggle="toggle" data-onstyle="success" data-offstyle="outline-dark" data-on="Locked" data-off="Unlocked" disabled></td>
  317. <td style="width:2px"></td>
  318. <td class="text-center pt-1"><input type="checkbox" id="set-stepper-z" data-input-type="togglebtn" data-size="sm" data-width="100%" data-toggle="toggle" data-onstyle="success" data-offstyle="outline-dark" data-on="Locked" data-off="Unlocked" disabled></td>
  319. <td style="width:2px"></td>
  320. <td class="text-center pt-1"><input type="checkbox" id="set-stepper-e" data-input-type="togglebtn" data-size="sm" data-width="100%" data-toggle="toggle" data-onstyle="success" data-offstyle="outline-dark" data-on="Locked" data-off="Unlocked" disabled></td>
  321. </tr>
  322. </table>
  323. <div class="row mb-1">
  324. <div class="col">
  325. </div>
  326. </div>
  327. </div>
  328. </div>
  329. <div class="card mb-1 border-0">
  330. <div class="card-header card-header-title text-light bg-secondary m-0 p-1"><i class="icon icon-tencent-weibo mr-1 ml-1"></i>Filament</div>
  331. <div class="card-body px-0 py-1 bg-light badge-description">
  332. </div>
  333. </div>
  334. </div>
  335. </div>
  336. <!-- PANEL: File management ================================================================================ -->
  337. <div class="card-header flex-shrink-1 p-0 bg-dark text-light" id="accordion-panel-file-head">
  338. <button class="btn btn-sm btn-dark btn-block text-left" type="button" data-toggle="collapse" data-target="#accordion-panel-file-body" aria-expanded="true" aria-controls="accordion-panel-file-body">
  339. <span class="h5"><span class="badge badge-success" style="width:30px;"><i class="icon icon-file"></i></span><span class="ml-2">File management</span></span>
  340. <div class="badge badge-secondary float-right"><span class="h5 icon icon-chevron-down"></span></div>
  341. </button>
  342. </div>
  343. <div id="accordion-panel-file-body" class="collapse flex-grow-1 collapse-panel" aria-labelledby="accordion-panel-file-head" data-parent="#accordion-panels">
  344. <div class="card-body h-100 p-1 text-left">
  345. <div class="card mb-1 border-0">
  346. <div class="card-header card-header-title text-light bg-secondary m-0 p-1"><i class="icon icon-upload mr-1 ml-1"></i>Upload...</div>
  347. <div class="card-body px-0 py-1 bg-light">
  348. <div class="input-group input-group-sm mb-1">
  349. <div class="custom-file">
  350. <input type="file" class="custom-file-input" id="file-upload" accept=".g,.gco,.gcode" aria-describedby="btn-file-upload" disabled>
  351. <label id="file-upload-label" class="custom-file-label" for="file-upload" data-browse='Pick'>Choose file</label>
  352. </div>
  353. <div class="input-group-append">
  354. <button id="btn-file-upload" class="btn btn-sm btn-success" type="button" disabled>Upload<i class="icon icon-upload ml-1"></i></button>
  355. </div>
  356. </div>
  357. <div id="upload-process-collapse" class="collapse mt-1">
  358. <table class="w-100 mb-1" cellspacing="0" cellpadding="0">
  359. <tr>
  360. <td width="34%">
  361. <div class="card mr-1">
  362. <div class="card-header py-0 px-1 bg-info text-light card-header-description">Filename (DOS8 Format)</div>
  363. <div id="div-upload-fname" class="card-body py-0 px-1 card-header-description text-center">-</div>
  364. </div>
  365. </td>
  366. <td width="33%">
  367. <div class="card">
  368. <div class="card-header py-0 px-1 bg-info text-light card-header-description">File size</div>
  369. <div id="div-upload-fsize" class="card-body py-0 px-1 card-header-description text-center">-</div>
  370. </div>
  371. </td>
  372. <td width="33%">
  373. <div class="card ml-1">
  374. <div class="card-header py-0 px-1 bg-info text-light card-header-description">GCode Lines</div>
  375. <div id="div-upload-fproc" class="card-body py-0 px-1 card-header-description text-center">-</div>
  376. </div>
  377. </td>
  378. </tr>
  379. </table>
  380. <div class="card">
  381. <div class="card-header py-0 px-1 bg-info text-light card-header-description">File processing</div>
  382. <table class="w-100" cellspacing="0" cellpadding="0">
  383. <tr>
  384. <td width="60%" class="p-1">
  385. <div id="upload-progress-text" class="card-header-description">&nbsp;</div>
  386. <div class="progress">
  387. <div id="upload-progressbar" class="progress-bar progress-bar-striped progress-bar-animated bg-info" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div>
  388. </div>
  389. </td>
  390. <td width="40%" class="p-1 text-right">
  391. <button id="btn-file-proc-cancel" class="btn btn-sm btn-danger" type="button" disabled>Cancel<i class="icon icon-ban ml-1"></i></button>
  392. <button id="btn-file-proc" class="btn btn-sm btn-info" type="button" disabled>Process<i class="icon icon-cog ml-1"></i></button>
  393. </td>
  394. </tr>
  395. </table>
  396. </div>
  397. </div>
  398. </div>
  399. </div>
  400. <div class="card mb-0 border-0">
  401. <div class="card-header card-header-title text-white bg-secondary m-0 p-1"><i class="icon icon-file ml-1 mr-1"></i>SD Content management</div>
  402. <div class="card-body px-0 py-1 bg-light">
  403. <div>
  404. <button id="btn-get-sdcontent" class="btn btn-sm btn-success" disabled><i class="icon icon-angle-double-down mr-1"></i>Get content</button>
  405. <div class="btn-group float-right" role="group">
  406. <button id="btn-set-sdinit" class="btn btn-sm btn-outline-success" style="width:120px" disabled><i class="icon icon-long-arrow-down mr-1"></i>SD Init</button>
  407. <button id="btn-set-sdrelease" class="btn btn-sm btn-outline-success" style="width:120px" disabled><i class="icon icon-long-arrow-up mr-1"></i>SD Release</button>
  408. </div>
  409. </div>
  410. <div id="div-sd-selected-file" class="collapse mt-1 show">
  411. <div class="input-group input-group-sm">
  412. <div class="input-group-prepend"><span class="input-group-text" id="lbl-sdfile-selected">Selected file:</span></div>
  413. <input type="text" id="txt-sdfile-selected" class="form-control" aria-describedby="lbl-sdfile-selected" value="" readonly/>
  414. <div class="input-group-append">
  415. <button id="btn-set-sdprint" class="btn btn-sm btn-success" data-toggle="modal" data-target="#modal-sdfile-print" onclick="WmButtons.PrintSdConfirm();" disabled><i class="icon icon-print"></i></button>
  416. <button id="btn-set-sddelete" class="btn btn-sm btn-danger" data-toggle="modal" data-target="#modal-sdfile-delete" onclick="WmButtons.DeleteSdConfirm();" disabled><i class="icon icon-trash"></i></button>
  417. </div>
  418. </div>
  419. </div>
  420. </div>
  421. </div>
  422. <div class="card mb-0 border-0">
  423. <div class="card-header card-header-title text-white bg-secondary m-0 p-1">
  424. <div class="float-right">Files: <div id="div-sdlist-file-count" class="badge badge-light">0</div></div>
  425. <div class="float-right mr-1">Folders: <div id="div-sdlist-folder-count" class="badge badge-light">0</div></div>
  426. <i class="icon icon-file ml-1 mr-1"></i>SD File list
  427. </div>
  428. <div class="card-body px-0 py-1 bg-light"><div id="list-sd-content" class="list-group list-group-flush"></div></div>
  429. </div>
  430. </div>
  431. </div>
  432. <!-- PANEL: Console ======================================================================================== -->
  433. <div class="card-header flex-shrink-1 p-0 bg-dark text-light" id="accordion-panel-console-head">
  434. <button class="btn btn-sm btn-dark btn-block text-left" type="button" data-toggle="collapse" data-target="#accordion-panel-console-body" aria-expanded="true" aria-controls="accordion-panel-console-body">
  435. <span class="h5"><span class="badge badge-success" style="width:30px;"><i class="icon icon-terminal"></i></span><span class="ml-2">Console</span></span>
  436. <div class="badge badge-secondary float-right"><span class="h5 icon icon-chevron-down"></span></div>
  437. <div id="div-counter-badge" class="badge badge-secondary float-right mr-1"><span id="log-counter-badge" class="h5">0</span></div>
  438. </button>
  439. </div>
  440. <div id="accordion-panel-console-body" class="collapse flex-grow-1 collapse-panel" aria-labelledby="accordion-panel-console-head" data-parent="#accordion-panels">
  441. <div class="card-body h-100 p-1 text-left">
  442. <label for="text-gcommand" class="mb-0 field-labels">G-Code command:</label>
  443. <div class="input-group">
  444. <div class="input-group-prepend">
  445. <a class="btn btn-sm btn-dark" target="_blank" href="https://marlinfw.org/meta/gcode/"><i class="icon icon-info"></i></a>
  446. <button class="btn btn-sm btn-outline-dark" type="button" id="btn-gcommand-preset" data-toggle="modal" data-target="#modal-presets"><i class="icon icon-tasks"></i></button>
  447. </div>
  448. <input type="text" id="text-gcommand" class="form-control form-control-sm border-dark text-uppercase" value="" required>
  449. <div class="input-group-append">
  450. <button class="btn btn-sm btn-outline-dark" type="button" id="btn-gcommand-checksum" data-toggle="button" aria-pressed="false" onclick="WmButtons.ToggleChecksumDiv();"><i class="icon icon-check-square"></i></button>
  451. <button class="btn btn-sm btn-dark mr-1" type="button" id="btn-gcommand">Send <i class="icon icon-chevron-right"></i></button>
  452. </div>
  453. </div>
  454. <div id="checksum-gcommand-div" class="collapse m-0 pr-1 text-right">
  455. <span class="field-description mr-1">GCode checksum value:</span>
  456. <span class="h5"><span class="badge badge-secondary" id="checksum-gcommand-value" style="width:100px;">&nbsp;</span></span>
  457. </div>
  458. <div id="checksum-gcommand-div" class="input-group input-group-sm collapse my-1">
  459. <input type="text" class="form-control" aria-describedby="checksum-gcommand-value" placeholder="GCode checksum value" readonly/>
  460. <div class="input-group-append text-center"><span class="input-group-text" id="checksum-gcommand-value" style="width:100px;"></span></div>
  461. </div>
  462. <label for="btn-gcommand" class="mb-0 field-labels">Console output:</label>
  463. <div class="border rounded p-0 mb-1 console-listbox text-left">
  464. <ul class="list-group list-group-flush" id="gcommand-console-list"></ul>
  465. </div>
  466. <div class="row">
  467. <div class="col"><button class="btn btn-sm btn-secondary btn-block" type="button" id="btn-clear-console"><i class="icon icon-ban mr-1"></i> Clear list</button></div>
  468. <div class="col"><button class="btn btn-sm btn-success btn-block" type="button" id="btn-export-console"><i class="icon icon-angle-double-down mr-1"></i>Save..</button></div>
  469. </div>
  470. </div>
  471. </div>
  472. </div>
  473. </div>
  474. </div>
  475. <!-- MODAL: About window ========================================================================================= -->
  476. <div class="modal fade" id="modal-info" tabindex="-1" role="dialog" aria-hidden="true">
  477. <div class="modal-dialog modal-popup" role="document">
  478. <div class="modal-content">
  479. <div class="modal-header bg-secondary text-light m-0 px-2 py-1">
  480. <span class="h5 font-italic mt-1"><i class="icon icon-info mr-2"></i>Info...</span>
  481. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  482. </div>
  483. <div class="modal-body p-2 text-left">
  484. <span class="h3">Marlin WebUI</span>
  485. <p>Release date: January, 1 2020</p>
  486. <p>
  487. <i class="icon icon-github"></i> Github project: <a href="https://github.com/exilaus/E4d-box-project" target="_blank">E4d-box-project</a><br />
  488. <i class="icon icon-facebook-square"></i> Facebook: <a href="https://www.facebook.com/groups/372792116726814/about/" target="_blank">E4d@box</a>
  489. </p>
  490. <p>Open source dependencies:</p>
  491. <ul>
  492. <li><a href="https://marlinfw.org/" target="_blank">Marlin firmware</a></li>
  493. <li><a href="https://jquery.com/" target="_blank">JQuery 3.5.1 (slim version)</a></li>
  494. <li><a href="https://getbootstrap.com/" target="_blank">Bootstrap v4.5.0</a></li>
  495. <li><a href="https://gitbrent.github.io/bootstrap4-toggle/" target="_blank">Bootstrap4 toggle switch v3.6.1</a></li>
  496. <li><a href="http://fontastic.me/">Fontastic</a>
  497. <li><a href="https://www.chartjs.org/" target="_blank">Chart.js</a></li>
  498. <li><a href="https://github.com/eligrey/FileSaver.js" target="_blank">FileSaver.js</a></li>
  499. </ul>
  500. </div>
  501. <div class="modal-footer bg-secondary m-0 p-1"><button type="button" class="btn btn-dark btn-block" data-dismiss="modal">Close</button></div>
  502. </div>
  503. </div>
  504. </div>
  505. <!-- MODAL: Settings ============================================================================================= -->
  506. <div class="modal fade" id="modal-settings" data-backdrop="static" tabindex="-1" role="dialog" aria-hidden="true">
  507. <div class="modal-dialog modal-popup" role="document">
  508. <div class="modal-content">
  509. <div class="modal-header bg-secondary text-light m-0 px-2 py-1">
  510. <span class="h5 font-italic mt-1"><i class="icon icon-sliders mr-2"></i>Settings..</span>
  511. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  512. </div>
  513. <div class="modal-body p-1 text-left">
  514. <ul class="list-group list-group-flush">
  515. <li class="list-group-item p-1">
  516. <div class="row">
  517. <div class="col-5 m-0">Auto connect:</div>
  518. <div class="col-7 m-0"><input type="checkbox" id="set-auto-connect" data-size="sm" data-width="100" data-toggle="toggle" data-onstyle="success" data-offstyle="outline-dark" data-on="ON" data-off="OFF"></div>
  519. </div>
  520. <small class="form-text text-muted font-italic mt-0">If ON the application will try to connect automatically on start</small>
  521. </li>
  522. <li class="list-group-item p-1">
  523. <div class="row">
  524. <div class="col-5 m-0">Temp interval:</div>
  525. <div class="col-7 m-0">
  526. <select class="form-control form-control-sm mb-1" id="set-default-autotemp">
  527. <option value="1">1 sec</option>
  528. <option value="5">5 sec</option>
  529. <option value="10">10 sec</option>
  530. <option value="30">30 sec</option>
  531. <option value="60">60 sec</option>
  532. </select>
  533. </div>
  534. </div>
  535. <small class="form-text text-muted font-italic mt-0">Set the default temperature detection interval (secs)</small>
  536. </li>
  537. <li class="list-group-item p-1">
  538. <div class="row">
  539. <div class="col-5 m-0">Temp unit:</div>
  540. <div class="col-7 m-0">
  541. <select class="form-control form-control-sm mb-1" id="set-default-tempunit">
  542. <option value="0">Celsius (default)</option>
  543. <option value="1">Fahrenheit</option>
  544. <option value="2">Kelvin</option>
  545. </select>
  546. </div>
  547. </div>
  548. <small class="form-text text-muted font-italic mt-0">Set the default temperature unit</small>
  549. </li>
  550. <li class="list-group-item p-1">
  551. <div class="row mb-0">
  552. <div class="col-5 m-0">Default panel:</div>
  553. <div class="col-7 m-0">
  554. <select class="form-control form-control-sm mb-1" id="set-default-panel">
  555. <option value="4">Console</option>
  556. <option value="1">Controls</option>
  557. <option value="0">Status (default)</option>
  558. <option value="2">Temperature</option>
  559. <option value="3">Upload</option>
  560. </select>
  561. </div>
  562. </div>
  563. <small class="form-text text-muted font-italic mt-0">Set the default shown panel on start</small>
  564. </li>
  565. <li class="list-group-item p-1">
  566. <div class="row">
  567. <div class="col-5 m-0">Trace direction:</div>
  568. <div class="col-7 m-0">
  569. <div class="btn-group btn-group-toggle" data-toggle="buttons">
  570. <label class="btn btn-sm btn-secondary"><input type="radio" name="set-trace-mode" id="set-trace-mode-append"><i class="icon icon-angle-double-down mr-1"></i>Append</label>
  571. <label class="btn btn-sm btn-secondary"><input type="radio" name="set-trace-mode" id="set-trace-mode-prepend"><i class="icon icon-angle-double-up mr-1"></i>Prepend</label>
  572. </div>
  573. </div>
  574. </div>
  575. <small class="form-text text-muted font-italic mt-0">Set the console trace direction</small>
  576. </li>
  577. <li class="list-group-item p-1">
  578. <div class="row">
  579. <div class="col-5 m-0">Trace symbol</div>
  580. <div class="col-7 m-0">
  581. <select class="form-control form-control-sm mb-1" id="set-log-symbol">
  582. <option value="icon">Icon</option>
  583. <option value="letter">Letter</option>
  584. </select>
  585. <div id="div-log-symbol-icon" class="collapse form-check-inline mb-0 h4">
  586. <select class="form-control form-control-sm mb-0 mr-1" id="set-log-symbol-icon">
  587. <option value="0">Chevron: U/D</option>
  588. <option value="2">Chevron: L/R</option>
  589. <option value="1">Arrow: U/D</option>
  590. <option value="3">Arrow: L/R</option>
  591. </select>
  592. <div id="div-log-symbol-icon-sample-s" class="badge badge-success mr-1"></div>
  593. <div id="div-log-symbol-icon-sample-r" class="badge badge-danger"></div>
  594. </div>
  595. </div>
  596. </div>
  597. <small class="form-text text-muted font-italic mt-0">Set the console message direction symbol</small>
  598. </li>
  599. <li class="list-group-item p-1">
  600. <div class="row">
  601. <div class="col-5 m-0">Logging level</div>
  602. <div class="col-7 m-0">
  603. <select class="form-control form-control-sm mb-1" id="set-log-level">
  604. <option value="0">Info (default)</option>
  605. <option value="1">Warning</option>
  606. <option value="2">Error</option>
  607. <option value="3">Debug</option>
  608. <option value="4">Verbose</option>
  609. </select>
  610. </div>
  611. </div>
  612. <small class="form-text text-muted font-italic mt-0">Set the JavaScript logging level</small>
  613. </li>
  614. </ul>
  615. <div class="collapse mt-2" id="div-save-setting-rs"><div class="card card-body border-success p-1 text-success text-center">Settings saved successfully</div></div>
  616. </div>
  617. <div class="modal-footer bg-secondary m-0 p-1">
  618. <div class="row w-100">
  619. <div class="col"><button type="button" class="btn btn-dark btn-block" id="btn-close-settings" data-dismiss="modal">Close</button></div>
  620. <div class="col"><button type="button" class="btn btn-success btn-block" id="btn-save-settings">Save</button></div>
  621. </div>
  622. </div>
  623. </div>
  624. </div>
  625. </div>
  626. <!-- MODAL: Presets command ====================================================================================== -->
  627. <div class="modal fade" id="modal-presets" tabindex="-1" role="dialog" aria-labelledby="modal-presets-label" aria-hidden="true">
  628. <div class="modal-dialog modal-popup" role="document">
  629. <div class="modal-content">
  630. <div class="modal-header bg-secondary text-light m-0 px-2 py-1">
  631. <span class="h5 font-italic mt-1"><i class="icon icon-sliders mr-2"></i>GCommand presets</span>
  632. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  633. </div>
  634. <div class="modal-body p-1 text-left">
  635. <div id="list-presets" class="list-group list-group-flush">
  636. <li class="list-group-item p-1 bg-light field-labels">Replace {N} chars with the specific parameter that you need if present (ie: G1 X{0} => G1 X10)</li>
  637. </div>
  638. </div>
  639. <div class="modal-footer bg-secondary m-0 p-1"><button type="button" class="btn btn-dark btn-block" data-dismiss="modal">Close</button></div>
  640. </div>
  641. </div>
  642. </div>
  643. <!-- MODAL: Connect ============================================================================================== -->
  644. <div class="modal fade" id="modal-connect" data-backdrop="static" tabindex="-1" role="dialog" aria-hidden="true">
  645. <div class="modal-dialog modal-popup" role="document">
  646. <div class="modal-content">
  647. <div class="modal-header bg-warning text-dark m-0 px-2 py-1">
  648. <span class="h5 font-italic mt-1"><i class="icon icon-exchange mr-2"></i>Connect...</span>
  649. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  650. </div>
  651. <div class="modal-body p-2 text-center my-4">
  652. <i class="icon icon-exclamation-triangle"></i><br>Ooopsss!<br />Marlin firmware Web Socket is not connected.<br />Would you like connect it now?
  653. </div>
  654. <div class="modal-footer bg-secondary m-0 p-1">
  655. <div class="row w-100">
  656. <div class="col"><button type="button" class="btn btn-sm btn-dark btn-block" data-dismiss="modal">Cancel</button></div>
  657. <div class="col"><button id="btn-wsconnect-modal" type="button" class="btn btn-sm btn-warning btn-block" data-dismiss="modal"><i class="icon icon-bolt mr-1"></i>Connect now</button></div>
  658. </div>
  659. </div>
  660. </div>
  661. </div>
  662. </div>
  663. <!-- MODAL: SD file deletion confirmation ======================================================================= -->
  664. <div class="modal fade" id="modal-sdfile-delete" data-backdrop="static" role="dialog" tabindex="-1" aria-labelledby="modal-sdfile-label" aria-hidden="true">
  665. <div class="modal-dialog modal-popup">
  666. <div class="modal-content">
  667. <div class="modal-header bg-secondary text-light m-0 px-2 py-1">
  668. <span class="h5 font-italic mt-1"><i class="icon icon-exclamation-triangle mr-2"></i>Deletion confirmation</span>
  669. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  670. </div>
  671. <div class="modal-body p-1 text-center mt-4 mb-1">
  672. <span class="h5"><i class="icon icon-exclamation-triangle"></i><br>Are you sure to delete<br><div id="div-sdfile-delete-badge" class="badge badge-danger"></div><br>SD card file?<br>
  673. This operation cannot be undone.</span>
  674. <div id="div-sdfile-delete-rs" class="collapse mt-2"><div class="card card-body border-success p-1 text-success text-center">File deleted successfully</div></div>
  675. </div>
  676. <div class="modal-footer bg-secondary m-0 p-1">
  677. <div class="row w-100">
  678. <div class="col"><button type="button" class="btn btn-sm btn-dark btn-block" data-dismiss="modal">No</button></div>
  679. <div class="col"><button id="btn-sdfile-delete-modal" type="button" class="btn btn-sm btn-success btn-block"><i class="icon icon-trash mr-1"></i>Yes</button></div>
  680. </div>
  681. </div>
  682. </div>
  683. </div>
  684. </div>
  685. <!-- MODAL: SD file print confirmation ======================================================================= -->
  686. <div class="modal fade" id="modal-sdfile-print" data-backdrop="static" role="dialog" tabindex="-1" aria-labelledby="modal-sdfile-print" aria-hidden="true">
  687. <div class="modal-dialog modal-popup">
  688. <div class="modal-content">
  689. <div class="modal-header bg-secondary text-light m-0 px-2 py-1">
  690. <span class="h5 font-italic mt-1"><i class="icon icon-print mr-2"></i>Print confirmation</span>
  691. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  692. </div>
  693. <div class="modal-body p-1 text-center my-4">
  694. <span class="h5"><i class="icon icon-print"></i><br>Are you sure to start printing of<br><div id="div-sdfile-print-badge" class="badge badge-success"></div></span>
  695. </div>
  696. <div id="div-sdfile-print-rs" class="collapse mt-2"><div class="card card-body border-success p-1 m-2 text-success text-center">Printing started successfully</div></div>
  697. <div class="modal-footer bg-secondary m-0 p-1">
  698. <div class="row w-100">
  699. <div class="col"><button type="button" class="btn btn-sm btn-dark btn-block" data-dismiss="modal">No</button></div>
  700. <div class="col"><button id="btn-sdfile-print-modal" type="button" class="btn btn-sm btn-success btn-block"><i class="icon icon-print mr-1"></i>Yes</button></div>
  701. </div>
  702. </div>
  703. </div>
  704. </div>
  705. </div>
  706. <!-- MODAL: Alert message ======================================================================= -->
  707. <div class="modal fade" id="modal-alert" data-backdrop="static" role="dialog" tabindex="-1" aria-labelledby="modal-alert" aria-hidden="true">
  708. <div class="modal-dialog modal-popup">
  709. <div class="modal-content">
  710. <div class="modal-header bg-secondary text-light m-0 px-2 py-1">
  711. <span class="h5 font-italic mt-1"><i class="icon icon-info-circled mr-2"></i>Message</span>
  712. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  713. </div>
  714. <div class="modal-body p-1 text-center my-4">
  715. <span class="h5"><i class="icon icon-info-circled"></i><br><div id="div-alert-message"></div></span>
  716. </div>
  717. <div class="modal-footer bg-secondary m-0 p-1">
  718. <div class="row w-100">
  719. <div class="col"><button type="button" class="btn btn-sm btn-success btn-block" data-dismiss="modal">OK</button></div>
  720. </div>
  721. </div>
  722. </div>
  723. </div>
  724. </div>
  725. </body>
  726. </html>