From f829d3c96b669514d9798a1531182e03da803236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20Podgor=C5=A1e?= Date: Fri, 9 Jun 2023 18:43:40 +0200 Subject: [PATCH] Fiksirani endpointi za premike --- www/js/propeliraj.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/www/js/propeliraj.js b/www/js/propeliraj.js index 827300d..fbd6dbd 100644 --- a/www/js/propeliraj.js +++ b/www/js/propeliraj.js @@ -4,18 +4,24 @@ function xhttp() { window.peljiLevo = function () { var xh = xhttp(); - xh.open('GET', "/cm?cmnd=PojdiLevo%20" + DOLZINA); + //xh.open('GET', "/cm?cmnd=PojdiLevo%20" + DOLZINA); + xh.open('GET', "/cm/PojdiLevo"); + xh.send(); } window.peljiDesno = function () { var xh = xhttp(); - xh.open('GET', "/cm?cmnd=PojdiDesno%20" + DOLZINA); + //xh.open('GET', "/cm?cmnd=PojdiDesno%20" + DOLZINA); + xh.open('GET', "/cm/PojdiDesno"); + xh.send(); } window.peljiRavno = function () { var xh = xhttp(); - xh.open('GET', "/cm?cmnd=PojdiRavno%20" + DOLZINA); + //xh.open('GET', "/cm?cmnd=PojdiRavno%20" + DOLZINA); + xh.open('GET', "/cm/PojdiRavno"); + xh.send(); }