1(function ($) { 2 $(document).ready(function () { 3 4 $(document).on('keydown', '.phoneinput', function(e){ 5 if($(this).val() == "+7 (___) ___-____" && (e.keyCode == 56 || e.keyCode == 104)) { //ÐÑли пеÑвой вводим воÑÑмеÑкÑ, Ñо не вводим ÐµÑ :) 6 e.preventDefault(); 7 } 8 }); 9 10 11 $('.submenu-opener').on('click', function(){ 12 $(this).toggleClass('opened'); 13 let parent_li = $(this).parent('span').parent('li.parent'); 14 $(parent_li).toggleClass('opened'); 15 $(' > ul', parent_li).stop(true,false).slideToggle(300); 16 }); 17 18 $(document).on("click", ".tarifs_all", function(e){ 19 e.preventDefault(); 20 $('.tarif_table div.hidden').removeClass('hidden'); 21 $('.tarifs_all').hide(); 22 }); 23 $(document).on('mouseover', '.tarif_column', function(){ 24 if(!$(this).hasClass('active') && !$(this).hasClass('tarif_content')) { 25 $('.tarif_column.active').removeClass('active'); 26 $(this).addClass('active'); 27 } 28 }); 29 $('.jcarousel-wrapper-d .jcarousel-d').jcarousel().jcarouselSwipe(); 30 31 $('.jcarousel-control-prev-d') 32 .on('jcarouselcontrol:active', function() { 33 $(this).removeClass('inactive'); 34 }) 35 .on('jcarouselcontrol:inactive', function() { 36 $(this).addClass('inactive'); 37 }) 38 .jcarouselControl({ 39 target: '-=1' 40 }); 41 42 $('.jcarousel-control-next-d') 43 .on('jcarouselcontrol:active', function() { 44 $(this).removeClass('inactive'); 45 }) 46 .on('jcarouselcontrol:inactive', function() { 47 $(this).addClass('inactive'); 48 }) 49 .jcarouselControl({ 50 target: '+=1' 51 }); 52 //Company page slider 53 var slide_num = $('.company_slider .item').size(); 54 $('.company_slider').owlCarousel({ 55 animateOut: 'fadeOut', 56 autoplay: true, 57 loop:true, 58 margin:0, 59 dots: true, 60 nav:false, 61 slideBy: 1, 62 responsiveClass:true, 63 responsive:{ 64 0:{ 65 items:1, 66 }, 67 }, 68 onTranslate: function(){ 69 var num = $('.company_slider .owl-item.active .item').data('original-num'); 70 if(parseInt(num) >= slide_num) { 71 var class_name = 'circles_1'; 72 } else { 73 var class_name = 'circles_' + (parseInt(num) + 1); 74 } 75 $('.company_circle_bg').removeClass('circles_1 circles_2 circles_3').addClass(class_name); 76 } 77 }); 78 79 //Portfolio inside slider 80 if($("div").is("#allinone_carousel_charming")){ 81 82 $('#allinone_carousel_charming').allinone_carousel({ 83 skin: 'charming', 84 responsiveRelativeToBrowser: false, 85 width: 1170, 86 height: 710, 87 responsive:true, 88 autoPlay: 6, 89 animationTime: 0.3, 90 resizeImages:false, 91 autoHideBottomNav:false, 92 showElementTitle:false, 93 verticalAdjustment:0, 94 elementsHorizontalSpacing: 215, 95 showPreviewThumbs:false, 96 //easing:'easeOutBounce', 97 numberOfVisibleItems:3, 98 nextPrevMarginTop:23, 99 playMovieMarginTop:0, 100 bottomNavMarginBottom:-10, 101 showBottomNav: false, 102 elementsVerticalSpacing: 30,//105 103 showCircleTimer: false 104 }); 105 106 /*$("a[rel=group]").fancybox({ 107 'imageScale': true,autoSize : false, 108 padding : 0,fitToView : false, 109 'transitionIn' : 'none', 110 'transitionOut' : 'none', 111 'titlePosition' : 'over', 112 helpers: { 113 overlay: {
114 locked: false 115 } 116 } 117 });*/ 118 119 $(document).on("click", ".portfolio_inside_pages li", function(e){ 120 if(!$(this).hasClass('active')) { 121 $(".portfolio_inside_pages li.active").removeClass('active'); 122 $(this).addClass('active'); 123 var ind = $(this).index(); 124 $('.bottomNav .bottomNavButtonOFF').eq(ind).click(); 125 } 126 }); 127 $(document).on("click", ".about_task_pages li", function(e){ 128 if(!$(this).hasClass('active')) { 129 $(".about_task_pages li.active").removeClass('active'); 130 $(this).addClass('active'); 131 var ind = $(this).index(); 132 $('.bottomNav .bottomNavButtonOFF').eq(ind).click(); 133 } 134 }); 135 } 136 }); 137})(jQuery)
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.