MediaWiki: Common.js: Unterschied zwischen den Versionen

Aus LehramtsWiki
Wechseln zu: Navigation, Suche
Tim Schumacher (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(13 dazwischenliegende Versionen von einem anderen Benutzer 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. */
//jQuery( function( $ ) {
// Enable cache!
//        addPortletLink( 'p-views', wgArticlePath.replace( '$1', 'Spezial:Kontakt'), 'Fehler gefunden?');
$.ajaxSetup({cache:true});
//} );
 
//function createTab() {
//  addPortletLink( 'p-views', wgArticlePath.replace( '$1', 'Spezial:Kontakt'), 'Fehler gefunden?');
//}


//addOnloadHook( createTab );
//addOnloadHook( createTab );
Zeile 15: Zeile 10:


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


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


//BeLa Live Button for chat
//BeLa Live Button for chat
Zeile 50: Zeile 26:


jQuery(function ($){
jQuery(function ($){
   jQuery.getScript('https://lehramtswiki.uni-due.de/extensions/TweekiStyles/js/WikiScripts.js');
   jQuery.getScript('https://lehramtswiki.uni-due.de/extensions/TweekiStyles/js/WikiScripts.js')
});
});

Aktuelle Version vom 13. Mai 2025, 10: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')
});