1$(document).ready(function() 2{if($('.over_slider').length>0) 3{loadSlider();} 4if($('#category_foreign').length>0) 5{loadSlider_category();}});var slidesPerPage;var currentPage;var totalPages;function loadSlider() 6{var perpage_korekce=[0,26,26,28];const slides=$('.slide');const pagination=$('.pagination');slidesPerPage=getSlidesPerPage();currentPage=0;totalPages=getTotalPages();function getSlidesPerPage() 7{let w=$(window).width();if(w>1100)return 3;if(w>600)return 2;return 1;} 8function updateSlider() 9{slidesPerPage=getSlidesPerPage();totalPages=getTotalPages();let over_slider_width=$('.over_slider').innerWidth();let slide_width=$(slides[0]).innerWidth();let pos=0;if(totalPages>1) 10{pos=currentPage*slidesPerPage*(slide_width+perpage_korekce[slidesPerPage]);let remove_slide=0;if((currentPage+1==totalPages)&&(slides.length>2)) 11{remove_slide=(slidesPerPage*totalPages-slides.length)*(slide_width+perpage_korekce[slidesPerPage]-1);pos-=remove_slide;}} 12else 13{if(slides.length==1) 14{pos=-1*(over_slider_width/2-((slide_width+perpage_korekce[slidesPerPage])/2));} 15else if(slides.length==2) 16{pos=-1*(over_slider_width/2-slide_width-perpage_korekce[slidesPerPage]);}} 17$('.slider').css("transform","translateX("+(-1*pos)+"px)");updateDots();updateArrows();} 18function getTotalPages() 19{return Math.ceil(slides.length/slidesPerPage);} 20function updateArrows() 21{slidesPerPage=getSlidesPerPage();totalPages=getTotalPages();if(currentPage==0) 22{$('.pagetop4 .block .arrow_left').addClass("disabled");} 23else 24{$('.pagetop4 .block .arrow_left').removeClass("disabled");} 25if(currentPage+1==totalPages) 26{$('.pagetop4 .block .arrow_right').addClass("disabled");} 27else 28{$('.pagetop4 .block .arrow_right').removeClass("disabled");}} 29function updateDots() 30{slidesPerPage=getSlidesPerPage();let totalPages=getTotalPages();pagination.empty();for(let i=0;i<totalPages;i++) 31{pagination.append(`<span class="${i === currentPage ? 'active' : ''}"></span>`);}} 32function goToPage(page) 33{if(page<0)page=0;if(page>totalPages-1) 34{page=totalPages-1;} 35currentPage=page;updateSlider();updateDots();} 36$('.arrow_left').click(function() 37{goToPage(currentPage-1);});$('.arrow_right').click(function() 38{goToPage(currentPage+1);});$(".slider").on("touchstart",function(e) 39{startX=e.originalEvent.touches[0].clientX;});$(".slider").on("touchmove",function(e) 40{endX=e.originalEvent.touches[0].clientX;});$(".slider").on("touchend",function() 41{const deltaX=endX-startX;if(Math.abs(deltaX)>50) 42{if(deltaX<0) 43{goToPage(currentPage+1);} 44else 45{goToPage(currentPage-1);}}});$(window).resize(function() 46{currentPage=0;updateSlider();});pagination.on('click','span',function() 47{currentPage=$(this).index();updateSlider();});updateSlider();} 48function loadSlider_category() 49{var perpage_korekce=[0,10,18,17];const slides=$('.catforeprods .expc');var pagination=null;slidesPerPage=getSlidesPerPage();currentPage=0;totalPages=Math.ceil(slides.length/slidesPerPage);sliderInit();function sliderInit() 50{if($(".catforeprods .exps.expsleft .arrow.left").length==0) 51{$(".catforeprods .exps.expsleft").before('<div class="arrow left"></div>').after('<div class="pagination"></div>').after('<div class="arrow right"></div>');pagination=$('.catforeprods .pagination');$("#category_foreign .catforeprodsbutt").removeClass("button");$("#category_foreign .catforeprodsbutt").removeClass("buttongreen");}} 52function getSlidesPerPage() 53{let w=$(window).width();if(w>1150)return 3;if(w>680)return 2;return 1;} 54function interpolate(x,slidesc) 55{if(slidesc==3) 56{return 4+(x-762)*12/280;} 57else 58{return 10+(x-300)*16/380;}} 59function getTotalPages() 60{return Math.ceil(slides.length/slidesPerPage);} 61function updateSlider() 62{slidesPerPage=getSlidesPerPage();totalPages=getTotalPages();let slide_width=$(slides[0]).innerWidth();let pos=0;if(totalPages>1) 63{pos=currentPage*slidesPerPage*(slide_width+perpage_korekce[slidesPerPage]);let remove_slide=0;if((currentPage+1==totalPages)&&(slides.length>2)) 64{remove_slide=(slidesPerPage*totalPages-slides.length)*(slide_width+perpage_korekce[slidesPerPage]-1);pos-=remove_slide;} 65if(pos>0) 66{if(slidesPerPage==3) 67{pos-=interpolate($(".catforeprods").width(),slidesPerPage);} 68else if(slidesPerPage==2) 69{let w=$(window).width();if((w>=800)&&(w<=940)) 70{pos-=24;} 71else 72{pos-=12;}} 73else 74{pos-=interpolate($(".catforeprods").width(),slidesPerPage);}} 75$('.catforeprods .exps.expsleft').css("transform","translateX("+(-1*pos)+"px)");} 76updateDots();updateArrows();} 77function updateDots() 78{slidesPerPage=getSlidesPerPage();totalPages=getTotalPages();pagination.empty();for(let i=0;i<totalPages;i++) 79{pagination.append(`<span class="${i === currentPage ? 'active' : ''}"></span>`);}} 80function updateArrows() 81{slidesPerPage=getSlidesPerPage();totalPages=getTotalPages();if(currentPage==0) 82{$('.catforeprods .arrow.left').addClass("disabled");} 83else 84{$('.catforeprods .arrow.left').removeClass("disabled");} 85if(currentPage+1==totalPages) 86{$('.catforeprods .arrow.right').addClass("disabled");} 87else 88{$('.catforeprods .arrow.right').removeClass("disabled");}} 89function goToPage(page) 90{if(page<0)page=0;if(page>totalPages-1) 91{page=totalPages-1;} 92currentPage=page;updateSlider();updateDots();} 93$('.catforeprods .arrow.left').click(function() 94{goToPage(currentPage-1);});$('.catforeprods .arrow.right').click(function() 95{goToPage(currentPage+1);});$(".catforeprods .exps.expsleft").on("touchstart",function(e) 96{startX=e.originalEvent.touches[0].clientX;});$(".catforeprods .exps.expsleft").on("touchmove",function(e) 97{endX=e.originalEvent.touches[0].clientX;});$(".catforeprods .exps.expsleft").on("touchend",function() 98{const deltaX=endX-startX;if(Math.abs(deltaX)>50) 99{if(deltaX<0) 100{goToPage(currentPage+1);} 101else 102{goToPage(currentPage-1);}}});$(window).resize(function() 103{currentPage=0;updateSlider();});$(".catforeprods .pagination").on('click','span',function() 104{currentPage=$(this).index();updateSlider();});updateSlider();}
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.