MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus e-vendo Wiki
Wechseln zu: Navigation, Suche
Zeile 3: Zeile 3:
  
 
/* ==== accordion ==== */
 
/* ==== accordion ==== */
 +
 
$('.accordion').click(function(){
 
$('.accordion').click(function(){
 
  $(this).toggleClass('active').next('.panel').toggle(400);
 
  $(this).toggleClass('active').next('.panel').toggle(400);
Zeile 9: Zeile 10:
  
  
 +
/* ==== back to top-button ==== */
  
/* ==== back to top-button ==== */
 
 
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" });
 +
 +
 +
mw.loader.load('//use.fontawesome.com/aldfjsdlkfjdlskf0.js');

Version vom 4. Juni 2018, 12:23 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" });


mw.loader.load('//use.fontawesome.com/aldfjsdlkfjdlskf0.js');