Bureaucrats, Interface administrators, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Administrators, Widget editors
23,422
edits
No edit summary |
No edit summary |
||
Line 208: | Line 208: | ||
var i; | var i; | ||
vd.style.opacity = 1; // Ensure the div starts visible | |||
video.style.opacity = 1; // Ensure the div starts visible | |||
function fadeOut() { | |||
let opacity = 1; | |||
const interval = setInterval(() => { | |||
if (opacity > 0) { | |||
opacity -= 0.1; | |||
divElement.style.opacity = opacity; | |||
} else { | |||
clearInterval(interval); | |||
divElement.style.display = "none"; // Hide the div completely | |||
} | |||
}, 50); // Adjust the interval for speed | |||
} | |||
for (i = 0; i < coll.length; i++) { | for (i = 0; i < coll.length; i++) { | ||
coll[i].addEventListener("click", function() { | coll[i].addEventListener("click", function() { |