setTimeout(function() {
var cc = initCookieConsent();
SCCconfig.current_lang = 'en-us';
SCCconfig.autoclear_cookies = true;
SCCconfig.cookie_name = 'cc_cookie';
SCCconfig.cookie_path = "/",
SCCconfig.cookie_expiration = 365,
SCCconfig.page_scripts = true,
SCCconfig.auto_language = 'document',
SCCconfig.onFirstAction = function() {
cc.firstAction = true;
}
,
SCCconfig.onAccept = function(cookie) {
if (typeof cc.firstAction == 'undefined') {
cc.accept();
}
}
,
SCCconfig.onChange = function(cookie, changed_preferences) {
console.log('onChange fired ...');
}
,
cc.run(SCCconfig);
cc.autoclearCookies(true);
if (typeof $.uniform == 'object') {
setTimeout(function() {
$.uniform.restore('#cc_div input,#cc_div select');
setTimeout(function() {
if (document.querySelectorAll('#cc_div .checker')) {
$.uniform.restore('#cc_div input,#cc_div select');
}
}, 500)
}, 1000);
window.addEventListener('resize', function() {
$.uniform.restore('#cc_div input,#cc_div select');
})
}
}, 1500);
function lazyLoadingImageHTML() {
var lazyImages = [].slice.call(document.querySelectorAll("img.lazy"));
if ("IntersectionObserver" in window) {
let lazyImageObserver = new IntersectionObserver(function (
entries,
observer
) {
entries.forEach(function (entry) {
if (entry.isIntersecting) {
let lazyImage = entry.target;
lazyImage.src = lazyImage.dataset.src;
lazyImage.classList.remove("lazy");
lazyImageObserver.unobserve(lazyImage);
}
});
});
lazyImages.forEach(function (lazyImage) {
lazyImageObserver.observe(lazyImage);
});
} else {
}
}
lazyLoadingImageHTML();