1jQuery(document).ready(function() { 2 3//script for order form 4 jQuery('.popup .close_order, .overlay').click(function (){ 5 jQuery('.popup, .overlay').css('opacity','0'); 6 jQuery('.popup, .overlay').css('visibility','hidden'); 7 jQuery('.popup > .fofm textarea').val(''); 8 jQuery('.fofm input, .phoneFormat, .fofm textarea').removeClass('hideInp'); 9 jQuery('#note').html(''); 10 jQuery(':input','.fofm').not(':button, :submit, :reset, :hidden').val('').removeAttr('checked').removeAttr('selected'); 11 }); 12 13 jQuery('a.buy, .email.tip_down, .abs .podbor, .abs .zakaz, a.quest, a.sale,').click(function (e){ 14 jQuery('.popup, .overlay').css('opacity','1'); 15 jQuery('.popup, .overlay').css('visibility','visible'); 16 17// add value in order form 18 jQuery('.popup > .fofm input.link_value').val(window.location.href); 19 jQuery('.popup > .fofm input.h1_value').val(jQuery('h1').html()); 20 21 if (jQuery(this).attr('class') == 'nt-icon email tip_down') { 22 jQuery('.popup > .fofm .button').val('ÐÑпÑавиÑÑ'); 23 jQuery('.fofm .temsLatter').val('ÐбÑаÑÐ½Ð°Ñ ÑвÑзÑ'); 24 jQuery('.fofm textarea').css('display', 'block'); 25 jQuery('.fofm input[type="email"]').css('display', 'block'); 26 } 27 else if(jQuery(this).attr('class') == 'quest') { 28 jQuery('.popup > .fofm .button').val('ÐÑпÑавиÑÑ'); 29 jQuery('.fofm .temsLatter').val('ÐадаÑÑ Ð²Ð¾Ð¿ÑоÑ'); 30 jQuery('.fofm textarea').css('display', 'block'); 31 jQuery('.fofm input[type="email"]').css('display', 'block'); 32 } 33 else if(jQuery(this).attr('class') == 'sale') { 34 jQuery('.popup > .fofm .button').val('ÐолÑÑиÑÑ ÑкидкÑ'); 35 jQuery('.popup > .fofm .button').css('width','150px'); 36 jQuery('.fofm textarea').css('display', 'none'); 37 jQuery('.fofm input[type="email"]').css('display', 'none'); 38 jQuery('.fofm .temsLatter').val('ÐолÑÑиÑÑ ÑкидкÑ'); 39 } 40 else if(jQuery(this).attr('class') == 'podbor') { 41 jQuery('.popup > .fofm .button').val('ÐодобÑаÑÑ'); 42 jQuery('.fofm .temsLatter').val('ÐÐ¾Ð´Ð±Ð¾Ñ Ð¾Ð±Ð¾ÑÑдованиÑ'); 43 jQuery('.fofm textarea').css('display', 'block'); 44 jQuery('.fofm input[type="email"]').css('display', 'block'); 45 } 46 else if(jQuery(this).attr('class') == 'zakaz') { 47 jQuery('.popup > .fofm .button').val('ÐозвонÑе мне'); 48 jQuery('.popup > .fofm .button').css('width','150px'); 49 jQuery('.fofm textarea').css('display', 'none'); 50 jQuery('.fofm input[type="email"]').css('display', 'none'); 51 jQuery('.fofm .temsLatter').val('Ðаказ звонка'); 52 } 53 else if (jQuery(this).attr('class') == 'buy') { 54 jQuery('.popup > .fofm .button').val('ÐаказаÑÑ'); 55 jQuery('.fofm .temsLatter').val('Ðаказ ÑоваÑа'); 56 jQuery('.fofm textarea').css('display', 'block'); 57 jQuery('.fofm input[type="email"]').css('display', 'block'); 58//if href include catalog atribute h1 paste in textarea 59 if ((window.location.href.search('catalog'))!=-1){ 60 jQuery('.popup > .fofm textarea').val(jQuery('h1').html()); 61 } 62 } 63 e.preventDefault(); 64 65 }); 66 67//ajax form post 68 jQuery(".fofm").submit(function() { 69 var str = jQuery(this).serialize(); 70 71 jQuery.ajax({ 72 type: "POST", 73 url: "/form/feedback.php", 74 data: str, 75 success: function() { 76 result = '<div class="notification_ok">СпаÑибо, Ð²Ð°Ñ Ð·Ð°Ð¿ÑÐ¾Ñ Ð±Ñл оÑпÑавлен, <br>Ð½Ð°Ñ Ð¼ÐµÐ½ÐµÐ´Ð¶ÐµÑ ÑвÑжеÑÑÑ Ñ Ð²Ð°Ð¼Ð¸ в ближайÑее вÑемÑ</div>'; 77 jQuery('.fofm input, .phoneFormat, .fofm textarea').addClass('hideInp'); 78 jQuery('#note').html(result); 79 } 80 }); 81 return false; 82 }); 83 84 jQuery('.close_frame, .overlay').click(function (){ 85 jQuery('.overlay').css({'opacity':'0', 'visibility':'hidden'}); 86 jQuery('.frame_oprosnik').css({'display':'none'}); 87 }); 88 89 jQuery('.list_oprosnii, .menu-958, a.opros').click(function (e){ 90 jQuery('.overlay').css({'opacity':'1', 'visibility':'visible'}); 91 jQuery('.frame_oprosnik').css({'display':'block'}); 92 e.preventDefault(); 93 }); 94 var regName = /^[a-zA-Zа-ÑÐ-Я]{4,20}$/; 95 var regPhone = /^((8|\+7)[\- ]?)?(\(?\d{3}\)?[\- ]?)?[\d\- ]{7,10}$/; 96 var orderDone = false;
97 98 jQuery('#ordBtn').click(function (){ 99 100 if(regPhone.test(jQuery('#phone').val())) { 101 jQuery('.oprosnii_list #phone').removeClass('error'); 102 103 if(regName.test(jQuery('#kface').val())) { 104 jQuery('.oprosnii_list #name').removeClass('error'); 105 106 jQuery(".oprosnii_list").submit(function() { 107 var str = jQuery(this).serialize(); 108 109 jQuery.ajax({ 110 type: "POST", 111 url: "/sites/all/themes/tma/order_list.php", 112 data: str, 113 success: function(msg) { 114 if(msg == 'OK') { 115 result = '<div class="line_wtrkt"></div><div class="send_ok"><h4>ÐаÑвка пÑинÑÑа!</h4><p style="color:black;font-size:14px;">ÐлагодаÑим за заÑвкÑ.</p></div>'; 116 } 117 else { 118 result = '<a href="#" class="btn-close">ÐакÑÑÑÑ</a><h4>ÐÑибка!</h4>'; 119 } 120 jQuery('#page').html(result); 121 } 122 }); 123 return false; 124 }); 125 } 126 else { 127 jQuery('#kface').addClass('error'); 128 return false; 129 } 130 } 131 else { 132 jQuery('#phone').addClass('error'); 133 return false; 134 } 135 }); 136 137}); 138//left order form 139jQuery(window).resize(flyCorrect); 140jQuery(window).ready(flyCorrect); 141function flyCorrect(){ 142 var left = Math.round(parseInt(jQuery(window).width()-928)/2 - 186); 143 jQuery('.abs .feed_back').css("right", left + 'px'); 144 145 if (jQuery(window).width() <= 1200) { 146 jQuery('.abs').addClass('smallWindow'); 147 } 148 else { 149 jQuery('.abs').attr('class','abs'); 150 } 151} 152 153// To Top 154jQuery(function(){ 155 jQuery.fn.scrollToTop=function(){ 156 if(jQuery(window).scrollTop()!="0"){ 157 jQuery(this).fadeIn("slow") 158 } 159 var scrollDiv=jQuery(this); 160 jQuery(window).scroll(function(){ 161 if(jQuery(window).scrollTop()=="0"){ 162 jQuery(scrollDiv).fadeOut("slow") 163 } 164 else{ 165 jQuery(scrollDiv).fadeIn("slow") 166 } 167 }); 168 jQuery(this).click(function(){ 169 jQuery("html, body").animate({scrollTop:0},"slow") 170 }) 171 } 172}); 173 174jQuery(function() {jQuery("#toTop").scrollToTop();});
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.