MediaWiki:Common.js: Unterschied zwischen den Versionen
Aus WikiToYes
Admin (Diskussion | Beiträge) Die Seite wurde neu angelegt: „→Das folgende JavaScript wird für alle Benutzer geladen.: // Bootstrap 5 JavaScript laden, falls nicht vorhanden (function() { var script = document.createElement('script'); script.src = "https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"; script.async = true; document.head.appendChild(script); })();“ |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| Zeile 7: | Zeile 7: | ||
document.head.appendChild(script); | document.head.appendChild(script); | ||
})(); | })(); | ||
/* BOOTSTRAP KOMPONENTEN ANPASSEN */ | |||
$(function() { | |||
$('.mw-custom-accordion-header').click(function() { | |||
$(this).next('.mw-custom-accordion-content').toggle(); | |||
$(this).find('.toggle-icon').text(function(_, text) { | |||
return text === '▼' ? '▲' : '▼'; | |||
}); | |||
}); | |||
}); | |||
Aktuelle Version vom 16. Juli 2025, 15:03 Uhr
/* Das folgende JavaScript wird für alle Benutzer geladen. */
// Bootstrap 5 JavaScript laden, falls nicht vorhanden
(function() {
var script = document.createElement('script');
script.src = "https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js";
script.async = true;
document.head.appendChild(script);
})();
/* BOOTSTRAP KOMPONENTEN ANPASSEN */
$(function() {
$('.mw-custom-accordion-header').click(function() {
$(this).next('.mw-custom-accordion-content').toggle();
$(this).find('.toggle-icon').text(function(_, text) {
return text === '▼' ? '▲' : '▼';
});
});
});