MediaWiki: Common.js: Unterschied zwischen den Versionen
Aus LehramtsWiki
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| (30 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
/* Jedes JavaScript hier wird für alle Benutzer für jede Seite geladen. */ | /* Jedes JavaScript hier wird für alle Benutzer für jede Seite geladen. */ | ||
// | // Enable cache! | ||
$.ajaxSetup({cache:true}); | |||
//addOnloadHook( createTab ); | //addOnloadHook( createTab ); | ||
| Zeile 12: | Zeile 7: | ||
jQuery.getScript("https://fragbela.zlb-uni-due.de/assets/jquery-ui/jquery-ui.min.js"); | jQuery.getScript("https://fragbela.zlb-uni-due.de/assets/jquery-ui/jquery-ui.min.js"); | ||
}); | }); | ||
// load bela injector | // load bela injector | ||
jQuery(function ($) { | jQuery(function ($) { | ||
const url = window.location.toString(); | |||
if(!url.includes('&action=edit') && !url.includes('&action=submit')) { | |||
jQuery.getScript("https://fragbela.zlb-uni-due.de/scripts/bela-injector.js"); | |||
} else { | |||
return; | |||
} | |||
}); | }); | ||
//jQuery(function ($) { | //BeLa Live Button for chat | ||
jQuery(function ($){ | |||
//}); | jQuery.getScript('https://lehramtswiki.uni-due.de/extensions/TweekiStyles/js/BeLaLiveButton.js'); | ||
}); | |||
jQuery(function ($){ | |||
jQuery.getScript('https://lehramtswiki.uni-due.de/extensions/TweekiStyles/js/WikiScripts.js') | |||
}); | |||
Version vom 13. Mai 2025, 09:14 Uhr
/* Jedes JavaScript hier wird für alle Benutzer für jede Seite geladen. */
// Enable cache!
$.ajaxSetup({cache:true});
//addOnloadHook( createTab );
jQuery(function ($) {
jQuery.getScript("https://fragbela.zlb-uni-due.de/assets/jquery-ui/jquery-ui.min.js");
});
// load bela injector
jQuery(function ($) {
const url = window.location.toString();
if(!url.includes('&action=edit') && !url.includes('&action=submit')) {
jQuery.getScript("https://fragbela.zlb-uni-due.de/scripts/bela-injector.js");
} else {
return;
}
});
//BeLa Live Button for chat
jQuery(function ($){
jQuery.getScript('https://lehramtswiki.uni-due.de/extensions/TweekiStyles/js/BeLaLiveButton.js');
});
jQuery(function ($){
jQuery.getScript('https://lehramtswiki.uni-due.de/extensions/TweekiStyles/js/WikiScripts.js')
});