X-Git-Url: https://git.josue.xyz/?p=VSoRC%2F.git;a=blobdiff_plain;f=src%2Fviews%2Fstarter.ejs;h=0caa1f52690aee7a65ce57d843835ccb13bec437;hp=59c535b7ce6afc813aaa24ffa83a8039f5fe8d3f;hb=b5e35e05af82a077db86a6400dad2871e1d95ca3;hpb=52a99203812259e814afb138a8692a3f3892591d diff --git a/src/views/starter.ejs b/src/views/starter.ejs index 59c535b..0caa1f5 100644 --- a/src/views/starter.ejs +++ b/src/views/starter.ejs @@ -42,9 +42,10 @@ - - - + + + + @@ -203,6 +204,66 @@ console.log("placement"); + } + } + xhr.send(); + } + + function net() { + let xhr = new XMLHttpRequest(); + xhr.open('GET', '/net', true); + xhr.onload = function() { + if (xhr.status == 200) { //can use this.status instead + //console.log(xhr.responseText);// para ver en la consola + vsorcout.value+=xhr.response; + console.log("net"); + + + } + } + xhr.send(); + } + + function nodes() { + let xhr = new XMLHttpRequest(); + xhr.open('GET', '/nodes', true); + xhr.onload = function() { + if (xhr.status == 200) { //can use this.status instead + //console.log(xhr.responseText);// para ver en la consola + vsorcout.value+=xhr.response; + console.log("nodes"); + + + } + } + xhr.send(); + } + + function status() { + let xhr = new XMLHttpRequest(); + xhr.open('GET', '/status', true); + xhr.onload = function() { + if (xhr.status == 200) { //can use this.status instead + //console.log(xhr.responseText);// para ver en la consola + vsorcout.value+=xhr.response; + console.log("placement"); + + + } + } + xhr.send(); + } + + function intfs() { + let xhr = new XMLHttpRequest(); + xhr.open('GET', '/intfs', true); + xhr.onload = function() { + if (xhr.status == 200) { //can use this.status instead + //console.log(xhr.responseText);// para ver en la consola + vsorcout.value+=xhr.response; + console.log("placement"); + + } } xhr.send();