1(function(e,t,n,r){function o(r,i){var o=this;o.options=e.extend({},s,i);o.parent=r;o.wrapper=o.parent.children();o.slides=o.wrapper.children();o.currentSlide=0;o.CSS3support=true;o.options.beforeInit.call(o);o.init();o.build();o.play();if(o.options.touchDistance){o.swipe()}if(o.options.keyboard){e(n).on("keyup",function(e){if(e.keyCode===39)o.slide(1);if(e.keyCode===37)o.slide(-1)})}if(o.options.hoverpause){o.parent.add(o.arrows).add(o.nav).on("mouseover mouseout",function(e){o.pause();if(e.type==="mouseout")o.play()})}e(t).on("resize",function(){o.init();o.slide(0)});o.options.afterInit.call(o);return{current:function(){return-o.currentSlide+1},play:function(){o.play()},pause:function(){o.pause()},next:function(e){o.slide(1,false,e)},prev:function(e){o.slide(-1,false,e)},jump:function(e,t){o.slide(e-1,true,t)},nav:function(e){if(o.navWrapper){o.navWrapper.remove()}o.options.nav=e?e:o.options.nav;o.navigation()},arrows:function(e){if(o.arrowsWrapper){o.arrowsWrapper.remove()}o.options.arrows=e?e:o.options.arrows;o.arrows()}}}function u(e){var i=false,s="Khtml ms O Moz Webkit".split(" "),o=n.createElement("div"),u=null;e=e.toLowerCase();if(o.style[e]!==r)i=true;if(i===false){u=e.charAt(0).toUpperCase()+e.substr(1);for(var a=0;a<s.length;a++){if(o.style[s[a]+u]!==r){i=true;break}}}if(t.opera){if(t.opera.version()<13)i=false}return i}var i="glide",s={autoplay:4e3,hoverpause:true,animationTime:500,arrows:true,arrowsWrapperClass:"slider-arrows",arrowMainClass:"slider-arrow",arrowRightClass:"slider-arrow--right",arrowRightText:"next",arrowLeftClass:"slider-arrow--left",arrowLeftText:"prev",nav:true,navCenter:true,navClass:"slider-nav",navItemClass:"slider-nav__item",navCurrentItemClass:"slider-nav__item--current",keyboard:true,touchDistance:60,beforeInit:function(){},afterInit:function(){},beforeTransition:function(){},afterTransition:function(){}};o.prototype.build=function(){var e=this;if(e.options.arrows)e.arrows();if(e.options.nav)e.navigation()};o.prototype.navigation=function(){var t=this;if(t.slides.length>1){var n=t.options,r=t.options.nav===true?t.parent:t.options.nav;t.navWrapper=e("<div />",{"class":n.navClass}).appendTo(r);var i=t.navWrapper,s;for(var o=0;o<t.slides.length;o++){s=e("<a />",{href:"#","class":n.navItemClass,"data-distance":o}).appendTo(i);i[o+1]=s}var u=i.children();u.eq(0).addClass(n.navCurrentItemClass);if(n.navCenter){i.css({left:"50%",width:u.outerWidth(true)*u.length,"margin-left":-i.outerWidth(true)/2})}u.on("click touchstart",function(n){n.preventDefault();t.slide(e(this).data("distance"),true)})}};o.prototype.arrows=function(){var t=this;if(t.slides.length>1){var n=t.options,r=t.options.arrows===true?t.parent:t.options.arrows;t.arrowsWrapper=e("<div />",{"class":n.arrowsWrapperClass}).appendTo(r);var i=t.arrowsWrapper;i.right=e("<a />",{href:"#","class":n.arrowMainClass+" "+n.arrowRightClass,"data-distance":"1",html:n.arrowRightText}).appendTo(i);i.left=e("<a />",{href:"#","class":n.arrowMainClass+" "+n.arrowLeftClass,"data-distance":"-1",html:n.arrowLeftText}).appendTo(i);i.children().on("click touchstart",function(n){n.preventDefault();t.slide(e(this).data("distance"),false)})}};o.prototype.slide=function(e,t,n){var r=this;r.pause();r.options.beforeTransition.call(r);var i=t?0:r.currentSlide,s=-(r.slides.length-1),o=r.options.navCurrentItemClass,u=r.slides.spread;if(i===0&&e===-1){i=s}else if(i===s&&e===1){i=0}else{i=i+ -e}var a=u*i+"px";if(r.CSS3support){r.wrapper.css({"-webkit-transform":"translate3d("+a+", 0px, 0px)","-moz-transform":"translate3d("+a+", 0px, 0px)","-ms-transform":"translate3d("+a+", 0px, 0px)","-o-transform":"translate3d("+a+", 0px, 0px)",transform:"translate3d("+a+", 0px, 0px)"})}else{r.wrapper.stop().animate({"margin-left":a},r.options.animationTime)}if(r.options.nav&&r.navWrapper){r.navWrapper.children().eq(-i).addClass(o).siblings().removeClass(o)}r.currentSlide=i;r.options.afterTransition.call(r);if(n!=="undefined"&&typeof n==="function")n();r.play()};o.prototype.play=function(){var e=this;if(e.options.autoplay){e.auto=setInterval(function(){e.slide(1,false)},e.options.autoplay)}};o.prototype.pause=function(){var e=this;if(e.options.autoplay){e.auto=clearInterval(e.auto)}};o.prototype.swipe=function(){var e=this,t,n,r,i,s,o,u,a,f,l=180/Math.PI,c,h,p,d;e.parent.on("touchstart",function(e){t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];r=t.pageX;i=t.pageY});e.parent.on("touchmove",function(e){t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];s=t.pageX;o=t.pageY;c=s-r;h=o-i;p=Math.abs(c<<2);d=Math.abs(h<<2);u=Math.sqrt(p+d);a=Math.sqrt(d);f=Math.asin(a/u);if(f*l<32)e.preventDefault()});e.parent.on("touchend",function(i){t=i.originalEvent.touches[0]||i.originalEvent.changedTouches[0];n=t.pageX-r;if(n>e.options.touchDistance){e.slide(-1)}else if(n<-e.options.touchDistance){e.slide(1)}})};o.prototype.init=function(){var e=this,t=e.parent.width();e.slides.spread=t;
1e.wrapper.width(t*e.slides.length);e.slides.width(e.slides.spread);if(!u("transition")||!u("transform"))e.CSS3support=false};e.fn[i]=function(t){return this.each(function(){if(!e.data(this,"api_"+i)){e.data(this,"api_"+i,new o(e(this),t))}})}})(jQuery,window,document) 2 3var w = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; 4 5$(document).ready(function() 6{ 7 var _$W = $(window); 8 if ($('h2').hasClass('calc-developer')) 9 { 10 $('.calc-form-row').append('<i class="fa fa-calendar fa-cal-calend" aria-hidden="true"></i>'); 11 } 12 13 $('#day_1').datepick($.extend({altField: '#day_1', altFormat: 'mm/dd/yyyy'}, $.datepick.regionalOptions['ru'])); 14 $('#to').datepick($.extend({altField: '#to', altFormat: 'mm/dd/yyyy'}, $.datepick.regionalOptions['ru'])); 15 16 $('.fa-cal-calend').click(function() { 17 $('.calendar-inputs-wrapper').removeClass('hide'); 18 $('.fa-cal-calend').addClass('hide'); 19 $(".days-month").val(''); 20 }); 21 22 $( "#singlebutton" ).click(function() { 23 var form=$('#calc').serialize(); 24 25 $.ajax({ 26 type: "POST", 27 url: '/calc.php', 28 data: $("#calc").serialize(), 29 success: function(data) 30 { 31 $('#otvet').html(data); 32 return false; 33 } 34 }); 35 }); 36 37 $('#burger-button').click(function() { 38 if( $('#burger-button').hasClass('open') == false ) 39 { 40 $(this).addClass('open'); 41 console.log('Added Open'); 42 43 $('.header .header-top .menu').fadeIn('slow').show(); 44 return false; 45 }else{ 46 $('#burger-button').removeClass('open'); 47 console.log('Removed Open'); 48 $('.header .header-top .menu').fadeOut('slow'); 49 } 50 }); 51 52 if (w > 500 ) 53 { 54 $('#omg').click(function() { 55 $('#omg').parent().append("<div class='security__inform-div2'><div class='security__close-button'><img src='https://fed24.ru/templates/fed24/css/shield_small.png' width='18' height='20' style='margin-right: 11px;'/>ÐаÑанÑиÑÑем ваÑÑ Ð¿Ð¾Ð»Ð½ÑÑ ÐºÐ¾Ð½ÑиденÑиалÑноÑÑÑ</div></div>"); 56 setTimeout(function(){ 57 $('.security__inform-div2').hide('slow'); 58 }, 3000); 59 $('.security__inform-div2').click(function(){ 60 $(this).hide('slow'); 61 }); 62 }); 63 64 if( $('.input-group__security-lock').hasClass('info-active') == false ) 65 { 66 $('.input-group__security-lock').click(function() { 67 $('.be-client .input-group').append("<div class='security__inform-div'><div class='security__close-button'><img src='https://fed24.ru/templates/fed24/css/shield_small.png' width='18' height='20' style='margin-right: 11px;'/>ÐаÑанÑиÑÑем ваÑÑ Ð¿Ð¾Ð»Ð½ÑÑ ÐºÐ¾Ð½ÑиденÑиалÑноÑÑÑ</div></div>"); 68 $('.input-group__security-lock').addClass('info-active'); 69 $('.security__inform-div').click(function(){ 70 $(this).hide('slow'); 71 $('.input-group__security-lock').removeClass('info-active'); 72 $('.input-group__security-lock').show(); 73 }); 74 75 setTimeout(function(){ 76 $('.security__inform-div').hide('slow'); 77 $('.input-group__security-lock').removeClass('info-active'); 78 $('.input-group__security-lock').show(); 79 }, 1000); 80 }); 81 }; 82 }; 83 84 $('.scroll-down').click(function() { 85 $('html, body').animate({scrollTop : $(window).height()}, 800); 86 return false; 87 }); 88 89 $('.glossary li').height_equal(); 90 $(".h1-block-button").click(function() { 91 $(".services.inner-page").slideToggle("slow", function() { 92 $(".sandwich").toggleClass("active"); 93 }); 94 }); 95 96 if ($('.flexslider').length) { 97 $('.flexslider').flexslider({ 98 animation: "slide", 99 selector: ".slides > div", 100 controlNav: false, 101 slideshow: false, 102 directionNav: true, 103 itemWidth: 371, 104 itemMargin: 30, 105 minItems: 1, 106 maxItems: 3, 107 move: 1 108 }); 109 } 110 111 $(".our-wins .after-text").hide(); 112 $(".review-footer a").click(function(e) { 113 e.preventDefault(); 114 blok = $(this).closest(".review-block").find(".review-content"); 115 blok.toggleClass('active'); 116 $(this).closest(".review-block").find(".normal-text, .after-text").toggle(); 117 }); 118 119 $('div.tab-text:not(:first-child)').hide(); 120 $('ul.ul-tabs li, .tabsh1').click(function(){ 121 var newActiveBlockId = $(this).attr('rel'); 122 $('ul.ul-tabs li.active').removeClass('active'); 123 $(this).addClass('active'); 124 $('div.tab-text[data-id='+ newActiveBlockId +']').show(); 125 }); 126 127 $('input, textarea').keyup(function(){ 128 var targetInput = $(this); 129 130 if($.trim(targetInput.val()).length) { 131 targetInput.addClass('has-text'); 132 }else{ 133 targetInput.removeClass('has-text'); 134 } 135 }); 136 137 //$('input[type="tel"]').mask('+7 (999) 999-99-99'); 138 $('input[type="tel"]').inputmask("+7(999)9999999") 139 140 $('.popup-form').click(function(e){ 141 e.stopPropagation(); 142 e.preventDefault(); 143 144 $('.modal-container.popup').fadeIn(150); 145 $('.modal-entry').addClass('active'); 146 _$W.resize(); 147 //$('.modal-container.popup').find('input').first().focus(); 148 $('#goal_type').val($(this).attr('data-goal_type')); 149 }); 150 151 var $form = $('.modal-entry'); 152 var $container = $('.modal-container.popup'); 153 154 _$W.on('resize', function(){ 155 $form.css("top", Math.max(0, ((_$W.height() - $form.outerHeight()) / 2) + $container.scrollTop()) + "px"); 156 $form.css("left", Math.max(0, ((_$W.width() - $form.outerWidth()) / 2) + $container.scrollLeft()) + "px"); 157 }).trigger('resize'); 158 159 $('.modal-container').click(function(){ 160 $('.modal-container').fadeOut(150); 161 $('.modal').removeClass('active'); 162 $('body').removeClass('overflow_hidden'); 163 $('html').removeClass('overflow_hidden'); 164 }); 165 166 $('.modal-container .modal').click(function(e){ 167 e.stopPropagation(); 168 }); 169 170 $('.close-modal').click(function(e){ 171 e.stopPropagation(); 172 173 $(this).closest('.modal-container').fadeOut(400); 174 $('.modal').removeClass('active'); 175 $('body').removeClass('overflow_hidden'); 176 $('html').removeClass('overflow_hidden'); 177 }); 178 179 $(".various").fancybox({ 180 maxWidth : 800, 181 maxHeight : 600, 182 fitToView : false, 183 width : '70%', 184 centerOnScroll: true, 185 height : '70%', 186 autoSize : false, 187 closeClick : false, 188 openEffect : 'none', 189 closeEffect : 'none', 190 helpers: { 191 overlay: {
192 locked: false // оÑклÑÑаем блокиÑÐ¾Ð²ÐºÑ overlay 193 } 194 } 195 }); 196 197 $("#various1").fancybox({ 198 'titlePosition' : 'inside', 199 'transitionIn' : 'none', 200 'transitionOut' : 'none', 201 helpers: { 202 overlay: { 203 locked: false // оÑклÑÑаем блокиÑÐ¾Ð²ÐºÑ overlay 204 } 205 } 206 }); 207 208 $("a.inlinegloss").fancybox({ 209 maxWidth : 500, 210 maxHeight: 800, 211 padding: 50, 212 fitToView : true, 213 height: 'auto', 214 openEffect : 'none', 215 closeEffect : 'none', 216 helpers: { 217 overlay: { 218 locked: false // оÑклÑÑаем блокиÑÐ¾Ð²ÐºÑ overlay 219 } 220 } 221 }); 222 223 $('.form').submit(function(e){ 224 e.stopPropagation(); 225 e.preventDefault(); 226 227 var form = $(this); 228 var email, phone, formName, comment; 229 230 formName = form.find('.form-title').text(); 231 name = form.find('input[name="data[new][imya]"]') ? form.find('input[name="data[new][imya]"]').val() : ""; 232 phone = form.find('input[type="tel"]') ? form.find('input[type="tel"]').val() : ""; 233 234 form.find('input').removeClass('invalid'); 235 form.find('span').html(''); 236 form.find('.important').remove(); 237 238 var check = true; 239 240// if(name && name === ''){ 241// form.find('input[name="name"]').addClass('invalid'); 242// check = false; 243// } 244 phone = phone.replace(/([-)(+\s])/g,''); 245 phone = phone.replace(/_/g,''); 246 247 if(phone === '' || phone.length !== 11) 248 { 249 form.find('input[type="tel"]').addClass('invalid').focus(); 250 check = false; 251 console.log(phone); 252 } 253 254 if(check === true){ 255 var data = form.serialize(); 256 257 //var phone = form.find('#533').val(); 258// var name = form.find('#455').val(); 259 var comment = form.find('#514').val(); 260 var url = document.location.href; 261 var product = $('h2:eq(0)').text(); 262 263 //if(phone == 'undefined') phone = form.find('#534').val(); 264 265 var goal_type = $('#goal_type').val(); 266 267 if(name == 'undefined' || name == '') name = 'Ðе пÑедÑÑавилÑÑ'; 268 269 if(phone !== 'undefined' && phone !== '') 270 { 271 272 $.ajax({ 273 type: "POST", 274 dataType: 'json', 275 url: '/local/tools/form-handler.php', 276 data: form.serialize(), 277 error: function(){ 278 console.log("Error messages"); 279 }, 280 success: function(data) { 281 if(!data.error){ 282 console.log('ÐаÑвка ÑÑпеÑно оÑпÑавлена') 283 form.parent().parent().html('<p style="color: #D5A771 !important;" class="important">СпаÑибо за обÑаÑение,<br/> Ñ Ðами ÑвÑжÑÑÑÑ Ð² ближайÑее вÑемÑ!</p>'); 284 } 285 else { 286 alert('ЧÑо-Ñо поÑло не Ñак, попÑобÑйÑе позже или ÑвÑжиÑеÑÑ Ñ Ð°Ð´Ð¼Ð¸Ð½Ð¸ÑÑÑаÑией ÑайÑа.'); 287 } 288 } 289 }); 290 291 roistatGoal.reach({leadName: 'ÐÐ¾Ð²Ð°Ñ Ñделка Ñ fed24.ru', name: name, phone: phone, text: comment, fields: { 292 923214: url, 293 923216: product, 294 691102: 1660058, 295 tags: "fed24.ru" 296 }}); 297 298 299 300 yaCounter32098849.reachGoal(goal_type); 301 302 303 }else{ 304 form.find('input[type="tel"]').addClass('invalid').focus(); 305 } 306 } 307 308 return false; 309 }); 310}); 311 312 313$.fn.height_equal = function(){ 314 var maxHeight = 0; 315 316 this.each(function() { 317 $(this).each(function(){ 318 if ( $(this).height() > maxHeight ) 319 { 320 maxHeight = $(this).height(); 321 } 322 }); 323 }); 324 325 return $(this).height(maxHeight); 326}; 327 328$(".button-learn-more").hover(function(){ 329 $( this ).append( $( "<span> ***</span>" ) ); 330}, function() { 331 $( this ).find( "span:last" ).remove(); 332 } 333); 334 335$(".example-header").click(function(){ 336 console.log('clicked'); 337 $(this).fadeOut(); 338 $('#hiden-block').removeClass('hide').fadeIn(); 339 $("#lear-less_button").fadeIn(); 340}); 341 342$("#lear-less_button").click(function(){ 343 $(this).fadeOut(); 344 345 setTimeout(function(){ 346 $.getScript("engine1/script.js"); 347 $('#hiden-block').addClass('hide').fadeOut(500); 348 $("#lear-more_button").fadeIn(500); 349 }, 500); 350}); 351 352$(document).ready(function(){ 353 function add_opacity (who, what) { 354 $(who).addClass(what); 355 } 356 $('#learn-more__button').click(function() { 357 $(this).hide(); 358 $('.hidden-block__bilan').fadeIn('300').addClass('bilan-opened').removeClass('hide'); 359 $('.bilan-opened p:last-child').addClass('paragraf-last-child'); 360 $('.services__li-third').css('margin-bottom', '3%'); 361 362 add_opacity('.services__li-first', 'ex-first'); 363 add_opacity('.services__li-second', 'ex-second'); 364 add_opacity('.services__li-third', 'ex-third'); 365 366 $('li').removeClass('services__li-first').removeClass('services__li-second').removeClass('services__li-third'); 367 $('span').removeClass('services__li-first').removeClass('services__li-second').removeClass('services__li-third'); 368 $('.paragraf-last-child').append('<p class="learn-less__button">« СкÑÑÑÑ</p>'); 369 370 $('.learn-less__button').click(function() { 371 $(this).hide(); 372 $('html, body').animate({ 373 scrollTop: $("h2").offset().top 374 }, 1500); 375 376 $('.bilan-opened').fadeOut('500').addClass('bilan-closed').addClass('hide'); 377 $('#learn-more__button').fadeIn('300'); 378 $('.ex-first').removeClass('ex-first').addClass('services__li-first'); 379 $('.ex-second').removeClass('ex-second').addClass('services__li-second'); 380 $('.ex-third').removeClass('ex-third').addClass('services__li-third'); 381 $('.content-section .right-side ul').css('margin-bottom', '16px'); 382 }); 383 }); 384 385// if (w < 400 ) { 386// $('.inn').html('<!-- ÐÑа Ñема вÑводиÑÑÑ JS в Ñайле common.js, где-Ñо ее можно иÑпÑавиÑÑ Ð² админке, но Ñ Ð½Ðµ Ð·Ð½Ð°Ñ Ð³Ð´Ðµ -->© 2004-2016 «ФедеÑаÑÐ¸Ñ ÑÑиÑÑов СанкÑ-ÐеÑеÑбÑÑга», «Фед24», ÐÐÐ 781Ð4Ð6844'); 387// $('.review-footer a').click(function(){ 388// if ($('.review-content').hasClass('active') == false) { 389// $('html, body').animate({scrollTop: $(".review-header").offset().top}, 1000); 390// } 391// }); 392// } else { 393// $('.review-footer a').click(function(){ 394// if ($('.review-content').hasClass('active') == false) { 395// $('html, body').animate({scrollTop: $(".our-wins").offset().top}, 1000); 396// } 397// }); 398// } 399 400 // ROISTAT BEGIN 401// $('.btn.float_right').click(function(){ 402// var phone = $(this).parent().find('#533').val(); 403// var name = $(this).parent().find('#455').val(); 404// var comment = $(this).parent().find('#514').val(); 405// var url = document.location.href; 406// var product = $('h2:eq(0)').text(); 407// 408// if (name !== 'undefined' && phone !== 'undefined' && name !="" && phone!="") { 409// roistatGoal.reach({leadName: 'ÐÐ¾Ð²Ð°Ñ Ñделка Ñ fed24.ru', name: name, phone: phone, text: comment, fields: { 410// 923214: url, 411// 923216: product 412// }}); 413// } 414// }); 415 416// $('.btn.callback').click(function(){ 417// var phone = $('.form .wow-placehold:eq(0)').val(); 418// var url = document.location.href; 419// if (phone !== 'undefined' && phone!="") { 420// roistatGoal.reach({leadName: 'ÐÐ¾Ð²Ð°Ñ Ñделка Ñ fed24.ru', phone: phone, fields: { 421// 923214: url, 422// 923216: 'ÐеÑплаÑÐ½Ð°Ñ ÐºÐ¾Ð½ÑÑлÑÑаÑиÑ' 423// }}); 424// } 425// }); 426 // ROISTAT END
427 // Ðнопка навеÑÑ - показ/ÑкÑÑÑие пÑи ÑкÑолле 428 var scrollToTopBtn = $('#scrollToTop'); 429 var rootElement = $('html, body'); 430 431 $(window).scroll(function() { 432 // ÐоказÑваем кнопкÑ, когда полÑзоваÑÐµÐ»Ñ Ð¿ÑокÑÑÑил вниз на 300px 433 var scrollTotal = $(document).height() - $(window).height(); 434 if (($(window).scrollTop() / scrollTotal) > 0.2) { 435 scrollToTopBtn.addClass('visible'); 436 } else { 437 scrollToTopBtn.removeClass('visible'); 438 } 439 }); 440 441 // ÐлавнÑй ÑкÑолл навеÑÑ Ð¿Ñи клике 442 scrollToTopBtn.click(function() { 443 rootElement.animate({ 444 scrollTop: 0 445 }, 800, 'swing'); 446 }); 447});
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.