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 <script type="text/javascript">
51 function stopcontroller() {
52 let xhr = new XMLHttpRequest();
53 xhr.open('GET', '/stopcontroller', true);
54 xhr.onload = function() {
55 if (xhr.status == 200) { //can use this.status instead
56 //console.log(xhr.responseText);// para ver en la consola
57 console.log("controller stoped");
63 function startcontroller() {
64 let xhr = new XMLHttpRequest();
65 xhr.open('GET', '/startcontroller', true);
66 //console.log(xhr); //para ver en la consola
67 xhr.onload = function() {
68 if (xhr.status == 200) { //can use this.status instead
70 console.log("controller started");
76 function startvsorc() {
77 let xhr = new XMLHttpRequest();
78 xhr.open('GET', '/startvsorc', true);
79 xhr.onload = function() {
80 if (xhr.status == 200) { //can use this.status instead
81 //console.log(xhr.responseText);// para ver en la consola
82 console.log("vsorc startedd");
90 <div class="statuscontroller">
93 <div class="statusproyect">
99 <%include ../../partials/footer%>