1$(document).ready(function() { 2 $('.slick_carousel_defaultp').slick({ 3 dots: true, 4 accessibility: false, 5 rtl: isRtl, 6 lazyLoad: iqit_carousel_load, 7 speed: 300, 8 autoplay: iqit_carousel_auto, 9 autoplaySpeed: 4500, 10 slidesToShow: grid_size_lg, 11 slidesToScroll: grid_size_lg, 12 responsive: [ 13 { 14 breakpoint: 1320, 15 settings: { 16 slidesToShow: grid_size_md, 17 slidesToScroll: grid_size_md, 18 } 19 }, 20 { 21 breakpoint: 1000, 22 settings: { 23 slidesToShow: grid_size_sm, 24 slidesToScroll: grid_size_sm 25 } 26 }, 27 { 28 breakpoint: 768, 29 settings: { 30 slidesToShow: grid_size_ms, 31 slidesToScroll: grid_size_ms 32 } 33 }, 34 { 35 breakpoint: 480, 36 settings: { 37 slidesToShow: grid_size_xs, 38 slidesToScroll: grid_size_xs 39 } 40 } 41 ] 42 }); 43 44 var _owlPro = $('#custprod-slider'); 45 $('.owl-carousel', _owlPro).on('refreshed.owl.carousel', function(event) { 46 var _currIndex = event.item.index; 47 if (_currIndex <= 0 ) { 48 _currIndex = event.item.count - 1; 49 }else{ 50 _currIndex = _currIndex - 1; 51 } 52 var _src = $('.owl-item', _owlPro).eq(_currIndex).find('img').attr('src'); 53 $('.cust-slider-prev img', _owlPro).attr('src' ,_src); 54 }) 55 $('.owl-carousel', _owlPro).owlCarousel({ 56 items: 1, 57 responsiveClass: true, 58 dots: true, 59 nav: true, 60 navContainer: '.owl-nav-cust', 61 dotsContainer: '.owl-dots-cust', 62 rewindNav: false, 63 callbacks: true, 64 }).on('changed.owl.carousel', function(event) { 65 var _currIndex = event.item.index; 66 if (_currIndex <= 0 ) { 67 _currIndex = event.item.count - 1; 68 69 }else{ 70 _currIndex = _currIndex - 1; 71 } 72 var _src = $('.owl-item', _owlPro).eq(_currIndex).find('img').attr('src'); 73 $('.cust-slider-prev img', _owlPro).attr('src' ,_src); 74 }); 75 76 $(window).scroll( $.debounce( 400, function () { 77 if($(this).scrollTop() > 600) { 78 $('#toTop').addClass('totop-showed'); 79 } else { 80 $('#toTop').stop().removeClass('totop-showed'); 81 } 82 }) ); 83 84 $('#toTop, .cust-btn-back span').click(function() { 85 $('body,html').animate({scrollTop:0},800); 86 }); 87 88 if(typeof(iqit_lazy_load) != "undefined" && iqit_lazy_load !== null && iqit_lazy_load) { 89 $("ul.product_list img.lazy").lazyload({ 90 threshold : 200, 91 skip_invisible : false 92 }); 93 } 94 95 sticky(); 96 $(window).resize(sticky); 97 function sticky() { 98 var $sticky = $('.scroll-sidebar-stop'); 99 var $description = $('.cust-start-show-img'); 100 var $informations = $('#center_column'); 101 var $stickyStopper = $('.tfcp-mark'); 102 103 var $sticky_width = '320px'; 104 if (!!$sticky.offset()) { // make sure ".sticky" element exists 105 var $stickOffset = 150; 106 var $stickyTop = $sticky.offset().top; 107 var $stickyLeft = parseInt($stickyStopper.width()); 108 $(window).scroll(function () { // scroll event 109 110 var $stickyStopperTop = $stickyStopper.offset().top; 111 var $generalSidebarHeight = $sticky.innerHeight() + $stickOffset; 112 var $stopPoint = $stickyStopperTop - $generalSidebarHeight - $stickOffset; 113 var $diff = $stopPoint + $stickOffset; 114 115 var windowTop = $(window).scrollTop(); // returns number 116 117 if (windowTop > $description.offset().top) { 118 $sticky.addClass('sticky'); 119 } else { 120 $sticky.removeClass('sticky'); 121 } 122 123 if (windowTop < $informations.offset().top || windowTop < $description.offset().top) { 124 $sticky.removeAttr('style'); 125 } else if ($stopPoint < windowTop) { 126 $sticky.css({ 127 position: 'absolute', 128 top: $diff - 100, 129 width: $sticky_width , 130 left:'auto', 131 right: '50px' 132 }); 133 } else if (windowTop > $description.offset().top) { 134 $sticky.css({ 135 position: 'fixed', 136 top: $stickOffset - 10, 137 width: $sticky_width , 138 left: 'auto', 139 right: 'auto' 140 }); 141 } 142 }); 143 } 144 } 145 146 stickyDevisBtn(); 147 $(window).resize(stickyDevisBtn); 148 function stickyDevisBtn(){ 149 var $sticky = $('.custp-wrap-btn'); 150 var $description = $('.box-cart-bottom > .content_prices'); 151 if (!!$sticky.offset()) { 152 var $stickOffset = 30; 153 $(window).scroll(function () { 154 var windowTop = $(window).scrollTop(); 155 if (windowTop > $description.offset().top) { 156 $sticky.addClass('cust-fixed'); 157 } else { 158 $sticky.removeClass('cust-fixed'); 159 } 160 }); 161 } 162 } 163 164 $('span[data-toggle=collapse]').on('click', function (e) { 165 var _self = $(this), _target = _self.attr('data-target'); 166 var _el = $('.tf-checkout-step[data-target='+_target+']'); 167 $('body,html').animate({scrollTop:_el.offset().top - 75},800); 168 169 }); 170 171 $(document).on('click', '.desc_more', function(event) { 172 event.preventDefault(); 173 if ($('.description_content').hasClass('open')) { 174 $('.description_content').removeClass('open'); 175 $(this).text('Lire la suite'); 176 $('.description_content .gradient').fadeIn(); 177 } else { 178 $('.description_content').addClass('open'); 179 $(this).text('Fermer'); 180 $('.description_content .gradient').fadeOut(); 181 } 182 }); 183});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.