X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=src%2Fviews%2Fstarter.ejs;h=e7ac311ff1f1a467602883b06aecb6aa0d8b40b4;hb=8bd25d906f766566ceee02d3d70e9890689a4c1a;hp=b3a588b3c460f8a45747d92a209309e6891cdca2;hpb=0cb383f1c0646575a831f4f812cd85c9e24d9a18;p=VSoRC%2F.git diff --git a/src/views/starter.ejs b/src/views/starter.ejs index b3a588b..e7ac311 100644 --- a/src/views/starter.ejs +++ b/src/views/starter.ejs @@ -5,96 +5,373 @@ <%include ../../partials/head%> - + + + + + + + + + +
<%include ../../partials/header%> +
- +
- - - +
+ +
+ +
+ + + + + +
+
+ +
+ +
+ + + + + + + +
+
+
+ + +
+ +
+
+
+ +
+ +
+ +
+
+ +
+ + +
+ -
- + + function pingall() { + let xhr = new XMLHttpRequest(); + xhr.open('GET', '/pingall', 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("pingall"); + + + } + } + xhr.send(); + } + + function iperf() { + let xhr = new XMLHttpRequest(); + xhr.open('GET', '/iperf', 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("iperf"); + + + } + } + xhr.send(); + } + + function placement() { + let xhr = new XMLHttpRequest(); + xhr.open('GET', '/placement', 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 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', '/statusnodes', 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("statusnodes"); + + + } + } + 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("interfaces"); + + + } + } + xhr.send(); + } + + +