My website is having trouble loading a full-page image
slider. It seems like the images are not loading properly, possibly due to a javascript issue.
Check out my script below:
$("#menutoggle").click(function() {
$('.xs-menu').toggleClass('displaynone');
});
//add active class on menu
$('ul li').click(function(e) {
e.preventDefault();
$('li').removeClass('active');
$(this).addClass('active');
});
//drop down menu
$(".drop-down").hover(function() {
$('.mega-menu').addClass('display-on');
});
$(".drop-down").mouseleave(function() {
$('.mega-menu').removeClass('display-on');
});
You can view the full code here on codepen.