„MediaWiki:Mobile.js“ – Versionsunterschied
Erscheinungsbild
Inhalt gelöscht Inhalt hinzugefügt
Hgzh (Diskussion | Beiträge) DOM angepasst |
maintenance: Uncaught ReferenceError: importScript is not defined is common on German Wikipedia |
||
Zeile 15: | Zeile 15: | ||
} |
} |
||
}); |
}); |
||
// Declare deprecated functions to avoid JS error. |
|||
// Please consider using mw.notify to tell users they are running incompatible gadgets in mobile. |
|||
function importScript() {} |
Version vom 24. September 2020, 17:55 Uhr
/* Das JavaScript hier wird für die Benutzer der mobilen Website geladen. */
/**
* Ändere den Spenden-Link in der Sidebar für Besucher aus Deutschland, analog Common.js
* Special:Permalink/202065905#Spenden-Link_in_MediaWiki:Mobile.js
*/
$( function() {
if ( typeof window.Geo === "object" && window.Geo && window.Geo.country === 'DE' ) {
var baseUrl = 'https://spenden.wikimedia.de/';
var queryString = $.param({
'piwik_campaign': 'de.m.wikipedia.org',
'piwik_kwd': 'sidebar'
});
$("#p-donation li a").attr("href", baseUrl + '?' + queryString);
}
});
// Declare deprecated functions to avoid JS error.
// Please consider using mw.notify to tell users they are running incompatible gadgets in mobile.
function importScript() {}