Benutzer:Melancholie/stats/visitors
Erscheinungsbild
// See w:als:Project:Statistik/Besucher/A_simple_and_harmless_Visitor_Counter! // See als.wikipedia.org/wiki/User:Melancholie/stats for more! // split/combine vis from read // When loaded + on abort (due to (back-/forward-/auto-)refresh of IE(7), Safari, Opera) // function iframeRemoval() {$("lang-test").innerHTML = "";} // window.onload = iframeRemoval; if (wgNamespaceNumber == 0 && wgUserName == null && wgIsArticle == true && wgCurRevisionId != false && wgPageName != "Houptsyte" && navigator.cookieEnabled == true) { visitDate = new Date();//...&smaxage=1&maxage=1 if (visitDate.getUTCDate()) { visitMonth = visitDate.getUTCMonth()+1; visitDay = visitDate.getUTCDate(); } else { visitMonth = visitDate.getMonth()+1; visitDay = visitDate.getDate(); } if (visitMonth == 10 && window.name != visitDay && document.cookie.indexOf("anonymouslyCountedVisit="+visitDay) < 0) { function visitCounter() { var iFrame = document.createElement("iframe"); // Do NOT use your own wiki here, tokipona is dedicated to this statistics: iFrame.src = "http://tokipona.wikipedia.org/wiki/"+wgDBname+"_-_Simple_and_harmless_Visitor_Counter?action=raw&ctype=text/css";// onload="iframeRemoval()"><\/iframe>'; iFrame.style.display = "none"; $("footer").appendChild(iFrame); } visitCounter(); } window.name = visitDay;// Public (externally readable); must be non-sensitive/untraceable! // The following cookie is just as private as all the other files in the browser's cache! expireDate = visitDate.getTime()+86400000;//max. 1 day visitDate.setTime(expireDate); document.cookie = "anonymouslyCountedVisit="+visitDay+"; path=/; expires="+visitDate.toGMTString(); }