fixed paths to be relative

This commit is contained in:
l_samenv
2024-07-12 10:31:49 +02:00
parent 16b132ecf1
commit ed505d29c7

View File

@ -1,13 +1,13 @@
<html>
<body>
<a href="http://localhost:5000/console.html" target=console>console</a>
<a href="http://localhost:5000/group.html?path=/nv" target=group>group</a>
<a href="/console.html" target=console>console</a>
<a href="/group.html?path=/nv" target=group>group</a>
<button onclick="action.value='getblock?path=/nv&id=*';">?getblock</button>
<button onclick="action.value='updateblock?path=/nv&id=*';">?updateblock</button>
<button onclick="action.value='console?id=*';">?console</button>
<button onclick="action.value='gettime?time=-1800,0&id=*';">?gettime</button>
<button onclick="action.value='getvars?time=-1800,0&id=*';">?getvars</button>
<button onclick="action.value='graph?time=-1800,0&variables=tt.tm,lev&id=*';">?graph</button><br>
<button onclick="action.value='graph?time=-1800,0&variables=t_mix&id=*';">?graph</button><br>
<input type=text value="console?id=*" size=120 id=action>
<button onclick='act();'>Send</button>
<div id=result>
@ -48,13 +48,13 @@ function insert(link) {
}
function act() {
getJSON("http://localhost:5000/" + action.value.split("*").join(myid),
getJSON("/" + action.value.split("*").join(myid),
function(message) { result.innerHTML = JSON.stringify(message); },
function(status) { console.log(status); }
)
}
var evtSrc = new EventSource("http://localhost:5000/update");
var evtSrc = new EventSource("/update");
evtSrc.onmessage = function(e) {
var message = JSON.parse(e.data);