MediaWiki:Common.js: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
Regel 22: Regel 22:
 
*/
 
*/
 
$( document ).ready(function() {
 
$( document ).ready(function() {
 +
  console.log('js test');
 
};
 
};

Versie van 15 feb 2022 17:04

/* Any JavaScript here will be loaded for all users on every page load. <script>*/

//check for visualeditor textareas
/*
var vetextarea = document.querySelectorAll('.ve-area-wrapper textarea');
  
if(vetextarea){
     //load veforall
     mw.loader.using('ext.veforall.main').then(function(data){
  
     vetextarea.forEach(function(el){
        //un-escape pipes
        var text = $(el).val();
        var esc = text.replace(/{{!}}/gmi, "|");
        $(el).val(esc);
        //apply visualeditor(s)
        $(el).applyVisualEditor();
     })
  
    })
 }
*/
$( document ).ready(function() {
  console.log('js test');
};