MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus SALZBURGWIKI
Zur Navigation springen Zur Suche springen
 
Zeile 1: Zeile 1:
 
/* Das folgende JavaScript wird für alle Benutzer geladen. */
 
/* Das folgende JavaScript wird für alle Benutzer geladen. */
var oewaPath = "Service/Verzeichnisse/LexikaGlossareEnzyklopedien";
+
let oewaPath = "Service/Verzeichnisse/LexikaGlossareEnzyklopedien";  
var oewaFrabo = "in";
+
const isMobile = screen.width < 768  
if (screen.width < 768) {
+
isMobile ? oewaPath + "/moewa/" : oewaPath
oewaPath = oewaPath + "/moewa/";
+
 
oewaFrabo = "mo";
+
if (typeof IOMm !== "undefined") {  
}
+
IOMm('configure', { st: 'at_w_atsn', dn: 'data-f6693670bf.sn.at', cn: 'at', dc: 'hyb', mh: 5 })
if (window.iom) {
+
IOMm('pageview', { cp: oewaPath })  
var oewa_data = {
 
"cn":"at", // country
 
"st":"at_w_atsn", // sitename
 
"cp":oewaPath, // kategorienpfad
 
"sv":oewaFrabo, // Format der Befragungseinladung
 
"ps":"lin", // Privacy setting
 
"sc":"yes"
 
};
 
iom.h(oewa_data,1);
 
 
}
 
}

Aktuelle Version vom 9. April 2024, 09:16 Uhr

/* Das folgende JavaScript wird für alle Benutzer geladen. */
let oewaPath = "Service/Verzeichnisse/LexikaGlossareEnzyklopedien"; 
const isMobile = screen.width < 768 
isMobile ? oewaPath + "/moewa/" : oewaPath 

if (typeof IOMm !== "undefined") { 
IOMm('configure', { st: 'at_w_atsn', dn: 'data-f6693670bf.sn.at', cn: 'at', dc: 'hyb', mh: 5 }) 
IOMm('pageview', { cp: oewaPath }) 
}