MediaWiki:Common.js
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Das folgende JavaScript wird für alle Benutzer geladen. */ // Fotorama JS und CSS nachladen mw.loader.using('mediawiki.util', function () { // CSS laden var css = document.createElement('link'); css.rel = 'stylesheet'; css.href = 'https://cdnjs.cloudflare.com/ajax/libs/fotorama/4.6.4/fotorama.css'; document.head.appendChild(css); // JS laden var script = document.createElement('script'); script.src = 'https://cdnjs.cloudflare.com/ajax/libs/fotorama/4.6.4/fotorama.js'; script.async = true; document.head.appendChild(script); }); function initFotoramaWhenReady() { if (typeof jQuery !== 'undefined' && jQuery().fotorama) { jQuery('.fotorama').fotorama(); } else { setTimeout(initFotoramaWhenReady, 100); // Wiederhole alle 100 ms } } initFotoramaWhenReady();