MediaWiki: Common.js: Unterschied zwischen den Versionen

Aus LehramtsWiki
Wechseln zu: Navigation, Suche
KKeine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(34 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt)
Zeile 9: Zeile 9:


//addOnloadHook( createTab );
//addOnloadHook( createTab );
jQuery(function ($) {
  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 ($) {
   jQuery.getScript('https://zlb.uni-due.de/okomo/fragbela/bela-injector.js', () => {
    const url = window.location.toString();
    console.log('bela injector loaded')
      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 ($) {
//    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');
});
 
//Fehler-gefunden Button Script
jQuery(function ($){
  jQuery.getScript('https://lehramtswiki.uni-due.de/extensions/TweekiStyles/js/showFehlerGefundenButton.js');
});
 
//BeLa Live Button for chat
jQuery(function ($){
  jQuery.getScript('https://lehramtswiki.uni-due.de/extensions/TweekiStyles/js/BeLaLiveButton.js');
});

Aktuelle Version vom 18. März 2024, 12:33 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");
});


// 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;
      }
});


//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');
});

//Fehler-gefunden Button Script
jQuery(function ($){
  jQuery.getScript('https://lehramtswiki.uni-due.de/extensions/TweekiStyles/js/showFehlerGefundenButton.js');
});

//BeLa Live Button for chat
jQuery(function ($){
  jQuery.getScript('https://lehramtswiki.uni-due.de/extensions/TweekiStyles/js/BeLaLiveButton.js');
});