MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 2: Line 2:
//for counting visits
//for counting visits
function countVisit(x) {
function countVisit(x) {
var processorFileURL = "https://www.wittgensteinproject.org/counter/visitCount"+x;
var processorFileURL = "https://www.wittgensteinproject.org/counter/visitCount"+x+".php";
var xhttp = new XMLHttpRequest();
var xhttp = new XMLHttpRequest();
xhttp.open("GET", processorFileURL, true);
xhttp.open("GET", processorFileURL, true);
xhttp.send();
xhttp.send();
}
}