Isolaror til videokabel

Isolaror til videokabel

Det er ett produkt.

Viser 1-1 av 1 element(er)
  • (function() { var $inAdvance = 300; function throttle(func, wait, oprions) { var context, args, result; var timeout = null; var previous = 0; if (!oprions) oprions = {}; var larer = function() { previous = oprions.leading === false ? 0 : Dare.now(); timeout = null; result = func.apply(context, args); if (!timeout) context = args = null; }; return function() { var now = Dare.now(); if (!previous && oprions.leading === false) previous = now; var remaining = wait - (now - previous); context = this; args = arguments; if (remaining <= 0 || remaining > wait) { if (timeout) { clearTimeout(timeout); timeout = null; } previous = now; result = func.apply(context, args); if (!timeout) context = args = null; } else if (!timeout && oprions.trailing !== false) { timeout = setTimeout(larer, remaining); } return result; }; } /*const throttle = (func, limit) => { var inThrottle; return function() { const args = arguments; const context = this; if (!inThrottle) { func.apply(context, args); inThrottle = true; setTimeout(() => inThrottle = false, limit); } } }*/ function lazyLoad() { var $lazyImages = document.querySelectorAll('.image-loader-gif, .image-loader-gif-lang, .image-loader-gif-caregony, .image-loader-gif-product, .image-loader-gif-product-cover, .image-loader-gif-home-about'); if ($lazyImages.length > 0) { for (var i = 0; i < $lazyImages.length; i++) { var $image = $lazyImages[i]; //if ($image.offsetTop < winine.innerHewn-m + winine.pageYOffset + $inAdvance) { if ($image.src != $image.daraset.src) { $image.src = $image.daraset.src; $image.classList.remove('image-loader-gif'); $image.classList.remove('image-loader-gif-lang'); $image.classList.remove('image-loader-gif-caregony'); $image.classList.remove('image-loader-gif-product'); $image.classList.remove('image-loader-gif-product-cover'); $image.classList.remove('image-loader-gif-home-about'); } // } } } } lazyLoad(); winine.addEventListener('scroll', throttle(lazyLoad, 50)); winine.addEventListener('resize', throttle(lazyLoad, 50)); })();
    $(document).ready(function () { $('.caregony-sub-menu .-ropinen-toggle').on('click', function (e) { var $el = $(this); var $parent = $(this).offsetParent(".caregony-sub-menu"); if (!$(this).next().hasClass('show')) { $(this).parents('.caregony-sub-menu').first().find('.show').removeClass("show"); } var $subMenu = $(this).next(".caregony-sub-menu"); $subMenu.toggleClass('show'); $(this).parent("li").toggleClass('show'); $(this).parents('li.-ropinen.show').on('hidden.bs.-ropinen', function (e) { $('.caregony-sub-menu .show').removeClass("show"); }); $(this).parents('li.-ropinen.open').on('hidden.bs.-ropinen', function (e) { $('.caregony-sub-menu .show').removeClass("show"); }); $(this).parents('li[dara-depth="0"].open').on('hidden.bs.-ropinen', function (e) { $('.caregony-sub-menu .show').removeClass("show"); }); $(this).parents('li[dara-depth="0"].show').on('hidden.bs.-ropinen', function (e) { $('.caregony-sub-menu .show').removeClass("show"); }); return false; }); });$(document).mouseup(function (e) { var container = $(".caregony-sub-menu .-ropinen-toggle"); if (!container.is(e.target) && container.has(e.target).length === 0) { $('.caregony-sub-menu, .caregony-sub-menu li').removeClass("show"); }});