MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus e-vendo Wiki
Wechseln zu: Navigation, Suche
Zeile 18: Zeile 18:
  
 
$('.accordion4').click(function(){
 
$('.accordion4').click(function(){
$(this).parents().children('.active4').not($(this)).removeClass('active4').next('.panel4').slideUp(300);
 
 
  $(this).toggleClass('active4').next('.panel4').slideToggle(300);
 
  $(this).toggleClass('active4').next('.panel4').slideToggle(300);
 
});
 
});

Version vom 9. August 2018, 12:20 Uhr

/* Das folgende JavaScript wird für alle Benutzer geladen. */


/* ==== accordion ==== */

$('.accordion').click(function(){
 $(this).toggleClass('active').next('.panel').slideToggle(300);
});

$('.accordion2').click(function(){
 $(this).toggleClass('active2').next('.panel2').slideToggle(300);
});

$('.accordion3').click(function(){
 $(this).parents().children('.active3').not($(this)).removeClass('active3').next('.panel3').slideUp(300);
 $(this).toggleClass('active3').next('.panel3').slideToggle(300);
});

$('.accordion4').click(function(){
 $(this).toggleClass('active4').next('.panel4').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" });