24 lines
479 B
JavaScript
24 lines
479 B
JavaScript
function xhttp() {
|
|
return new XMLHttpRequest();
|
|
}
|
|
|
|
window.peljiLevo = function () {
|
|
var xh = xhttp();
|
|
//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/PojdiDesno");
|
|
xh.send();
|
|
}
|
|
|
|
window.peljiRavno = function () {
|
|
var xh = xhttp();
|
|
//xh.open('GET', "/cm?cmnd=PojdiRavno%20" + DOLZINA);
|
|
xh.open('GET', "/cm/PojdiRavno");
|
|
xh.send();
|
|
}
|