1//include("/js/core-js.js"); 2include("/js/ga2.js"); 3include("/js/bluebird.min.js"); 4include("/js/jquery-migrate-1.2.1.js"); 5//include("/js/jquery.pjax.js"); 6include("/js/jquery.easing.1.3.js"); 7include("/js/bootstrap.min.js"); 8include("/js/moment-with-locales.min.js"); 9include("/js/bootstrap-datetimepicker.min.js"); 10//include("/js/camera.min.js"); 11include("/js/Rx.js"); 12include("/js/jquery.elfstore.2.0.0.js"); 13include("/js/owl.carousel.min.js"); 14include("/js/jquery.fancybox.js"); 15include("/js/jquery.maskedinput.js"); 16include("/js/jquery.ui.totop.js"); 17include("/js/feedback_0.3.js"); 18include("/js/menu.js"); 19include("/js/search.js"); 20include("/js/empty_price.0.3.js"); 21 22function include(url) { 23 document.write('<script type="text/javascript" src="' + url + '"></script>'); 24} 25 26function setWrapper() { 27 //console.log($(window).height() + ' - ' + $(document).height()); 28 if ($(window).height() < $(document).height()) { 29 $(".page-wrapper").css("margin-bottom", "0"); 30 } else { 31 $(".page-wrapper").css("margin-bottom", "-284px"); 32 } 33} 34function setCookie(name, value, options) { 35 options = options || {}; 36 37 var expires = options.expires; 38 39 if (typeof expires == "number" && expires) { 40 var d = new Date(); 41 d.setTime(d.getTime() + expires * 1000); 42 expires = options.expires = d; 43 } 44 if (expires && expires.toUTCString) { 45 options.expires = expires.toUTCString(); 46 } 47 48 value = encodeURIComponent(value); 49 50 var updatedCookie = name + "=" + value; 51 52 for (var propName in options) { 53 updatedCookie += "; " + propName; 54 var propValue = options[propName]; 55 if (propValue !== true) { 56 updatedCookie += "=" + propValue; 57 } 58 } 59 60 document.cookie = updatedCookie; 61} 62function getCookie(name) { 63 var matches = document.cookie.match( 64 new RegExp( 65 "(?:^|; )" + 66 name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1") + 67 "=([^;]*)" 68 ) 69 ); 70 return matches ? decodeURIComponent(matches[1]) : undefined; 71} 72function deleteCookie(name) { 73 setCookie(name, "", { 74 expires: -1, 75 }); 76} 77 78function ajax_load(url, method, params, target, loadafter, addition) { 79 $.ajax({
80 url: url, 81 data: { params: params }, 82 type: method, 83 cache: false, 84 beforeSend: function() { 85 $(target).parent().contents().wrapAll('<div class="fd"/>'); 86 }, 87 success: function(html) { 88 var out = html; 89 if (target != "") $(target).html(html); 90 $(".fd").contents().unwrap(); 91 if (typeof loadafter == "function") { 92 vars = Array.prototype.slice.call(arguments, 1); 93 //vars.push(html); 94 vars.splice(0, 0, html); 95 if (typeof addition !== "undefined") vars.splice(1, 0, addition); 96 loadafter.apply(this, vars); 97 } 98 return out; 99 }, 100 error: function(req, status, error) { }, 101 }); 102} 103 104$(document).on("pjax:complete", function() { 105 ON_READY(); 106 //jQuery().ElfStore(); 107}); 108$(document).ready(function() { 109 ON_READY(); 110 111 /*var pjaxContainer = "#pjax-container"; 112 $(document).pjax('a', pjaxContainer, { 113 timeout: 3000 114 });*/ 115}); 116 117function ON_READY() { 118 var isMobile = false; //initiate as false 119 // device detection 120 if ( 121 /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test( 122 navigator.userAgent 123 ) || 124 /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(
125 navigator.userAgent.substr(0, 4) 126 ) 127 ) 128 isMobile = true; 129 130 $(window).scroll(function() { 131 var scrollY = $(window).scrollTop(); 132 if (scrollY > 0) { 133 //$(".sticky").css("position", "fixed"); 134 //$(".top-bar").addClass("sticky"); 135 } else { 136 //$(".sticky").css("position", "static"); 137 //$(".top-bar").removeClass("sticky"); 138 } 139 }); 140 141 // if (typeof $().ElfStore === 'function') { 142 // console.log('loading elfstore'); 143 // var store = jQuery().ElfStore(); 144 // } 145 $(".set-order") 146 .find("a.linkall") 147 .click(function() { 148 $(this).remove(); 149 $("#main_order").find(".pre-order").addClass("show"); 150 }); 151 152 $(".cart-block").click(function() { 153 $(location).attr("href", "/cart/"); 154 }); 155 156 $(".select-menu").change(function(e) { 157 $(location).attr("href", $(".select-menu option:selected").val()); 158 }); 159 160 $(".sorting-box ul li") 161 .find("a") 162 .click(function() { 163 if ($(this).hasClass("open")) { 164 $(this).removeClass("open"); 165 } else { 166 $(this).addClass("open"); 167 } 168 }); 169 170 $(window).click(function(e) { 171 $(".new-messengers").parent().find(".abs-block").addClass("hide"); 172 }); 173 $(".abs-block").click(function() { 174 event.stopPropagation(); 175 }); 176 $(".new-messengers").click(function() { 177 event.stopPropagation(); 178 $(this).parent().find(".abs-block").removeClass("hide"); 179 }); 180 // ÑоÑÑиÑовка 181 $(".sorting") 182 .find("a") 183 .click(function(e) { 184 //e.stopImmediatePropagation(); 185 e.preventDefault(); 186 if ($(this).attr("href") != "javascript:") { 187 var search = 188 location.search != "" 189 ? location.search.replace(/^(.+?)order.*/, "$1") 190 : "?"; 191 var href = $(this) 192 .attr("href") 193 .replace(/^(.+?)(order.*)/, "$2"); 194 $(location).attr( 195 "href", 196 location.pathname + 197 search + 198 (search.substr(-1) == "?" || search.substr(-1) == "&" ? "" : "&") + 199 href 200 ); 201 } 202 }); 203 204 if (location.search.match(/.+?order(.+?)=(.*)/)) { 205 var sortType = location.search.replace(/.+?order(.+?)=(.*)/, "$1"); 206 var sortValue = location.search 207 .replace(/.+?order(.+?)=(.*)/, "$2") 208 .toLowerCase(); 209 210 $("." + "sort" + sortType).addClass("current"); 211 if (sortValue == "desc") $("." + "sort" + sortType).addClass("desc"); 212 else $("." + "sort" + sortType).addClass("asc"); 213 } 214 215 $(".slider").hover( 216 function() { 217 $(".camera_next, .camera_prev").css("opacity", "1"); 218 $(".camera_next, .camera_prev").css("filter", "alpha(opacity=100)"); 219 $(".camera_next").css("margin-right", "3px"); 220 $(".camera_prev").css("margin-left", "3px"); 221 }, 222 function() { 223 $(".camera_next").css("margin-right", "3px"); 224 $(".camera_prev").css("margin-left", "3px"); 225 $(".camera_next, .camera_prev").css("opacity", "0.01"); 226 $(".camera_next, .camera_prev").css("filter", "alpha(opacity=1)"); 227 } 228 ); 229 230 // FANCYBOX 231 $(".fancybox").fancybox({ 232 openEffect: "elastic", 233 openEasing: "easeOutBack", 234 closeEffect: "elastic", 235 closeEasing: "easeInBack", 236 beforeShow: function() { 237 var alt = this.element.find("img").attr("alt"); 238 this.inner.find("img").attr("alt", alt); 239 this.title = alt; 240 }, 241 helpers: { 242 title: { 243 type: "inside", 244 }, 245 }, 246 }); 247 248 $(".basic-carousel").owlCarousel({ 249 margin: 30, 250 dots: false, 251 nav: true, 252 navText: [ 253 '<i class="fa fa-chevron-left"></i>', 254 '<i class="fa fa-chevron-right"></i>', 255 ], 256 responsive: { 257 0: { 258 items: 1, 259 nav: false, 260 }, 261 480: { 262 items: 2, 263 }, 264 1000: { 265 items: 4, 266 }, 267 }, 268 });
269 $(".events-carousel").owlCarousel({ 270 margin: 30, 271 dots: false, 272 nav: true, 273 navText: [ 274 '<i class="fa fa-chevron-left"></i>', 275 '<i class="fa fa-chevron-right"></i>', 276 ], 277 responsive: { 278 0: { 279 items: 1, 280 nav: false, 281 }, 282 480: { 283 items: 2, 284 }, 285 1000: { 286 items: 3, 287 }, 288 }, 289 }); 290 $(".slider-carousel").owlCarousel({ 291 margin: 30, 292 dots: true, 293 nav: true, 294 loop: true, 295 autoplay: true, 296 autoplayHoverPause: true, 297 navText: [ 298 '<i class="fa fa-chevron-left"></i>', 299 '<i class="fa fa-chevron-right"></i>', 300 ], 301 responsive: { 302 0: { 303 items: 1, 304 }, 305 480: { 306 items: 1, 307 }, 308 1000: { 309 items: 1, 310 }, 311 }, 312 }); 313 $(".auto-carousel").owlCarousel({ 314 margin: 30, 315 dots: false, 316 nav: true, 317 loop: false, 318 autoplay: true, 319 navText: [ 320 '<i class="fa fa-chevron-left"></i>', 321 '<i class="fa fa-chevron-right"></i>', 322 ], 323 responsive: { 324 0: { 325 items: 1, 326 nav: false, 327 }, 328 480: { 329 items: 2, 330 }, 331 1000: { 332 items: 4, 333 }, 334 }, 335 }); 336 /*$('.signin>a').click(function () { 337 if ($('.signin-form').hasClass('hide')) { 338 $('.signin-form').removeClass('hide').addClass('show'); 339 $('.fading').removeClass('hide').addClass('show'); 340 $('body').css('overflow-y', 'hidden').css('padding-right', '17px'); 341 } else { 342 $('.signin-form').removeClass('show').addClass('hide'); 343 $('.fading').removeClass('show').addClass('hide');; 344 } 345 }); 346 $('body').click(function (e) { 347 var t = document.getElementById('signin-block'); 348 if (!jQuery.contains(t, e.target) && $(e.target).attr('class') != 'fa fa-sign-in' && $(e.target).attr('class') != 'profile' && $(e.target).attr('class') != 'btn btn-default' && $(e.target).attr('class') != 'signin-form show') { 349 $('.signin-form').removeClass('show').addClass('hide'); 350 $('.fading').removeClass('show').addClass('hide');; 351 $('body').css('overflow-y', 'scroll').css('padding-right', '0'); 352 } 353 });*/ 354 355 $("#registrationFormPhys").attr("action", "/myprofile.php"); 356 $("#registrationFormJur").attr("action", "/myprofile.php"); 357 $("#signinForm").attr("action", "/myprofile.php"); 358 359 $("#registrationFormPhys").submit(function(e) { 360 if ($(this).find("#inputPassword").val().length < 6) { 361 e.preventDefault(); 362 $("#registrationError").html( 363 "Ðлина паÑÐ¾Ð»Ñ Ð´Ð¾Ð»Ð¶Ð½Ð° бÑÑÑ Ð½Ðµ менее 6 Ñимволов." 364 ); 365 $("#registrationError").removeClass("hide"); 366 } else if ( 367 $(this).find("#inputPassword").val() != 368 $(this).find("#inputPasswordRepeat").val() 369 ) { 370 e.preventDefault(); 371 $("#registrationError").html("ÐаÑоли не ÑовпадаÑÑ"); 372 $("#registrationError").removeClass("hide"); 373 console.log("not"); 374 } else { 375 console.log("go"); 376 $("#registrationError").html(""); 377 $("#registrationError").addClass("hide"); 378 } 379 }); 380 381 $("#physOption").click(function() { 382 $(".phys").removeClass("hide"); 383 $(".jur").addClass("hide"); 384 }); 385 $("#jurOption").click(function() { 386 $(".jur").removeClass("hide"); 387 $(".phys").addClass("hide"); 388 }); 389 390 $("#inputTel").mask("+9 (999) 999-99-99"); 391 $("#inputTelJ").mask("+9 (999) 999-99-99"); 392 $("#phone").mask("+9 (999) 999-99-99"); 393 //$.mask.definitions['Z'] = "[а-ÑÐ-Я0-9]+"; 394 //$('#inputAddress').mask("ZZZZ?ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ, ZZZZ?ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ, ZZZZ?ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"); 395 $().UItoTop({ min: 200, easingType: "easeOutQuart" }); 396 397 /*$(document).pjax('a', '#pjax-container', { 398 timeout: 5000 399 });*/ 400 401 $(".guide-icon, .guide-search").click(function() { 402 if ($(".guide").hasClass("open")) { 403 $(this).removeClass("black"); 404 $(".guide").removeClass("open"); 405 } else { 406 $(this).addClass("black"); 407 $(".guide").addClass("open"); 408 } 409 });
410 411 setWrapper(); 412}
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.