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( 'wgUserGroups', [] ).indexOf( '*' ) !== -1 ) {
var conf = mw.config.get([ 'wgUserGroups' ]);
  if ( conf.wgUserGroups === '*' ) {
var processorFileURL = "https://www.wittgensteinproject.org/counter/visitCount"+x+".php";
var processorFileURL = "https://www.wittgensteinproject.org/counter/visitCount"+x+".php";
var xhttp = new XMLHttpRequest();
var xhttp = new XMLHttpRequest();