mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 01:07:56 +01:00
36 lines
783 B
JavaScript
36 lines
783 B
JavaScript
var debug = false;
|
|
|
|
var printer = new Printer();
|
|
|
|
$(function() {
|
|
console.log("ready");
|
|
//var wifiboxURL = "http://" + window.location.host + "/cgi-bin/d3dapi";
|
|
var wifiboxURL = "http://192.168.5.1/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");
|
|
}
|
|
|
|
printer.init();
|
|
printer.preheat();
|
|
|
|
$(document).on(Printer.UPDATE,update);
|
|
|
|
}) |