fixed paths to be relative
This commit is contained in:
@ -1,13 +1,13 @@
|
|||||||
<html>
|
<html>
|
||||||
<body>
|
<body>
|
||||||
<a href="http://localhost:5000/console.html" target=console>console</a>
|
<a href="/console.html" target=console>console</a>
|
||||||
<a href="http://localhost:5000/group.html?path=/nv" target=group>group</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='getblock?path=/nv&id=*';">?getblock</button>
|
||||||
<button onclick="action.value='updateblock?path=/nv&id=*';">?updateblock</button>
|
<button onclick="action.value='updateblock?path=/nv&id=*';">?updateblock</button>
|
||||||
<button onclick="action.value='console?id=*';">?console</button>
|
<button onclick="action.value='console?id=*';">?console</button>
|
||||||
<button onclick="action.value='gettime?time=-1800,0&id=*';">?gettime</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='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>
|
<input type=text value="console?id=*" size=120 id=action>
|
||||||
<button onclick='act();'>Send</button>
|
<button onclick='act();'>Send</button>
|
||||||
<div id=result>
|
<div id=result>
|
||||||
@ -48,13 +48,13 @@ function insert(link) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function act() {
|
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(message) { result.innerHTML = JSON.stringify(message); },
|
||||||
function(status) { console.log(status); }
|
function(status) { console.log(status); }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
var evtSrc = new EventSource("http://localhost:5000/update");
|
var evtSrc = new EventSource("/update");
|
||||||
|
|
||||||
evtSrc.onmessage = function(e) {
|
evtSrc.onmessage = function(e) {
|
||||||
var message = JSON.parse(e.data);
|
var message = JSON.parse(e.data);
|
||||||
|
Reference in New Issue
Block a user