X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=src%2Fviews%2Fstarter.ejs;h=07d5f07c532b8afeb9f955de0d57db1267941d99;hb=ea20f018c05bcc4e56b2dfa3eee30af0d6ffabf3;hp=de1868b9c452d0361a091817058e84937a37fca6;hpb=7319e156cc200d31b27ec9da78766d928d589c52;p=VSoRC%2F.git diff --git a/src/views/starter.ejs b/src/views/starter.ejs index de1868b..07d5f07 100644 --- a/src/views/starter.ejs +++ b/src/views/starter.ejs @@ -5,107 +5,345 @@ <%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(); + } + + +