MediaWiki:Common.js: Unterschied zwischen den Versionen
LB (Diskussion | Beiträge) |
LB (Diskussion | Beiträge) |
||
Zeile 14: | Zeile 14: | ||
document.getElementById("btt").addEventListener("mouseenter",function(){ this.style.opacity="1.0", this.style.transition="0.5s" }); | document.getElementById("btt").addEventListener("mouseenter",function(){ this.style.opacity="1.0", this.style.transition="0.5s" }); | ||
document.getElementById("btt").addEventListener("mouseleave",function(){ this.style.opacity="0.7", this.style.transition="0.5s" }); | document.getElementById("btt").addEventListener("mouseleave",function(){ this.style.opacity="0.7", this.style.transition="0.5s" }); | ||
− | |||
− | |||
− |
Version vom 4. Juni 2018, 23:10 Uhr
/* Das folgende JavaScript wird für alle Benutzer geladen. */
/* ==== accordion ==== */
$('.accordion').click(function(){
$(this).toggleClass('active').next('.panel').toggle(400);
});
/* ==== back to top-button ==== */
document.getElementById("btt").addEventListener("mouseenter",function(){ this.style.opacity="1.0", this.style.transition="0.5s" });
document.getElementById("btt").addEventListener("mouseleave",function(){ this.style.opacity="0.7", this.style.transition="0.5s" });