Commit 1d7f3370 authored by lolimay's avatar lolimay Committed by Martin Schoeler

Fix cannot read property 'style' of undefined problem (#676)

parent c3756b2f
......@@ -454,6 +454,9 @@ showSlides();
function showSlides() {
var i;
var slides = document.getElementsByClassName("fade");
if (slides.length === 0) return; // the following code will not be run if not on the home page.
for (i = 0; i < slides.length; i++) {
slides[i].style.opacity = "0";
// slides[i].style.display = "none";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment