1function initCities(){ 2 $(".cities select").select2({ 3 language: GNS.language, 4 minimumResultsForSearch: Infinity 5 }).on('select2:select',function(e){ 6 window.location.href = '/city/'+$('.cities select').val()+'?back='+$(':selected',$('.cities select')).attr("data-url"); 7 }); 8 $('.cities_modal .close').on('click',function(){ 9 $('.cities_modal').fadeOut(); 10 }); 11 $('.geo_modal .close').on('click',function(){ 12 $('.geo_modal').fadeOut(); 13 }); 14 $('.cities .current').on('click',function(){ 15 $('.cities_modal').fadeIn(); 16 }); 17 $('.cities_modal .links a').on('click',function(event){ 18 event.preventDefault(); 19 window.location.href='/city/'+$(this).data('city')+'?back='+$(this).attr("href"); 20 document.cookie="city_geo="+$(this).data('city')+"; path=/; max-age="+(60*60*24*30); 21 }); 22 $('.geo_modal .links a.no').on('click',function(event){ 23 event.preventDefault(); 24 $('.geo_modal').fadeOut(); 25 $('.cities_modal').fadeIn(); 26 }); 27 $('.geo_modal .links a.yes').on('click',function(event){ 28 event.preventDefault(); 29 window.location.href='/city/'+$(this).data('city')+'?back='+$(this).attr("href"); 30 document.cookie="city_geo="+$(this).data('city')+"; path=/; max-age="+(60*60*24*30); 31 }); 32} 33initCities(); 34function initGb(){ 35 $('.starrr').each(function(){ 36 var el=$(this); 37 $(el).starrr({ 38 rating:0, 39 readOnly:false, 40 max:10, 41 change:function(e,value){ 42 console.log(e+'|'+value); 43 el.next('select').val(value); 44 } 45 }); 46 }); 47 $("select[name=product]").select2({ 48 tags:true, 49 placeholder:"ÐбеÑÑÑÑ Ð°Ð±Ð¾ напиÑÑÑÑ Ð½Ð°Ð·Ð²Ñ", 50 allowClear:true 51 }); 52 var im=new Inputmask("+38 999 999 99 99"); 53 im.mask($('.review_form input[name=phone]')); 54 im.mask($('.contacts_form input[name=phone]')); 55} 56initGb(); 57function initSets(){ 58 $('.sets .item .info .products .nav ul li').on('click',function(){ 59 $(this).closest('.item').find('.info .products .nav ul li,.info .products .tabs .tab,.photos .product_img_gallery').removeClass('active'); 60 $(this).addClass('active'); 61 $(this).closest('.item').find('.info .products .tabs .tab_'+$(this).data('tab')+',.photos .product_img_gallery_'+$(this).data('tab')).addClass('active') 62 }); 63 $('.sets .item .info .announce .description').on('click',function(){ 64 //$(this).next().slideToggle(); 65 $(this).closest('.item').find('.info .announce_'+$(this).data('announce')).find('.txt').slideToggle(); 66 }); 67 if($(".sets_photos_carousel").length){ 68 $(".sets_photos_carousel").owlCarousel({ 69 loop:false, 70 rewind:true, 71 nav:false, 72 dots:true, 73 lazyLoad:true, 74 autoplay:true, 75 autoplayTimeout:5000, 76 autoplayHoverPause:true, 77 responsive:{ 78 0:{ 79 items:1, 80 margin:0, 81 }, 82 480:{ 83 items:2, 84 margin:10, 85 }, 86 768:{ 87 items:2, 88 margin:20, 89 } 90 } 91 }); 92 } 93 $(document).on('click','.sets_photos a[href^="#"]',function(e){ 94 let hash=$(this).attr('href'); 95 if(hash.length>1&&$(hash).length){ 96 e.preventDefault(); 97 $('html,body').animate({ 98 scrollTop:($(hash).offset().top-($('header').outerHeight()||0)) 99 },500); 100 } 101 }); 102} 103initSets(); 104function initVacancies(){ 105 $('.vacancies .item .name').on('click',function(){ 106 $(this).closest('.item').toggleClass('active'); 107 $(this).closest('.item').find('.text').slideToggle(); 108 }); 109 $(".vacancies_form select").select2({ 110 language: GNS.language, 111 minimumResultsForSearch: Infinity 112 }).on('select2:select',function(e){ 113 }); 114 $('.vacancies_filter ul li').on('click',function(){ 115 $('.vacancies_filter ul li').removeClass('active'); 116 $(this).addClass('active'); 117 if($(this).data('city')=='all'){ 118 $('.vacancies .item').fadeIn(); 119 } 120 else{ 121 $('.vacancies .item').fadeOut(); 122 $('.vacancies .item[data-city='+$(this).data('city')+']').fadeIn(); 123 } 124 }); 125} 126initVacancies();
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.