22 lines
437 B
JavaScript
22 lines
437 B
JavaScript
function xhttp() {
|
|
return new XMLHttpRequest();
|
|
}
|
|
|
|
window.peljiLevo = function () {
|
|
var xh = xhttp();
|
|
xh.open('GET', BOT + "cm?cmnd=PojdiLevo%20" + DOLZINA);
|
|
xh.send();
|
|
}
|
|
|
|
window.peljiDesno = function () {
|
|
var xh = xhttp();
|
|
xh.open('GET', BOT + "cm?cmnd=PojdiDesno%20" + DOLZINA);
|
|
xh.send();
|
|
}
|
|
|
|
window.peljiRavno = function () {
|
|
var xh = xhttp();
|
|
xh.open('GET', BOT + "cm?cmnd=PojdiRavno%20" + DOLZINA);
|
|
xh.send();
|
|
}
|