diff --git a/README.md b/README.md index f877aafd..ae83536a 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,9 @@ In other cases you can contact the developer via email: Reboot to activate updates -

+
+

+ + + +

+
@@ -701,6 +705,14 @@ textarea { function LoadConfigNeu() { + + var isInitialSetup = getParameterByName('InitialSetup'); + if (isInitialSetup === 'true') + { + document.getElementById("reboot").style.display = "none"; + } + + basepath = getbasepath(); if (!loadConfig(basepath)) { alert("Config.ini could not be loaded!\nPlease reload the page."); @@ -715,6 +727,16 @@ function LoadConfigNeu() { document.getElementById("divall").style.display = ''; } + +function getParameterByName(name, url = window.location.href) { + name = name.replace(/[\[\]]/g, '\\$&'); + var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), + results = regex.exec(url); + if (!results) return null; + if (!results[2]) return ''; + return decodeURIComponent(results[2].replace(/\+/g, ' ')); +} + function WriteParameter(_param, _category, _cat, _name, _optional, _select = false, _anzpara = 1){ if (_param[_cat][_name]["found"]){ if (_optional) { diff --git a/sd-card/html/gethost.js b/sd-card/html/gethost.js index a3e80ee6..40a7c87a 100644 --- a/sd-card/html/gethost.js +++ b/sd-card/html/gethost.js @@ -9,7 +9,7 @@ function getbasepath(){ { // host = "http://192.168.2.118"; // jomjol interner test // host = "http://192.168.178.26"; // jomjol interner test - host = "http://192.168.178.26"; // jomjol interner Real + host = "http://192.168.178.22"; // jomjol interner Real // host = "."; // jomjol interner localhost } diff --git a/sd-card/html/setup.html b/sd-card/html/setup.html index 846a786d..0b9f67bf 100644 --- a/sd-card/html/setup.html +++ b/sd-card/html/setup.html @@ -111,7 +111,7 @@ function LoadStep(){ break; case 5: - document.getElementById('maincontent').src = '/edit_config_param.html'; + document.getElementById('maincontent').src = '/edit_config_param.html?InitialSetup=true'; document.getElementById('explaincontent').src = '/explain_5.html'; document.getElementById('h_iframe_explain').style.display = ""; document.getElementById("previous").disabled = false; diff --git a/sd-card/html/version.txt b/sd-card/html/version.txt index 4c77920f..f22d756d 100644 --- a/sd-card/html/version.txt +++ b/sd-card/html/version.txt @@ -1 +1 @@ -6.4.1 +6.5.0