1 2 3 4/* 5$( ".close-action span" ).click(function(){ // задаем ÑÑнкÑÐ¸Ñ Ð¿Ñи нажаÑиии на ÑÐ»ÐµÐ¼ÐµÐ½Ñ Ñ ÐºÐ»Ð°ÑÑом toggle 6 $( ".bottom-pop" ).slideToggle(); // ÑкÑÑваем, или оÑобÑажаем вÑе ÑлеменÑÑ slideToggle <div> 7 $( ".gift-icon" ).toggleClass('show'); // ÑкÑÑваем, или оÑобÑажаем вÑе ÑлеменÑÑ slideToggle <div> 8}); 9$( ".gift-icon" ).click(function(){ // задаем ÑÑнкÑÐ¸Ñ Ð¿Ñи нажаÑиии на ÑÐ»ÐµÐ¼ÐµÐ½Ñ Ñ ÐºÐ»Ð°ÑÑом toggle 10 $( ".bottom-pop" ).slideToggle(); // ÑкÑÑваем, или оÑобÑажаем вÑе ÑлеменÑÑ slideToggle <div> 11 $( ".gift-icon" ).toggleClass('show'); // ÑкÑÑваем, или оÑобÑажаем вÑе ÑлеменÑÑ slideToggle <div> 12}); 13 14 15$( ".sun-click" ).click(function(){ // задаем ÑÑнкÑÐ¸Ñ Ð¿Ñи нажаÑиии на ÑÐ»ÐµÐ¼ÐµÐ½Ñ Ñ ÐºÐ»Ð°ÑÑом toggle 16 $( ".happy-card" ).toggleClass('hiddden'); // ÑкÑÑваем, или оÑобÑажаем вÑе ÑлеменÑÑ slideToggle <div> 17}); 18*/ 19 20//ÐодклÑÑаем ÑÑÐ°Ð¹Ð»ÐµÑ 21(function($) { 22 $(function() { 23 $('input, select').each(function() { 24 if ($(this).closest("div.price-box-fields").length === 0) { 25 $(this).styler(); 26 } 27 }); 28 }); 29})(jQuery); 30 31 32$( ".link-l" ).click(function(){ // задаем ÑÑнкÑÐ¸Ñ Ð¿Ñи нажаÑиии на ÑÐ»ÐµÐ¼ÐµÐ½Ñ Ñ ÐºÐ»Ð°ÑÑом toggle 33 $( ".left-menu-down" ).slideToggle(); // ÑкÑÑваем, или оÑобÑажаем вÑе ÑлеменÑÑ slideToggle <div> 34 $(".left-burger").toggleClass('active'); 35 $(".top-mobile-menu").toggleClass('active'); 36 $(".link-r").toggleClass('hidden'); 37 $(".mob-lk-link a").toggleClass('opacity0').toggleClass('hidden'); 38 $(".mob-bad-link a").toggleClass('opacity0').toggleClass('hidden'); 39}); 40 41$( ".link-r" ).click(function(){ // задаем ÑÑнкÑÐ¸Ñ Ð¿Ñи нажаÑиии на ÑÐ»ÐµÐ¼ÐµÐ½Ñ Ñ ÐºÐ»Ð°ÑÑом toggle 42 $( ".right-menu-down" ).slideToggle(); // ÑкÑÑваем, или оÑобÑажаем вÑе ÑлеменÑÑ slideToggle <div> 43 $(".right-burger").toggleClass('active'); 44 $(".top-mobile-menu").toggleClass('active'); 45 $(".link-l").toggleClass('hidden'); 46 $(".mob-lk-link a").toggleClass('opacity0').toggleClass('hidden'); 47 $(".mob-bad-link a").toggleClass('opacity0').toggleClass('hidden'); 48}); 49 50 51 52 53$( ".show-all" ).click(function(){ // задаем ÑÑнкÑÐ¸Ñ Ð¿Ñи нажаÑиии на ÑÐ»ÐµÐ¼ÐµÐ½Ñ Ñ ÐºÐ»Ð°ÑÑом toggle 54 $( ".show-all" ).toggleClass('toggle-show').toggleClass('toggle-hide'); 55 $( ".show-hidden-content" ).toggleClass('showall'); 56}); 57 58 59 60 61 62$(function () { 63 $('[data-toggle="tooltip"]').tooltip() 64}); 65 66 67 68// yandex maps ready function 69window['yamaps_ready'] = function() 70{ 71 $("div.yamap").trigger("init.yamaps"); 72}; 73 74 75// tour filter on top 76(function($) 77{ 78 $("#tours-on-tops").submit(function() 79 { 80 var $form = $(this), 81 $sel_country = $form.find("select[name=country]"), 82 sel_country_url = $sel_country.find("option:selected").data("url"), 83 $sel_tour_sect = $form.find("select[name=tour-sect]"), 84 sel_tour_sect_url = $sel_tour_sect.find("option:selected").data("url"), 85 $sel_tour = $form.find("select[name=tour]"), 86 sel_tour_url = $sel_tour.find("option:selected").data("url"), 87 cookies = []; 88 89 if (sel_tour_url) 90 { 91 location.href = sel_tour_url; 92 cookies = [$sel_country.val(), $sel_tour_sect.val(), $sel_tour.val()]; 93 } 94 else if (sel_tour_sect_url) 95 { 96 location.href = sel_tour_sect_url; 97 cookies = [$sel_country.val(), $sel_tour_sect.val(), 0]; 98 } 99 else if (sel_country_url) 100 { 101 location.href = sel_country_url; 102 cookies = [$sel_country.val(), 0, 0]; 103 } 104 105 Cookies.set("main_filter", cookies, { expires: 365 }); 106 return false; 107 }); 108 109 $("#tours-on-tops").find("select").change(function() 110 { 111 var $form = $(this.form), 112 $sel_country = $form.find("select[name=country]"), 113 $sel_tour_sect = $form.find("select[name=tour-sect]"), 114 $sel_tour = $form.find("select[name=tour]"), 115 sel_name = $(this).prop('name'), 116 country_id = $sel_country.val() || 0, 117 tour_section_id = $sel_tour_sect.val() || 0; 118 119 if (sel_name === 'tour') 120 { 121 return true; 122 } 123 124 $form.find("select, button").prop('disabled', 'disabled').trigger('refresh'); 125 126 $.ajax({ 127 url: "/inc/ajax_tours_top_filter.php", 128 data: { 129 "country_id": country_id, 130 "tour_section_id": tour_section_id 131 }, 132 method: 'POST', 133 dataType: "json", 134 success: function(data, textStatus, jqXHR) 135 { 136 $sel_tour_sect.empty().trigger('refresh'); 137 $sel_tour.empty().trigger('refresh'); 138 139 if (country_id === 0) 140 { 141 $sel_country.html(data['COUNTRIES']); 142 } 143 144 $sel_country.prop('disabled', null).trigger('refresh'); 145 146 if (data['SECTIONS']) 147 { 148 $sel_tour_sect.html(data['SECTIONS']).prop('disabled', null).trigger('refresh'); 149 } 150 else 151 { 152 $sel_tour_sect.html('<option>- ÐÑбой вид оÑдÑÑ Ð° -</option>').prop('disabled', 'disabled').trigger('refresh'); 153 } 154 155 if (data['TOURS']) 156 { 157 $sel_tour.html(data['TOURS']).prop('disabled', null).trigger('refresh'); 158 } 159 else if (tour_section_id > 0) 160 { 161 $sel_tour.html('<option>- ÐÑбой ÑÑÑ -</option>').prop('disabled', 'disabled').trigger('refresh'); 162 } 163 164 $form.find("button").prop('disabled', null).trigger('refresh'); 165 }, 166 error: function(jqXHR, textStatus, errorThrown) 167 { 168 alert("ÐÑибка полÑÑÐµÐ½Ð¸Ñ ÑпиÑка ÑÑÑан. ÐожалÑйÑÑа, обÑаÑиÑеÑÑ Ðº админиÑÑаÑоÑÑ ÑайÑа."); 169 }, 170 complete: function(jqXHR, textStatus) 171 { 172 } 173 }); 174 175 return true; 176 }); 177 178 $("#tours-on-tops").find("select[name=country]").trigger("change"); 179})(jQuery); 180 181 182// stars rating 183(function($) {
184 $("div.kari-stars").kari_rating(); 185})(jQuery); 186 187 188// ajax forms 189(function($) { 190 $("#modal-callback form").kari_form(); 191})(jQuery); 192 193 194// modal forms 195(function($) { 196 $(".modal-order-hotel").click(function() 197 { 198 $('#modal-order-hotel').find("input[name=HOTEL]").val($(this).data('hotelId')); 199 $('#modal-order-hotel').find("input[name=HOTEL_NAME]").val($(this).data('hotelName')); 200 $('#modal-order-hotel').modal("show"); 201 return false; 202 }); 203 $("#modal-order-hotel form").kari_form(); 204 205 $(".modal-order-excursion").click(function() 206 { 207 $('#modal-order-excursion').find("input[name=EXCURSION]").val($(this).data('excursionId')); 208 $('#modal-order-excursion').find("input[name=EXCURSION_NAME]").val($(this).data('excursionName')); 209 $('#modal-order-excursion').modal("show"); 210 return false; 211 }); 212 $("#modal-order-excursion form").kari_form(); 213 214 $(".modal-order-tour").click(function() 215 { 216 console.debug($('#modal-order-tour')); 217 218 $('#modal
218-order-tour').find("input[name=TOUR]").val($(this).data('tourId')); 219 $('#modal-order-tour').find("input[name=TOUR_NAME]").val($(this).data('tourName')); 220 $('#modal-order-tour').modal("show"); 221 return false; 222 }); 223 $("#modal-order-tour form").kari_form(); 224 225 $(".modal-podberi").click(function() 226 { 227 $('#modal-podberi').modal("show"); 228 return false; 229 }); 230 $("#modal-podberi form").kari_form(); 231})(jQuery); 232 233 234$(function () { 235 $(".fullscreen-gallery").click(function() 236 { 237 var cont_id = $(this).data("gallery"), 238 $cont = cont_id ? $("#" + cont_id) : []; 239 240 if ($cont.length === 1) 241 { 242 $cont.jGallery({ 243 "mode": "full-screen", 244 "width": '100%', 245 246 "thumbnailsPosition":"right", 247 "thumbWidth": 125, 248 "thumbWidthOnFullScreen": 125, 249 "thumbnailsFullScreen": true, 250 "thumbnailsHideOnMobile": true, 251 252 "transition": "moveToLeft_moveFromRight", 253 "transitionBackward": "auto", 254 "transitionTimingFunction": 'linear', 255 "transitionDuration": "0.2s", 256 "transitionCols": 1, 257 "transitionRows": 1, 258 259 "thumbType": "image", 260 "backgroundColor": "#000", 261 "textColor": "#000", 262 263 "title": true, 264 "titleExpanded": true, 265 266 "tooltips": false, 267 "tooltipFullScreen": null, 268 "browserHistory": false, 269 "canZoom": false, 270 "canClose": true, 271 "swipeEvents": true, 272 "zoomSize": 'fit', 273 "draggableZoom": false, 274 "canChangeMode": false, 275 276 "slideshow": false, 277 "slideshowInterval": '5s' 278 }); 279 } 280 281 return false; 282 }); 283});
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.