MediaWiki:Common.js: Razlika med redakcijama
Vrstica 3: | Vrstica 3: | ||
$("#test").html("any HTML"); | $("#test").html("any HTML"); | ||
− | function fun() | + | /*function fun() |
{ | { | ||
var data="hello"; | var data="hello"; | ||
Vrstica 15: | Vrstica 15: | ||
myElement.innerHTML = 'any HTML'; | myElement.innerHTML = 'any HTML'; | ||
return data; | return data; | ||
− | } | + | }*/ |
Redakcija: 11:55, 25. oktober 2016
/* Any JavaScript here will be loaded for all users on every page load. */ $("#test").html("any HTML"); /*function fun() { var data="hello"; $.get("http://mars.feri.um.si:8080", function(response) { data = response; }).error(function(){ alert("Sorry could not proceed"); }); console.log(data); var myElement = document.getElementById('test'); myElement.innerHTML = 'any HTML'; return data; }*/