Template:Home header: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 2: Line 2:
<script>
<script>
function countVisit(x) {
function countVisit(x) {
    if ( mw.config.get( 'wgUserName' ) === 'Mlavazza' ) {
  var processorFileURL = "https://www.wittgensteinproject.org/counter/visitCount"+x+".php";
        var a = 1;
  var xhttp = new XMLHttpRequest();
    } else {
  xhttp.open("GET", processorFileURL, true);
var processorFileURL = "https://www.wittgensteinproject.org/counter/visitCount"+x+".php";
  xhttp.send();
var xhttp = new XMLHttpRequest();
xhttp.open("GET", processorFileURL, true);
xhttp.send();
    }
}
}
countVisit('Main_Page');
countVisit('Main_Page');