mirror of
https://github.com/Doodle3D/doodle3d-connect.git
synced 2024-12-26 02:23:48 +01:00
layout improvement
This commit is contained in:
parent
f486bd1777
commit
b07ff8c130
@ -20,6 +20,7 @@
|
|||||||
var _printerAPI = new PrinterAPI();
|
var _printerAPI = new PrinterAPI();
|
||||||
var _pageData = {};
|
var _pageData = {};
|
||||||
var _updateStatus = {};
|
var _updateStatus = {};
|
||||||
|
var _title;
|
||||||
|
|
||||||
var PAGE_ID = "#settings";
|
var PAGE_ID = "#settings";
|
||||||
|
|
||||||
@ -37,6 +38,7 @@
|
|||||||
console.log(PAGE_ID+":pageinit");
|
console.log(PAGE_ID+":pageinit");
|
||||||
|
|
||||||
_page = $(this);
|
_page = $(this);
|
||||||
|
_title = _page.find(".ui-title");
|
||||||
|
|
||||||
$("#divSettings").hide();
|
$("#divSettings").hide();
|
||||||
d3d.util.showLoader();
|
d3d.util.showLoader();
|
||||||
@ -44,6 +46,8 @@
|
|||||||
$("#lstPrinters").on("change", function(data) {
|
$("#lstPrinters").on("change", function(data) {
|
||||||
var printerType = $(this).val();
|
var printerType = $(this).val();
|
||||||
|
|
||||||
|
d3d.util.showLoader();
|
||||||
|
|
||||||
_configAPI.savePrinterType(printerType,function(successData) {
|
_configAPI.savePrinterType(printerType,function(successData) {
|
||||||
refreshSettings();
|
refreshSettings();
|
||||||
},function(failData) {
|
},function(failData) {
|
||||||
@ -107,6 +111,8 @@
|
|||||||
}
|
}
|
||||||
var boxURL = "http://"+_pageData.localip;
|
var boxURL = "http://"+_pageData.localip;
|
||||||
|
|
||||||
|
_title.text("Settings for " + _pageData.wifiboxid);
|
||||||
|
|
||||||
_configAPI.init(boxURL);
|
_configAPI.init(boxURL);
|
||||||
_printerAPI.init(boxURL);
|
_printerAPI.init(boxURL);
|
||||||
|
|
||||||
|
@ -279,15 +279,14 @@
|
|||||||
|
|
||||||
</div><!-- /header -->
|
</div><!-- /header -->
|
||||||
<div id="divSettings" role="main" class="ui-content">
|
<div id="divSettings" role="main" class="ui-content">
|
||||||
<p class="intro">Use this page to select which 3D-printer is connected to your Doodle3D WiFi-Box. By selecting a printer the default settings for this printer will be loaded. Values are saved automatically.</p>
|
<p class="intro">Use this page to select which 3D-printer is connected to your Doodle3D WiFi-Box. You can change settings per printer. Your settings are saved automatically.</p>
|
||||||
|
|
||||||
<div data-role="collapsible" data-collapsed="false">
|
<label for="name">Please select your 3D-printer model:</label>
|
||||||
|
<select id="lstPrinters"></select>
|
||||||
|
|
||||||
|
<div data-role="collapsible">
|
||||||
|
|
||||||
<h3>Printer settings</h3>
|
<h3>Printer settings</h3>
|
||||||
<div data-role="fieldcontain">
|
|
||||||
<label for="name">3D Printer model:</label>
|
|
||||||
<select id="lstPrinters"></select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div data-role="fieldcontain">
|
<div data-role="fieldcontain">
|
||||||
<!-- <label for="name"></label>
|
<!-- <label for="name"></label>
|
||||||
@ -311,9 +310,38 @@
|
|||||||
<div class="ui-block-c"><input placeholder="z" name="dimensionsZ" id="dimensionsZ" type="number" data-mini="true"/></div>
|
<div class="ui-block-c"><input placeholder="z" name="dimensionsZ" id="dimensionsZ" type="number" data-mini="true"/></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div data-role="collapsible">
|
||||||
|
<h3>GCODE settings</h3>
|
||||||
|
<div data-role="fieldcontain">
|
||||||
|
<label for="startgcode">Start gcode:</label>
|
||||||
|
<textarea name="startgcode" id="startgcode"></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div data-role="fieldcontain">
|
||||||
|
<label for="endgcode">End gcode:</label>
|
||||||
|
<textarea name="endgcode" id="endgcode"></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div data-role="collapsible" data-mini="true">
|
||||||
|
<h3>Help</h3>
|
||||||
|
<small>
|
||||||
|
The following texts are replaced:
|
||||||
|
<dl>
|
||||||
|
<dt>{printingTemp}</dt><dd>Printing temperature</dd>
|
||||||
|
<dt>{printingBedTemp}</dt><dd>Printing bed temperature</dd>
|
||||||
|
<dt>{preheatTemp}</dt><dd>Preheat temperature</dd>
|
||||||
|
<dt>{preheatBedTemp}</dt><dd>Preheat bed temperature</dd>
|
||||||
|
<dt>{printerType}</dt><dd>Printer type</dd>
|
||||||
|
<dt>{if heatedBed}</dt><dd>Enable line if printer has heated bed</dd>
|
||||||
|
</dl>
|
||||||
|
</small>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div data-role="collapsible" data-collapsed="false">
|
<div data-role="collapsible">
|
||||||
<h3>Material settings</h3>
|
<h3>Material settings</h3>
|
||||||
|
|
||||||
<div data-role="fieldcontain">
|
<div data-role="fieldcontain">
|
||||||
@ -328,33 +356,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div data-role="collapsible">
|
|
||||||
<h3>GCODE settings</h3>
|
|
||||||
<div data-role="fieldcontain">
|
|
||||||
<label for="startgcode">Start gcode:</label>
|
|
||||||
<textarea name="startgcode" id="startgcode"></textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div data-role="fieldcontain">
|
|
||||||
<label for="endgcode">End gcode:</label>
|
|
||||||
<textarea name="endgcode" id="endgcode"></textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div data-role="collapsible" data-mini="true">
|
|
||||||
<h3>Help</h3>
|
|
||||||
<small>
|
|
||||||
The following texts are replaced:
|
|
||||||
<dl>
|
|
||||||
<dt>{printingTemp}</dt><dd>Printing temperature</dd>
|
|
||||||
<dt>{printingBedTemp}</dt><dd>Printing bed temperature</dd>
|
|
||||||
<dt>{preheatTemp}</dt><dd>Preheat temperature</dd>
|
|
||||||
<dt>{preheatBedTemp}</dt><dd>Preheat bed temperature</dd>
|
|
||||||
<dt>{printerType}</dt><dd>Printer type</dd>
|
|
||||||
<dt>{if heatedBed}</dt><dd>Enable line if printer has heated bed</dd>
|
|
||||||
</dl>
|
|
||||||
</small>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user