1jQuery(function($) { 2 3 /* 4 ÐдапÑивное Ð¼ÐµÐ½Ñ 5 */ 6 7 $('.nav-toggle').click(function() { 8 $('.nav').toggleClass('nav_mobile'); 9 $('.nav-toggle').toggleClass('nav-toggle_active'); 10 }); 11 12 var pull = $('.nav-toggle'), 13 menu = $('.menu'), 14 menuHeight = menu.height(); 15 16 $(pull).on('click', function(e) { 17 e.preventDefault(); 18 menu.slideToggle(); 19 }); 20 21 // $(window).resize(function(){ 22 // var w = $(window).width(); 23 // if(w > 320 && menu.is(':hidden')) { 24 // menu.removeAttr('style'); 25 // } 26 // }); 27 28 /* 29 $(document).on("click", ".searchbtn__btn", function(){ 30 var goalParams = { 31 button:'found_booking' 32 }; 33 alert(1); 34 yaCounter6363202.reachGoal('go_booking', goalParams); 35 return true; 36 }); 37 */ 38 39 $("a.bron1").on("click", function(){ 40 var goalParams = { 41 button:'zabronirovat_booking' 42 }; 43 yaCounter6363202.reachGoal('go_booking',goalParams); 44 return true; 45 }); 46 47 $("a.bron2").on("click", function(){ 48 var goalParams = { 49 button:'see_more_booking' 50 }; 51 yaCounter6363202.reachGoal('go_booking',goalParams); 52 return true; 53 }); 54 55 56 $("a.bron3").on("click", function(){ 57 var goalParams = { 58 button:'excursiya' 59 }; 60 yaCounter6363202.reachGoal('excurs_zakaz',goalParams); 61 return true; 62 }); 63 64 $("button.exc-contact-form-btn").on("click", function(){ 65 var goalParams = { 66 button:'excursovod' 67 }; 68 yaCounter6363202.reachGoal('excurs_zakaz',goalParams); 69 return true; 70 }); 71 72 73 74 75 76 //tabs 77 $('#tabs, #tabs-3').on('click', 'li:not(.active)', function() { 78 $(this).addClass('active').siblings().removeClass('active').parents('.routes, .entry, .where-stop').find('.box').eq($(this).index()).fadeIn(150).siblings('.box').hide(); 79 $('.slider-items').slick('reinit'); 80 //$('.slider-nav').slick('reinit'); 81 //$('.slider-for').slick('reinit'); 82 }); 83 84 //tabs 85 $('#tabs-2').on('click', 'li:not(.active)', function() { 86 $(this).addClass('active').siblings().removeClass('active').parents('.param-item').find('.box-2').eq($(this).index()).fadeIn(150).siblings('.box-2').hide(); 87 }); 88 89 //tabs 90 $('#tabs, #tabs-3').on('touchstart', 'li:not(.active)', function() { 91 $(this).addClass('active').siblings().removeClass('active').parents('.routes, .entry, .where-stop').find('.box').eq($(this).index()).fadeIn(150).siblings('.box').hide(); 92 $('.slider-items').slick('reinit'); 93 //$('.slider-nav').slick('reinit'); 94 //$('.slider-for').slick('reinit'); 95 }); 96 97 //tabs 98 $('#tabs-2').on('touchstart', 'li:not(.active)', function() { 99 $(this).addClass('active').siblings().removeClass('active').parents('.param-item').find('.box-2').eq($(this).index()).fadeIn(150).siblings('.box-2').hide(); 100 }); 101 102 103 //nav 104 105 var navTop = $('.nav').position().top; 106 107 $(window).scroll(function() { 108 // if ($(window).width() > 965) { 109 if ($(this).scrollTop() > navTop) { 110 $('.nav').addClass('fixed'); 111 } 112 else { 113 $('.nav').removeClass('fixed'); 114 } 115 // } 116 117 118 }); 119 120 //styler 121 $('.select-wrapper select, .currency select').styler(); 122 123 124 //valid 125 var pattern = /^[a-z0-9_-]+@[a-z0-9-]+\.[a-z]{2,6}$/i; 126 127 $('form').submit(function(e) { 128 129 if ($(this).find('.required').val() == '') { 130 e.preventDefault(); 131 $(this).find('.required').each(function() { 132 $(this).addClass('error'); 133 //.val('ÐаполниÑе ' + $(this).attr('placeholder')); 134 }); 135 136 } 137 138 /* 139 if($(this).find('.email').val().search(pattern) == 0){ 140 $(this).find('.email').removeClass('error'); 141 } 142 else { 143 $(this).find('.email').val('ÐеккоÑеÑно введен email'); 144 $(this).find('.email').addClass('error'); 145 e.preventDefault(); 146 } 147 */ 148 149 }); 150 151 $('input[type=text], input[type=password], textarea').focus(function() { 152 $(this).removeClass('error'); 153 //.val(''); 154 }); 155 156 157 //hide 158 $('.checkbox li').each(function() { 159 if ($(this).index() > 8) { 160 $(this).hide(); 161 } 162 }); 163 164 $('.link-show').click(function(e) { 165 e.preventDefault(); 166 167 $(this).parent().find('li').each(function() { 168 //if ($(this).index() > 8) { 169 $(this).show(); 170 //} 171 }); 172 173 $(this).hide(); 174 175 }); 176 177 // slider 178 $('#slider-price').slider({ 179 range: true, 180 animate:'slow', 181 values: [ $('#min').val(), $('#max').val() ], 182 min: 0, 183 max: 15000, 184 step: 100, 185 slide: function( event, ui ) { 186 $('#min').val(ui.values[ 0 ]); 187 $('#max').val(ui.values[ 1 ]); 188 } 189 }); 190 191 //$('#min').val($( "#slider-price" ).slider( "values", 0 )); 192 //$('#max').val($( "#slider-price" ).slider( "values", 1 )); 193 194 //window 195 $('.link-license').click(function(e) { 196 e.preventDefault(); 197 $('.window-license, .shadow').fadeIn(); 198 }); 199 200 //window 201 $('.link-more').click(function(e) { 202 e.preventDefault(); 203 $('.window-response, .shadow').fadeIn(); 204 }); 205 206 //window 207 $('.shadow, .btn-close').click(function(e) { 208 e.preventDefault(); 209 $('.window, .shadow').fadeOut(); 210 }); 211 212 //window 213 $('.response a.more-btn').click(function(e) { 214 e.preventDefault(); 215 $('.window-review, .shadow').fadeIn(); 216 }); 217 218 219 220 //$(".tel").mask("+7 (999) 999-9999"); 221 222 $('.exc-contact-form').on('submit', function(){ 223 if($('.usr-name').val() && $('.usr-tel').val()){ 224 var data = { 225 'action': 'exc-contact', 226 'name': $('.usr-name').val(), 227 'email': $('.usr-email').val(), 228 'tel': $('.usr-tel').val(), 229 'msg': $('.usr-text').val(), 230 'exc_id': $('.usr-exc-id').val(), 231 'amail': $('.usr-email2').val() 232 }; 233 $.post('/wp-content/themes/kgru/parts/mail.php' , data, function(response) { 234 if(response == 'mail'){alert('УкажиÑе емейл');return false;} 235 alert('ÐаÑе ÑообÑение оÑпÑавлено'); 236 $('.exc-contact-form-btn').hide(); 237 }); 238 yaCounter6363202.reachGoal('excurs_zakaz'); 239 } 240 241 242 return false;
243 }); 244 245 $('.jwp-submit').on('click', function(){ 246 $(this).closest('form').submit(); 247 return false; 248 }); 249 250 $(".btn btn-orange aflink").on("click", function(){ 251var goalParams = { 252button:'zabronirovat_booking' 253}; 254yaCounter6363202.reachGoal('go_booking',goalParams); 255return true; 256}); 257 258 $('#do-order').on('change', function(){ 259 var url = window.location.href; 260 url = url.replace(/orderby=rating/g, ''); 261 url = url.replace(/orderby=date/g, ''); 262 url = url.replace(/orderby=price/g, ''); 263 var q = ''; 264 if(!window.location.search) q = '?'; 265 url = url+q+'&orderby='+$(this).val(); 266 document.location.href = url; 267 }); 268 269 $('#show-more-comments').on('click', function(){ 270 var data = { 271 'action': 'ajax_comments', 272 'page': $('#show-more-page').val(), 273 'post_id': $('#comments-post-id').val(), 274 'template': $('#comments-tpl').val(), 275 }; 276 277 $.post('/wp-admin/admin-ajax.php', data, function(response) { 278 console.log(response); 279 if(response){ 280 var page = $('#show-more-page').val(); 281 page = parseInt(page) + 1; 282 $('#show-more-page').val(page); 283 $('#avatarcomments').append(response); 284 } else { 285 $('#show-more-comments').hide(); 286 } 287 }); 288 return false; 289 }); 290 291 $(document).on('click', '.comment-responce', function(){ 292 var cid = $(this).attr('data-cid'); 293 $('#comment_parent').val(cid); 294 var offset = $("#comment-response-form").offset().top - 60; 295 $('html, body').animate({ 296 scrollTop: offset 297 }, 2000); 298 return false; 299 }); 300 301 302 303}); 304 305 306
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.