replace calls to /wasserzaehler.html with calls to /value (#1469)

Co-authored-by: CaCO3 <caco@ruinelli.ch>
This commit is contained in:
CaCO3
2022-12-06 06:52:25 +01:00
committed by GitHub
parent 1ca54f39f8
commit fa406d8989
3 changed files with 3 additions and 3 deletions

View File

@@ -79,7 +79,7 @@
</li> </li>
</ul> </ul>
<li><a href="#" onclick="loadPage('wasserzaehler.html?full');">Recognition</a></li> <li><a href="#" onclick="loadPage('value?full');">Recognition</a></li>
<li><a href="#" onclick="loadPage('graph.html');">Data Graph</a></li> <li><a href="#" onclick="loadPage('graph.html');">Data Graph</a></li>
<li><a href="#" onclick="loadPage('fileserver/');">File Server</a></li> <li><a href="#" onclick="loadPage('fileserver/');">File Server</a></li>
<li><a>System <i class="arrow down"></i></a> <li><a>System <i class="arrow down"></i></a>

View File

@@ -151,7 +151,7 @@ function refresh() {
} }
function loadValue(_type, _div, _style) { function loadValue(_type, _div, _style) {
url = basepath + '/wasserzaehler.html?all=true&type=' + _type; url = basepath + '/value?all=true&type=' + _type;
var xhttp = new XMLHttpRequest(); var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() { xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) { if (this.readyState == 4 && this.status == 200) {

View File

@@ -16,7 +16,7 @@
var basepath = "http://192.168.178.22"; var basepath = "http://192.168.178.22";
function testinit(){ function testinit(){
basepath = getbasepath(); basepath = getbasepath();
url = basepath + '/wasserzaehler.html?all=true'; url = basepath + '/value?all=true';
var xhttp = new XMLHttpRequest(); var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() { xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) { if (this.readyState == 4 && this.status == 200) {