The main configuration has to be created first on the root page.

GOOGLE TAG MANAGER LOADING SPINNER
Loading...
META NAVIGATION NAVBAR | JUMBOTRON | BREADCRUMB EXPANDED CONTENT TOP PAGE CONTENT
EXPANDED CONTENT BOTTOM BREADCRUMB BOTTOM PAGEBROWSER FOOTER BACK TO TOP BUTTON
Lazyload / Magnifying glass icon // LazyLoad - Main.html new LazyLoad({ elements_selector: ".lazy", threshold: {settings.lazyLoadThreshold}, callback_loaded: function(img) { var zoomOverlay = $(img).parent().parent().find('div.zoom-overlay'); if ( zoomOverlay.length ) { var imgwidth = $(img).outerWidth()+'px'; var imgheight = $(img).outerHeight()+'px'; if ( $(window).width() < {winWidth} ) { imgwidth = '100%'; } zoomOverlay.addClass('card-img-overlay'); if ( imgwidth ) { zoomOverlay.css('max-width', imgwidth); } if ( imgheight ) { zoomOverlay.css('max-height', imgheight); } } } }); // LazyLoad - Main.html new LazyLoad({ elements_selector: ".lazy", threshold: 0 }); // Magnifying glass icon - Main.html var magnify = $('.zoom-overlay'); if ( magnify.length ) { $('figure.image').each(function() { var img = $(this).find('img'); var imgwidth = $(img).outerWidth()+'px'; var imgheight = $(img).outerHeight()+'px'; var zoomOverlay = $(this).find('a div.zoom-overlay'); if ( $(window).width() < 576 ) { imgwidth = '100%'; } if ( zoomOverlay.length ) { zoomOverlay.addClass('card-img-overlay'); if ( imgwidth ) { zoomOverlay.css('max-width', imgwidth); } if ( imgheight ) { zoomOverlay.css('max-height', imgheight); } } }); } Default JS // Default - Main.html var navbarHeight = $("#main-navbar").outerHeight(); var fixedNavbar = false; if ( $("#main-navbar").hasClass("fixed-top") || $("#main-navbar").hasClass("sticky-top") ) { fixedNavbar = true; } // Scroll anchor if (window.location.hash) { var hash = window.location.hash; if ($(hash).length) { var idArr = hash.split('#'), targetElement = document.getElementById(idArr[1]), targetOffset = targetElement.offsetTop, offsetSize = {settings.config.sectionmenuAnchorOffset}; if ( fixedNavbar ) { offsetSize += navbarHeight; } var scrollTo = targetOffset-offsetSize; $("html, body").stop().animate({ 'scrollTop': scrollTo }, 1500, "easeInOutExpo"); } } Link to top // Link to top - Main.html var offset = 220; var duration = 500; $(window).scroll(function() { if ($(this).scrollTop() > offset) { $(".back-to-top").fadeIn(duration); } else { $(".back-to-top").fadeOut(duration); } }); $(".back-to-top").click(function(event) { event.preventDefault(event); $("html, body").animate({scrollTop: 0}, duration); return false; }); Loading spinner // Loading spinner - Main.html $(window).bind("load", function() { $('#status').fadeOut(); $('#site-preloader').delay(350).fadeOut('slow'); });