1var ie4=(navigator.appVersion.indexOf("MSIE")!=-1 && parseFloat(navigator.appVersion)>=4)?true:false; 2var nn4=(navigator.appName=="Netscape" && parseFloat(navigator.appVersion)<5)?true:false; 3var nn6=(navigator.appName=="Netscape" && parseFloat(navigator.appVersion)>=5)?true:false; 4var catSlider; 5 6 7$(document).ready(function(){ 8 9 showCookieNotification(); 10 11 $(document).on('click', '.js-cookieNotificationClose', function(){ 12 $('.cookie-notification').removeClass('is-open'); 13 setTimeout(function(){ 14 $('.cookie-notification').remove(); 15 }, 500); 16 var date = new Date; 17 date.setDate( date.getDate() + 10 ); 18 setCookie("showCookie","no",date,"/"); 19 return false; 20 }); 21 22 function showCookieNotification(){ 23 var showCookie = getCookie("showCookie"); 24 25 if (showCookie != "no") { 26 let $cookieNotification = '<div class="cookie-notification">\n' + 27 ' <div class="cookie-notification__layout">\n' + 28 ' <div class="cookie-notification__text">Íàø ñàéò èñïîëüçóåò cookie-ôàéëû, ÷òîáû îáåñïå÷èòü âàì íàèáîëüøåå óäîáñòâî èñïîëüçîâàíèÿ.<br> Ïðîäîëæàÿ ïðîñìîòð íàøåãî ñàéòà, âû ñîãëàøàåòåñü íà èñïîëüçîâàíèå âàøèõ cookie-ôàéëîâ è äðóãèõ äàííûõ íàìè â ñîîòâåòñòâèè ñ <a href="/ru/politika_konfidencialnosti/">Ïîëîæåíèåì î êîíôèäåíöèàëüíîñòè</a>.</div>\n' + 29 ' <div class="cookie-notification__btn"><a href="#" class="pre_order js-cookieNotificationClose"><span>Õîðîøî</span></a></div>\n' + 30 ' </div>\n' + 31 '</div>' 32 $('body').append($cookieNotification); 33 setTimeout(function(){ 34 $('.cookie-notification').addClass('is-open'); 35 }, 500); 36 } 37 } 38 39 var observeObject = function () { 40 var _class = { 41 init: function (selector, callback) { 42 var element = document.querySelector(selector); 43 44 try { 45 var observer = new MutationObserver(function (mutations) { 46 mutations.forEach(function (mutation) { 47 callback(mutation.target, mutation.attributeName, mutation.oldValue); 48 }); 49 }); 50 51 observer.observe(element, { 52 attributes: true, 53 subtree: true, 54 attributeOldValue: true 55 }); 56 } catch (z) { 57 element.addEventListener('DOMAttrModified', function (e) { 58 callback(e.target, e.attrName, e.prevValue); 59 }, false); 60 } 61 } 62 }; 63 64 return _class; 65 }(); 66 67 setTimeout(function(){ 68 $('.social-widget').css('zoom', $('#supportTrigger').css('zoom')).removeClass('hidden'); 69 //$('#soc_test').text($('#supportTrigger').css('zoom')) 70 observeObject.init('#supportTrigger', function (target, name, oldValue) { 71 /* ññûëêà íà Node, èìÿ àòðèáóòà, ïðåäûäóùåå çíà÷åíèå */ 72 //console.log(target, name, oldValue); 73 if (oldValue.indexOf('hidden') >= 0) { 74 $('.social-widget').removeClass('hidden'); 75 } else { 76 $('.social-widget').addClass('hidden'); 77 } 78 }); 79 }, 10000); 80 81 $(document).on('click', '.support-close', function() { 82 $('.social-widget').removeClass('hidden'); 83 }); 84 85 $(document).on('change keyup input click', 'input.is-number', function() { 86 if (this.value.match(/[^0-9]/g)) { 87 this.value = this.value.replace(/[^0-9]/g, ''); 88 } 89 }); 90 91 $(window).scroll(function () { 92 if ($(this).scrollTop() > 300) { 93 $('#go_up').fadeIn(100); 94 } else { 95 $('#go_up').fadeOut(100); 96 } 97 }); 98 99 $('#go_up').click(function () { 100 $('body,html').animate({ 101 scrollTop: 0 102 }, 800); 103 return false; 104 }); 105 106 //Âñïëûâàþùèå îêíà 107 $('.fancybox').fancybox({ 108 helpers: { 109 overlay: { 110 locked: false 111 } 112 } 113 }); 114 $('.fancybox-video').fancybox({ 115 'width':800, 116 'height':450, 117 'autoSize' : false 118 }); 119 120 $(document).on('click', '#phone_goal', function(){ 121 yaCounter501841.reachGoal('uoerser2'); 122 }); 123 $(document).on('click', '#mail_goal', function(){ 124 yaCounter501841.reachGoal('mailtopclick'); 125 }); 126 $(document).on('click', '#mail_left_goal', function(){ 127 yaCounter501841.reachGoal('mailmidclick'); 128 }); 129 $(document).on('click', '#order_left_goal', function(){ 130 yaCounter501841.reachGoal('clickformank'); 131 }); 132 $(document).on('click', 'a[href="javascript:history.go(-1)"]', function(){ 133 yaCounter501841.reachGoal('backclick'); 134 }); 135 136 137 138 $('.start_slider').not('.reload_slider').bxSlider({ 139 auto: true, 140 pause: 6000,
141 minSlides: 1, 142 maxSlides: 1, 143 slideWidth: 560, 144 moveSlides: 1, 145 pager: true, 146 infiniteLoop: true, 147 hideControlOnEnd: true 148 }); 149 150 $('.start_cat').not('.reload_slider').bxSlider({ 151 minSlides: 4, 152 maxSlides: 4, 153 slideWidth: 130, 154 moveSlides: 1, 155 pager: false, 156 infiniteLoop: false, 157 hideControlOnEnd: true 158 }); 159 160 $('.img-slider__slidee').bxSlider({ 161 minSlides: 3, 162 maxSlides: 3, 163 slideWidth: 170, 164 moveSlides: 1, 165 pager: false, 166 infiniteLoop: false, 167 hideControlOnEnd: true 168 }); 169 170 $('#order_form').submit(function(){ 171 //$('#order_button').attr('disabled', true); 172 yaCounter501841.reachGoal('zakaz23sdd'); 173 return true; 174 }); 175 176 $('input[name="data[material]"]').change(function(){ 177 if ($('#material_flash').is(':checked')) { 178 $('.ostn_wrap').hide(); 179 $('input[name="data[ostn]"]').removeAttr('checked'); 180 } else { 181 $('.ostn_wrap').show(); 182 } 183 }); 184 $('input[name="data[sam]"]').change(function(){ 185 if ($('#del').is(':checked')) { 186 $('#deliv_price').show(); 187 } else { 188 $('#deliv_price').hide(); 189 } 190 }); 191 192 $("#book_a_call").live("click", function(){ 193 yaCounter501841.reachGoal('clickcall'); 194 195 var d = new Date(); 196 var next_day = 0; 197 var month = ["01","02","03","04","05","06","07","08","09","10","11","12"]; 198 $("#book_a_call_form").show(); 199 $(".shadow_backgrond").show(); 200 $("#date").datepicker({ 201 buttonImage:"/data/images/ico/datePicker.gif", showOn:"button", buttonImageOnly:true, 202 monthNames:["ßíâàðü", "Ôåâðàëü", "Ìàðò", "Àïðåëü", "Ìàé", "Èþíü", "Èþëü", "Àâãóñò", "Ñåíòÿáðü", "Îêòÿáðü", "Íîÿáðü", "Äåêàáðü"], 203 dayNamesMin:["Âñ", "Ïí", "Âò", "Ñð", "×ò", "Ïò", "Ñá"], 204 firstDay:1, 205 dateFormat:"dd.mm.yy" 206 }); 207 if (d.getDay()==0 || d.getHours()>=18 && d.getMinutes()>=30) { 208 d = new Date(new Date().getTime() + 24 * 60 * 60 * 1000); 209 $("#date").val(d.getDate()+ "." + month[d.getMonth()] + "." + d.getFullYear()); 210 } 211 else { 212 $("#date").val(d.getDate()+ "." + month[d.getMonth()] + "." + d.getFullYear()); 213 } 214 215 //clearInterval(phoneIntervalID); 216 var date = new Date; 217 date.setDate( date.getDate() + 1 ); 218 setCookie("phone_call","no",date,"/"); 219 220 return false; 221 }); 222 223 $("#book_a_call_close").click(function(){ 224 $("#book_a_call_form").hide(); 225 $(".shadow_backgrond").hide(); 226 }); 227 228 $(".shadow_backgrond").click(function(){ 229 $("#book_a_call_form").hide(); 230 $(".shadow_backgrond").hide(); 231 }); 232 233 /*if(getCookie('phone_call')!="no"){ 234 var phoneIntervalID = setInterval(function(){ 235 $('.retro_phone').addClass('calling'); 236 setTimeout(function(){ 237 $('.retro_phone').removeClass('calling'); 238 }, 1000); 239 }, 5000); 240 }*/ 241 242 $('.phone_mask').mask("+7 (999) 999-99-99"); 243 244 $('#order_online_popup').live('click', function(){ 245 var content = $('#online_order_popup'); 246 dialog({ 247 dialogClass: 'onl_popup', 248 width:460, 249 height:257, 250 'msg':$(content).html() 251 }); 252 yaCounter501841.reachGoal('clickformleft'); 253 return false; 254 }); 255 256 257 $('#order_online_popup_oborud').live('click', function(){ 258 var content = $('#online_order_popup_oborud'); 259 dialog({ 260 dialogClass: 'onl_popup', 261 width:460, 262 height:257, 263 'msg':$(content).html() 264 }); 265 yaCounter501841.reachGoal('clickformleft'); 266 return false; 267 }); 268 269 270}); 271 272$(window).load(function(){ 273 $('.free_education_rotator').addClass('animate'); 274}); 275 276$(function(){ 277 278 //$('#elites').html('<a href="http://www.elites.ru" target="_blank" style="color:#fff;" title="ELiTES - ñòóäèÿ èíòåðíåò-ðåøåíèé"><font size="1">Ïðîäâèæåíèå ñàéòîâ ïî èçãîòîâëåíèþ ïå÷àòåé, øòàìïîâ, ôàêñèìèëå</font></a>'); 279 280 $('form[name="_popcllbck"]').submit(function(){ 281 var tel = $('*[name="tel"]',this).val(); 282 var data = $(this).serialize(); 283 if(tel==""){ 284 $('*[name="tel"]',this).focus(); 285 }else{ 286 $('form[name="_popcllbck"] input[type="submit"]').attr('disabled', true); 287 $.post("/ru/ajax/sendvalues/cllbck/",data,function(data){ 288 if(data=="ok"){ 289 yaCounter501841.reachGoal('clickcallend'); 290 $('form[name="_popcllbck"] input[type="text"]').val(''); 291 //alert('Ìû ñâÿæåìñÿ ñ âàìè â áëèæàéøåå âðåìÿ!'); 292 dialog({'msg':'<div class="dialog-ok-message">Ìû ñâÿæåìñÿ ñ âàìè â áëèæàéøåå âðåìÿ!</div>'}); 293 }else{ 294 alert(data); 295 $('form[name="_popcllbck"] input').attr('disabled', false); 296 } 297 }); 298 } 299 return false; 300 }); 301 302 $('#callback form').submit(function(){ 303 var fio = $(this).find('input[name="fio"]').val(); 304 var code = $(this).find('input[name="code"]').val(); 305 var namber = $(this).find('input[name="number"]').val(); 306 var error = ''; 307 if(fio=='') error+='Óêàæèòå èìÿ<br>'; 308 if(code=='' || namber=='') error+='Óêàæèòå òåëåôîí<br>'; 309 if(error){ 310 $('#error_callback').html(error).show(); 311 return false; 312 }else{ 313 return true; 314 } 315 }); 316 317 $('#callback form input[name="code"]').live('keyup',function(){ 318 var value = $(this).val(); 319 if(value.length>2){ 320 $('#callback form input[name="number"]').focus(); 321 } 322 }); 323 324 $('#callback form input[name="code"]').mask("999"); 325 $('#callback form input[name="number"]').mask("999-99-99"); 326 327 $('#sam').change(function(){ 328 if ($(this).is(':checked')){ 329 $('#adres').hide(); 330 } 331 }); 332 $('#del').change(function(){ 333 if ($(this).is(':checked')){ 334 $('#adres').show(); 335 } 336 }); 337 338 $('#diametr_39, #diametr_40').change(function(){ 339 if ($(this).is(':checked')){ 340 $('#other_diametr').hide(); 341 } 342 }); 343 $('#diametr').change(function(){ 344 if ($(this).is(':checked')){ 345 $('#other_diametr').show(); 346 } 347 }); 348 349}); 350 351 352function newImage(arg) { 353 if (document.images) { 354 rslt = new Image(); 355 rslt.src = arg; 356 return rslt; 357 } 358} 359 360 361 362function changeImages() { 363 if (document.images && (preloadFlag == true)) { 364 for (var i=0; i<changeImages.arguments.length; i+=2) { 365 document.getElementById(changeImages.arguments[i]).src = changeImages.arguments[i+1]; 366 367 } 368 369 } 370} 371 372 373function ShowDivAtPosition(what,parent,xplus,yplus,getWidth){ 374 375 var divname=what; 376 377 var submenu = new Array(); 378 379 var x=0; 380 381 var y=0; 382
383 if (document.getElementById(getWidth)!=null) var setWidth=document.getElementById(getWidth).clientWidth; 384 385 if(nn6){ 386 var obj=document.getElementById(parent); 387 while (obj!=null) { 388 x+=obj.offsetLeft; 389 y+=obj.offsetTop; 390 obj=obj.offsetParent; 391 } 392 x=x+xplus; 393 y=y+yplus; 394 395 396 if (setWidth>0) document.getElementById(what).style.width=setWidth; 397 398 document.getElementById(what).style.left=x+"px"; 399 document.getElementById(what).style.top=y+"px"; 400 document.getElementById(what).style.visibility = "visible"; 401 } 402 else if(ie4){ 403 if( document.all[what].style.position.toLowerCase() != "absolute" ) { 404 document.all[what].style.position = "static"; 405 } 406 obj=document.all[parent]; 407 while (obj!=null) { 408 x+=obj.offsetLeft; 409 y+=obj.offsetTop; 410 obj=obj.offsetParent; 411 } 412 x=x+xplus; 413 y=y+yplus; 414 415 if (setWidth>0) document.getElementById(what).style.width=setWidth; 416 417 document.all[what].style.left=x+"px"; 418 document.all[what].style.top=(y+document.all[parent].clientHeight)+"px"; 419 document.all[what].style.visibility = "visible"; 420 } 421 else if(nn4){ 422 document.layers[what].visibility = "show"; 423 } 424} 425 426 427 428function TD(what){ 429 var r="hide"; 430 if(nn6){ 431 if (document.getElementById(what).style.display == ""){ 432 document.getElementById(what).style.display = "none"; 433 } else { 434 r="visible"; 435 document.getElementById(what).style.display = ""; 436 } 437 } 438 else if(ie4){ 439 if (document.all[what].style.display == ""){ 440 document.all[what].style.display = "none"; 441 } else { 442 r="visible"; 443 document.all[what].style.display = ""; 444 } 445 } 446 return r; 447 448} 449 450 451 452 453function Div(what){ 454 var r="hide"; 455 if(nn6){ 456 if (document.getElementById(what).style.display == "block"){ 457 document.getElementById(what).style.display = "none"; 458 } else { 459 r="visible"; 460 document.getElementById(what).style.display = "block"; 461 } 462 } 463 else if(ie4){ 464 if (document.all[what].style.display == "block"){ 465 document.all[what].style.display = "none"; 466 } else { 467 r="visible"; 468 document.all[what].style.display = "block"; 469 } 470 } 471 return r; 472 473} 474 475function OpenWindow(id,name,width,height,style) { 476 477 if (style==undefined) style=',scrolling=yes,resizable=yes,scrollbars=yes,status=yes,statusbar=yes' 478 479 var Left = (screen.width - width) / 2 ; 480 var Top = (screen.height - height) / 2 ; 481 482 window[id]=window.open('',name,'width='+width+',height='+height+',left='+ Left +',top='+ Top +style); 483 window[id].focus(); 484 return false; 485} 486 487 488function deffocus(a){ 489 if (a.defaultValue==a.value){ 490 a.value=""; 491 } 492} 493function defblur(a) { 494 if (a.value=="") { 495 a.value=a.defaultValue; 496 } 497} 498 499function ow(isrc,ititle) { 500 win=window.open('','win','width=600,height=500,status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=no,scrolling=no'); 501 win.document.open();
502 win.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n' 503 +'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">\n' 504 +'<head>\n' 505 +'<title>'+((ititle=="") ? 'âåëè÷åííठôîòîãðàôè¤' : ititle+'')+'</title>\n' 506 +'<script type=\"text/javascript\">\n' 507 +' var isDOM=document.getElementById?true:false;\n' 508 +' var isOpera=isOpera5=window.opera && isDOM;\n' 509 +' var isMSIE=isIE=document.all && document.all.item && !isOpera;\n' 510 +' function matchSize(obj) {\n' 511 +' if (!isMSIE) {\n' 512 +' var dw = self.outerWidth - self.innerWidth;\n' 513 +' var dh = self.outerHeight - self.innerHeight;\n' 514 +' } else {\n' 515 +' var dw = 12;\n' 516 +' var dh = 50;\n' 517 +' }\n' 518 +' self.resizeTo(obj.width+dw,obj.height+dh);\n' 519 +' return;\n' 520 +' }' 521 +'</script>' 522 +'</head>\n' 523 +'<body style="overflow: hidden; margin: 0px; padding: 0px;">\n' 524 +'<a href="javascript:void(0);" onclick="window.close(); return false;" title=" ëèêíèòå, ÷òîáû çàêðûòü îêíî">' 525 +'<img src="'+isrc+'" border="0" onload="matchSize(this);" alt=" ëèêíèòå, ÷òîáû çàêðûòü îêíî" /></a>\n' 526 +'</body>\n' 527 +'</html>'); 528} 529 530function getCookie(name) { 531 var matches = document.cookie.match(new RegExp( 532 "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" 533 )) 534 return matches ? decodeURIComponent(matches[1]) : undefined 535} 536 537function setCookie(name, value, expires, path, domain, secure) { 538 if (!name || !value) return false; 539 var str = name + '=' + encodeURIComponent(value); 540 541 if (expires) str += '; expires=' + expires.toGMTString(); 542 if (path) str += '; path=' + path; 543 if (domain) str += '; domain=' + domain; 544 if (secure) str += '; secure'; 545 546 document.cookie = str; 547 return true; 548} 549 550// Äîáàâèòü â Èçáðàííîå 551function addFavorite(a) { 552 var title = document.title; 553 var url = document.location; 554 try { 555 // Internet Explorer 556 window.external.AddFavorite(url, title); 557 } 558 catch (e) { 559 try { 560 // Mozilla 561 window.sidebar.addPanel(title, url, ""); 562 } 563 catch (e) { 564 // Opera 565 if (typeof(opera)=="object" || window.sidebar) { 566 a.rel="sidebar"; 567 a.title=title; 568 a.url=url; 569 a.href=url; 570 return true; 571 } 572 else { 573 // Unknown 574 alert('Âàø áðàóçåð íå ïîääåðæèâàåò àâòîìàòè÷åñêîå äîáàâëåíèå çàêëàäîê. Íàæìèòå Ctrl+D ÷òîáû äîáàâèòü ñòðàíèöó â çàêëàäêè.'); 575 } 576 } 577 } 578 return false; 579} 580
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.