MediaWiki: Common.js: Unterschied zwischen den Versionen

Aus LehramtsWiki
Wechseln zu: Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 35: Zeile 35:
jQuery(function ($){
jQuery(function ($){
   jQuery.getScript('https://lehramtswiki.uni-due.de/extensions/TweekiStyles/js/tocMove.js');
   jQuery.getScript('https://lehramtswiki.uni-due.de/extensions/TweekiStyles/js/tocMove.js');
});
//Script for hiding BeLa in edit mode
jQuery(function ($){
  jQuery.getScript('https://lehramtswiki.uni-due.de/extensions/TweekiStyles/js/HideBelaOnEdit.js');
});
});

Version vom 23. Oktober 2023, 10:09 Uhr

/* Jedes JavaScript hier wird für alle Benutzer für jede Seite geladen. */
//jQuery( function( $ ) {
//        addPortletLink( 'p-views', wgArticlePath.replace( '$1', 'Spezial:Kontakt'), 'Fehler gefunden?');
//} );

//function createTab() {
//  addPortletLink( 'p-views', wgArticlePath.replace( '$1', 'Spezial:Kontakt'), 'Fehler gefunden?');
//}

//addOnloadHook( createTab );
jQuery(function ($) {
  jQuery.getScript("https://fragbela.zlb-uni-due.de/assets/jquery-ui/jquery-ui.min.js");
});
jQuery(function ($) {
  jQuery.getScript("https://lehramtswiki.uni-due.de/extensions/MensaPlan/source/script_jquery.js");
});

// load bela injector
jQuery(function ($) {
  const url = window.location.toString();
  if(!url.includes('&action=edit')) {
      jQuery.getScript("https://fragbela.zlb-uni-due.de/scripts/bela-injector.js");
  } else {
        return;
  }
  //jQuery.getScript("https://fragbela.zlb-uni-due.de/scripts/bela-injector.js");
});


//jQuery(function ($) {
//    jQuery.getScript('https://zlb.uni-due.de/okomo/videojs/video.min.js');
//});

//Script for pushing TOC in mobile view to top and reposition it back to origin position in dekstop view
jQuery(function ($){
  jQuery.getScript('https://lehramtswiki.uni-due.de/extensions/TweekiStyles/js/tocMove.js');
});