mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2025-06-11 01:13:18 +02:00
Basic feedback and more control
Display temperature Only show temperature when connected with printer Move index.html javascript to main.js stop button (Still having issues in firmware) OOP style printer control Added a proxy.php file to forward cross domain posts and get's. (should not be necessary)
This commit is contained in:
48
index.html
48
index.html
@ -74,6 +74,7 @@
|
||||
<img class="btn" id="btnInfo" src="img/buttons/btnInfo.png">
|
||||
<img class="btn" id="btnSettings" src="img/buttons/btnSettings.png">
|
||||
</div>
|
||||
<div id="displayTemp"></div>
|
||||
</div>
|
||||
<div id="drawAreaContainer">
|
||||
<canvas id="mycanvas"></canvas>
|
||||
@ -126,51 +127,8 @@
|
||||
<script src="js/doodlePrintCode.js"></script>
|
||||
<script src="js/gcodeGenerating_v01.js"></script>
|
||||
<script src="js/init_layout.js"></script>
|
||||
<script src="js/Printer.js"></script>
|
||||
<!--<script src="js/draw_logic.js"></script>-->
|
||||
<script type="text/javascript">
|
||||
|
||||
// not using these at the moment
|
||||
$("#btnPrevious").css("opacity", "0.3");
|
||||
$("#btnNext").css("opacity", "0.3");
|
||||
$("#btnSave").css("opacity", "0.3");
|
||||
$("#btnInfo").css("opacity", "0.3");
|
||||
// $("#btnSettings").css("opacity", "0.3");
|
||||
|
||||
// var debug = true;
|
||||
|
||||
$(function() {
|
||||
console.log("ready");
|
||||
var wifiboxURL = "http://" + window.location.host + "/cgi-bin/d3dapi";
|
||||
console.log("wifibox URL: " + wifiboxURL);
|
||||
|
||||
initLayouting();
|
||||
|
||||
initDoodleDrawing();
|
||||
initPreviewRendering();
|
||||
|
||||
initButtonBehavior();
|
||||
|
||||
initSettingsPopup(wifiboxURL);
|
||||
|
||||
$("#settings .settings").load("settings.html", function() {
|
||||
console.log("finished loading settings.html, now loading settings...");
|
||||
loadSettings();
|
||||
});
|
||||
|
||||
if(debug) {
|
||||
console.log("debug mode");
|
||||
$("body").css("overflow", "auto");
|
||||
$("#debug_textArea").css("display", "block");
|
||||
}
|
||||
|
||||
// $("#mycanvas").css("scale", 0.5);
|
||||
|
||||
|
||||
//debug
|
||||
// generate_gcode();
|
||||
|
||||
})
|
||||
|
||||
</script>
|
||||
<script src="js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user