6 <!-- <link rel="stylesheet" type="text/css" href="/styles/main.css" /> -->
7 <%include ../../partials/head%>
25 background-color: rgba(200,200,200,0.5);
27 border-bottom: 2px black solid;
33 border-bottom: 2px black solid;
36 background-color: white;
41 <%include ../../partials/header%>
46 <button type="button" name="button" onclick="startcontroller()">Iniciar controlador</button>
47 <button type="button" name="button" onclick="stopcontroller()">Detener controlador</button>
48 <button type="button" name="button" onclick="startvsorc()">Iniciar VsoRc</button>
49 <button type="button" name="button" onclick="stopvsorc()">Detener VsoRc</button>
50 <script type="text/javascript">
52 function stopcontroller() {
53 let xhr = new XMLHttpRequest();
54 xhr.open('GET', '/stopcontroller', true);
55 xhr.onload = function() {
56 if (xhr.status == 200) { //can use this.status instead
57 //console.log(xhr.responseText);// para ver en la consola
58 console.log("controller stoped");
64 function startcontroller() {
65 let xhr = new XMLHttpRequest();
66 xhr.open('GET', '/startcontroller', true);
67 //console.log(xhr); //para ver en la consola
68 xhr.onload = function() {
69 if (xhr.status == 200) { //can use this.status instead
71 console.log("controller started");
77 function startvsorc() {
78 let xhr = new XMLHttpRequest();
79 xhr.open('GET', '/startvsorc', true);
80 xhr.onload = function() {
81 if (xhr.status == 200) { //can use this.status instead
82 //console.log(xhr.responseText);// para ver en la consola
83 console.log("vsorc started");
88 function stopvsorc() {
89 let xhr = new XMLHttpRequest();
90 xhr.open('GET', '/stopvsorc', true);
91 xhr.onload = function() {
92 if (xhr.status == 200) { //can use this.status instead
93 //console.log(xhr.responseText);// para ver en la consola
94 console.log("vsorc stopped");
102 <div class="statuscontroller">
105 <div class="statusproyect">
111 <%include ../../partials/footer%>