„MediaWiki:Mobile.js“ – Versionsunterschied
Erscheinungsbild
Inhalt gelöscht Inhalt hinzugefügt
maintenance: Uncaught ReferenceError: importScript is not defined is common on German Wikipedia |
maintenance: ReferenceError: importStylesheet is not defined Markierungen: Mobile Bearbeitung Mobile Web-Bearbeitung Erweiterte mobile Bearbeitung |
||
Zeile 20: | Zeile 20: | ||
// Please consider using mw.notify to tell users they are running incompatible gadgets in mobile. |
// Please consider using mw.notify to tell users they are running incompatible gadgets in mobile. |
||
function importScript() {} |
function importScript() {} |
||
function importStylesheet(){} |
Version vom 27. September 2020, 17:24 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() {}
function importStylesheet(){}