mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-22 01:07:56 +01:00
Use host as API base URL.
This commit is contained in:
parent
7972273e27
commit
d78317ecd6
@ -140,6 +140,8 @@
|
|||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
console.log("ready");
|
console.log("ready");
|
||||||
|
var wifiboxURL = "http://" + window.location.host + "/cgi-bin/d3dapi";
|
||||||
|
console.log("wifibox URL: " + wifiboxURL);
|
||||||
|
|
||||||
initLayouting();
|
initLayouting();
|
||||||
|
|
||||||
@ -148,7 +150,7 @@
|
|||||||
|
|
||||||
initButtonBehavior();
|
initButtonBehavior();
|
||||||
|
|
||||||
initSettingsPopup();
|
initSettingsPopup(wifiboxURL);
|
||||||
|
|
||||||
$("#settings .settings").load("settings.html", function() {
|
$("#settings .settings").load("settings.html", function() {
|
||||||
console.log("finished loading settings.html, now loading settings...");
|
console.log("finished loading settings.html, now loading settings...");
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
var sendIndex;
|
var sendIndex;
|
||||||
var sendLength;
|
var sendLength;
|
||||||
|
|
||||||
//var kastjeURL = "http://192.168.10.1/cgi-bin/d3dapi/";
|
|
||||||
var kastjeURL = "http://192.168.5.1/cgi-bin/d3dapi/";
|
|
||||||
|
|
||||||
|
|
||||||
var data = "";
|
var data = "";
|
||||||
function startPrint(gcode) {
|
function startPrint(gcode) {
|
||||||
console.log("f:startPrint()");
|
console.log("f:startPrint()");
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var wifiboxURL = "http://192.168.5.1/cgi-bin/d3dapi";
|
var wifiboxURL;//"http://192.168.5.1/cgi-bin/d3dapi";
|
||||||
|
|
||||||
var settings = {
|
var settings = {
|
||||||
layerHeight: 0.2,
|
layerHeight: 0.2,
|
||||||
@ -25,8 +25,9 @@ settingsForm.submit(function(e) {
|
|||||||
return false;
|
return false;
|
||||||
})
|
})
|
||||||
|
|
||||||
function initSettingsPopup() {
|
function initSettingsPopup(apiURL) {
|
||||||
console.log("f:initSettingsPopup()");
|
console.log("f:initSettingsPopup()");
|
||||||
|
wifiboxURL = apiURL;
|
||||||
|
|
||||||
$("#contentOverlay").hide();
|
$("#contentOverlay").hide();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user