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,22 +310,6 @@
|
|||||||
<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>
|
|
||||||
|
|
||||||
<div data-role="collapsible" data-collapsed="false">
|
|
||||||
<h3>Material settings</h3>
|
|
||||||
|
|
||||||
<div data-role="fieldcontain">
|
|
||||||
<label for="name">Filament thickness (mm):</label>
|
|
||||||
<input type="number" id="filamentThickness" name="filamentThickness" data-mini="true" step=".01" min="1.75" max="3.3"/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div data-role="fieldcontain">
|
|
||||||
<label for="nozzleTemperature">Nozzle temperature (°C):</label>
|
|
||||||
<input type="range" name="nozzleTemperature" id="nozzleTemperature" value="200" min="20" max="260" data-highlight="true" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div data-role="collapsible">
|
<div data-role="collapsible">
|
||||||
<h3>GCODE settings</h3>
|
<h3>GCODE settings</h3>
|
||||||
@ -356,6 +339,25 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div data-role="collapsible">
|
||||||
|
<h3>Material settings</h3>
|
||||||
|
|
||||||
|
<div data-role="fieldcontain">
|
||||||
|
<label for="name">Filament thickness (mm):</label>
|
||||||
|
<input type="number" id="filamentThickness" name="filamentThickness" data-mini="true" step=".01" min="1.75" max="3.3"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div data-role="fieldcontain">
|
||||||
|
<label for="nozzleTemperature">Nozzle temperature (°C):</label>
|
||||||
|
<input type="range" name="nozzleTemperature" id="nozzleTemperature" value="200" min="20" max="260" data-highlight="true" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user