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