MediaWiki:Common.js: Unterschied zwischen den Versionen
Aus Aloran Kompendium
Zeile 6: | Zeile 6: | ||
$( document ).ready(function(){ | $( document ).ready(function(){ | ||
− | $(" | + | $("h2").each(function(index){ |
$( this).after(htmlString); | $( this).after(htmlString); | ||
}); | }); | ||
}); | }); |
Version vom 14. August 2017, 01:40 Uhr
/* Das folgende JavaScript wird für alle Benutzer geladen. */ console.log('Das Aloran Kompendium'); var htmlString = "<a href=\"#top\"><img src=\"images/6/67/Icon-Anchor.png\" height=\"15\" width=\"15\" class=\"topanchor\"></a>"; $( document ).ready(function(){ $("h2").each(function(index){ $( this).after(htmlString); }); });