MediaWiki:Mobile.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Mecl67 (Diskussion | Beiträge) (Die Seite wurde neu angelegt) |
Mecl67 (Diskussion | Beiträge) |
||
| (7 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| − | /* Das folgende JavaScript wird für alle Nutzer der Mobilen Version geladen. | + | /* Das folgende JavaScript wird für alle Nutzer der Mobilen Version geladen. |
| − | + | if (document.title == "Salzburgwiki") { | |
| + | location.href = "https://www.sn.at/wiki/Salzburgwiki_Mobil"; | ||
| + | }*/ | ||
| − | + | 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 }) | |
| − | + | } | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | ( | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Aktuelle Version vom 9. April 2024, 11:30 Uhr
/* Das folgende JavaScript wird für alle Nutzer der Mobilen Version geladen.
if (document.title == "Salzburgwiki") {
location.href = "https://www.sn.at/wiki/Salzburgwiki_Mobil";
}*/
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 })
}