Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
tilda-scripts-2.8.min.js
Содержимое
function t_throttle(e,t,o){t||(t=250);var i,n;return function(){var r=o||this,s=+new Date,a=arguments;i&&s<i+t?(clearTimeout(n),n=setTimeout(function(){i=s,e.apply(r,a)},t)):(i=s,e.apply(r,a))}}window.isSearchBot=!1,function(e){if($isMobile=!1,/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&($isMobile=!0),/Bot/i.test(navigator.userAgent)&&(window.isSearchBot=!0),window.isMobile=$isMobile,1==$isMobile){var t=function(){for(var t=document.body.querySelectorAll(".t-cover__carrier"),o=e(window).height(),i=0,n=0,r=t.length;n<r;n++)(a=(s=t[n]).style).height.indexOf("vh")>-1&&(i=parseInt(a.height)/100,c=Math.round(o*i)+"px",(l=e(s).parent(".t-cover"))&&(l=l[0])&&(d=l.querySelector(".t-cover__filter"),h=l.querySelector(".t-cover__wrapper"),d&&(d.style.height=c),h&&(h.style.height=c),a.height=l.style.height=c));for(var s,a,c,l,d,h,u=document.body.querySelectorAll("[data-height-correct-vh]"),o=e(window).height(),i=0,n=0,r=u.length;n<r;n++)(a=(s=u[n]).style).height.indexOf("vh")>-1&&(i=parseInt(a.height)/100,c=o+"px",l=e(s).parent(".t-cover"),a.height=c)};e(document).ready(function(){t()}),e(window).load(function(){t()})}1==$isMobile&&(e(window).width()<480?(e(document).ready(function(){e("div[data-customstyle=yes]").each(function(t){e(this).css("font-size").replace("px","")>26&&(e(this).css("font-size",""),e(this).css("line-height",""))}),e("[field]").find("span").each(function(t){e(this).css("font-size").replace("px","")>26&&e(this).css("font-size","")});var t;e(".t-title, .t-name, .t-heading, .t-descr, .t-text, .t-subtitle").not(".tn-elem, .tn-atom").each(function(o){if(void 0!==(t=e(this).attr("style"))&&""!=t&&t.indexOf("font-size")>-1&&e(this).css("font-size").replace("px","")>26){var i=t.replace("font-size","fontsize").replace("line-height","lineheight");e(this).attr("style",i)}})}),e(window).load(function(){var t=e(window).width();e(".r").each(function(){var o=e(this);e(this).find("div").not("[data-auto-correct-mobile-width=false], .tn-elem, .tn-atom").each(function(){var i=parseInt(e(this).outerWidth(!0));i>t&&(console.log("Block not optimized for mobile width. Block width:"+i+" Block id:"+o.attr("id")),console.log(e(this)),o.css("overflow","auto"),i-3>t&&o.css("word-break","break-all"))})})})):e(window).width()<900&&e(document).ready(function(){e("div[data-customstyle=yes]").each(function(t){e(this).css("font-size").replace("px","")>30&&(e(this).css("font-size",""),e(this).css("line-height",""))}),e("[field]").find("span").each(function(t){e(this).css("font-size").replace("px","")>30&&e(this).css("font-size","")});var t;e(".t-title, .t-name, .t-heading, .t-descr, .t-text, .t-subtitle").not(".tn-elem, .tn-atom").each(function(o){if(void 0!==(t=e(this).attr("style"))&&""!=t&&t.indexOf("font-size")>-1&&e(this).css("font-size").replace("px","")>30){var i=t.replace("font-size","fontsize").replace("line-height","lineheight");e(this).attr("style",i)}})}))}(jQuery),function(e){function t(){this.setScrollListener()}t.prototype.videoTags=[],t.prototype.defaultConfig={isNeedStop:!1},t.prototype.videoConfigs=[],t.prototype.registerNewVideo=function(e,t){if(!(e instanceof HTMLVideoElement))throw new Error("Wrong tag passed into registerNewVideo");return-1==this.videoTags.indexOf(e)&&(this.videoTags.push(e),this.videoConfigs.push(void 0===t?this.defaultConfig:t),this.scrollCb(),!0)},t.prototype.unergisterVideo=function(e){if(!(e instanceof HTMLVideoElement))throw new Error("Wrong tag passed into unregisterNewVideo");var t;return(t=this.videoTags.indexOf(e))>-1&&("function"==typeof e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e),this.pauseVideo(e,this.videoConfigs[t]),this.videoTags.splice(t,1),this.videoConfigs.splice(t,1),!0)},t.prototype.pauseVideo=function(e,t){if(!t)throw new Error("Wrong config type!");e.pause(),t.isNeedStop&&e.load()},t.prototype.setScrollListener=function(){e(window).bind("scroll",t_throttle(jQuery.proxy(this.scrollCb,this),200))},t.prototype.scrollCb=function(){for(var t=e(window).height(),o=null,i=0,n=this.videoTags.length;i<n;i++){if(o=this.videoTags[i],_vrect=this.getVideoBoundingRect(o,!1),Math.abs(_vrect.top)<t&&Math.abs(_vrect.top)>t/2){var r=1-(Math.abs(_vrect.top)-t/2)/(t/2)-.2;r>0&&r<=1&&0!=o.volume&&(o.volume=r)}Math.abs(_vrect.top)>t||0==_vrect.height?this.pauseVideo(o,this.videoConfigs[i]):o.paused&&o.play()}},t.prototype.getVideoObject=function(e){for(var t=0,o=this.videoTags.length;t>o;t++){var i=this.videoTags[t];if(i.v===e)return i}return null},t.prototype.getVideoBoundingRect=function(t,o){void 0===o&&(o=!0);var i=null;return o?(i=e(t).parents(".r")[0])||(i=t):i=t,i.getBoundingClientRect()},window.videoLoadProcessor=new t}(jQuery),function(e){function t(){this.setScrollCb(),this.itemHeight=screen.availHeight;this.itemTransitionTop=.25*this.itemHeight,this.activeItemIndex=null,this.windowHeight=document.documentElement.clientHeight||window.innerHeight||screen.availHeight,this.topOffsetShift=-150,e(window).resize(jQuery.proxy(this.recalculateAllSequencesOffsets,this)),this._resizeInterval=setInterval(jQuery.proxy(this.scrollCb,this),500)}function o(t){var o=e("#rec"+t),i=o.find(".t-cover").height(),n=o.find("div[data-hook-content]").outerHeight();n>300&&i<n+40&&((n=n+120)>1e3&&(n+=100),console.log("auto correct cover height: "+n),o.find(".t-cover").height(n),o.find(".t-cover__filter").height(n),o.find(".t-cover__carrier").height(n),o.find(".t-cover__wrapper").height(n),0==$isMobile&&setTimeout(function(){var e=o.find(".t-cover__carrier");e.find("iframe").length>0&&(console.log("correct video from cover_fixcontentheight"),a(e,n+"px")),e.find("video").length>0&&console.log("correct html5video from cover_fixcontentheight")},2e3))}function i(e,t){-1==e.indexOf("https://www.youtube.com/embed")&&(e="https://www.youtube.com/embed"+("/"==e[0]?e:"/"+e));var o=location.protocol+"//"+location.host;return"yes"!=t?(e[e.length-1],e=e+"?autoplay=1&loop=1&enablejsapi=1&&playerapiid=featuredytplayer&controls=0&modestbranding=1&rel=0&showinfo=0&color=white&iv_load_policy=3&theme=light&wmode=transparent&origin="+o+"&playlist="+function(e){for(var t=e.split("/"),o=null,i=0,n=t.length;i<n;i++)"embed"==t[i]&&(o=t[i+1]);return o}(e)):(e[e.length-1],e=e+"?autoplay=0&loop=0&enablejsapi=1&&playerapiid=featuredytplayer&controls=1&modestbranding=1&rel=0&showinfo=0&color=black&iv_load_policy=3&theme=dark&wmode=transparent&origin="+o),e}function n(t,o,i){var n,s=e(window),a=e(t),c=0;s.scroll(function(){n&&(window.clearTimeout(n),c>=15&&(r(a,s,o,i),c=0),c++),n=window.setTimeout(function(){r(a,s,o,i),c=0},100)}),s.scroll()}function r(e,t,o,i){var n,r,s,a,c;n=e.offset().top,r=e.height(),s=t.scrollTop(),a=t.height(),c=o.getPlayerState(),s+a>n&&s<=n+r?(1!==c&&o.playVideo(),"yes"==i&&(s>n+r-100?o.setVolume(30):s>n+r-200?o.setVolume(70):s+a<n+200?o.setVolume(30):o.setVolume(100))):s+a<n&&s+a>n-500?2!==c&&(o.playVideo(),o.pauseVideo()):2!==c&&o.pauseVideo()}function s(){if("yes"!==window.loadytapi_flag){window.loadytapi_flag="yes";var e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}}function a(t,o){console.log("setWidthHeightYoutubeVideo:"+o);var i=t.find("iframe"),n=t.attr("data-content-video-nocover"),r=t.attr("data-content-video-noadcut-youtube"),s=t.attr("data-content-video-ratio"),a=.5625;if(s>0&&(a=1*parseFloat(s)),"yes"!=n){if(o||(o="100vh"),o.indexOf("vh")>-1){var c=window.innerHeight;c||(c=e(window).height());l=Math.floor(c*(parseInt(o)/100))}else var l=parseInt(o);var d=Math.floor(parseInt(window.innerWidth));d||(d=e(window).width());var h=d,u=h,p=b=h*a,f=b,v=1;if("yes"==r||(p=p+110+110,f=b-220),f<l)if(b<l)v=l/b+.02;else v=b/l+.02;var g=Math.floor(u*v),w=Math.floor(p*v),m=w-l,y=g-d;i.height(w+"px"),i.width(g+"px"),m>0&&i.css("margin-top",-Math.floor(m/2)+"px"),y>0&&i.css("margin-left",-Math.floor(y/2)+"px")}else{var b;o||(b=Math.floor(t.width()*a)),o&&o.indexOf("vh")>-1?b=Math.floor(window.innerHeight*(parseInt(o)/100)):o&&(b=parseInt(o)),i.css("width","100%"),i.height(b+"px")}}t.prototype.defaultConfig={orientation:"vertical",speedFactor:1,automated:!1},t.prototype.sequenceObjects=[],t.prototype.recalculateAllSequencesOffsets=function(){this._resizeTimeout&&clearTimeout(this._resizeTimeout),this._resizeInterval&&clearInterval(this._resizeInterval),this._resizeTimeout=setTimeout(jQuery.proxy(function(){this.scrollCb(),this._resizeInterval=setInterval(jQuery.proxy(this.scrollCb,this),500)},this),10)},t.prototype.registerNewBlock=function(e){if(!(e instanceof HTMLElement))throw new Error("Wrong node type in registerNewBlock");for(var t=0,o=this.sequenceObjects.length;t<o;t++)if(this.sequenceObjects[t].sequenceBlock===e)return!1;var i=e.querySelector('[data-hook="sequence-holder"]'),n=0,r=this.getAbsoluteTopOffset(i),s=function(){var t=[];return Array.prototype.slice.call(e.querySelectorAll('[data-hook="sequence-item"]'),0).forEach(jQuery.proxy(function(e,o,i){var r=this.getItemHeight(e),s=e.querySelector('[data-hook="item-background"]');e.style.height=r+"px",s.style.height=this.itemHeight+"px",o<i.length-1&&(n+=r),t.push({node:e,height:r,topOffset:this.getAbsoluteTopOffset(e.querySelector(".txt-holder"))-(o==i.length-1?0:this.topOffsetShift),backgroundHolder:s})},this)),t}.call(this),a=(this.itemHeight,{sequenceBlock:e,sequenceHolder:i,sequenceHolderTopOffset:r,sequenceHeight:n,items:s,started:!1,prevBackgroundColor:""});return this.sequenceObjects.push(a),this.scrollCb(),!0},t.prototype.getItemHeight=function(e){var t=e.querySelector("[data-hook='item-text']");e.querySelector("[data-hook='item-background']");st=e.style;var o=parseFloat(getComputedStyle(t).top);return t.style.top=o+"px",Math.max(t.clientHeight+o,this.itemHeight)},t.prototype.fixTextBlocksPosition=function(e){txtBlocks=Array.prototype.slice.call(e.querySelectorAll('[data-hook="item-text"]'),0),txtBlocks.forEach(function(e,t,o){e.parentNode.querySelector("[data-hook='item-background']").style.top="-"+e.clientHeight+"px"})},t.prototype.unergisterBlock=function(e){for(var t=0,o=this.sequenceObjects.length,i=null;t<o;t++)if(this.sequenceObjects[t].sequenceBlock===e){i=t;break}return null!==i&&(this.sequenceObjects.splice(i,1),!0)},t.prototype.getAbsoluteTopOffset=function(e){var t=e.offsetTop;for(e=e.offsetParent;null!=e;)t+=e.offsetTop,e=e.offsetParent;return t},t.prototype.processSequence=function(e){0==e.started&&(e.prevBackgroundColor=document.body.style.backgroundColor,document.body.style.backgroundColor="rgb(0, 0, 0)",e.started=!0);e.sequenceBlock,e.sequenceHolder;for(var t,o,i,n,r=e.items,s=null,a=0,c=r.length;a<c;a++)if(t=r[a].node,t.querySelector(".txt-holder"),(n=t.getBoundingClientRect()).top<this.itemTransitionTop&&n.bottom<n.height+this.itemTransitionTop&&n.bottom>this.itemTransitionTop){s=a;break}if(null!=s){(i=n.top/this.itemTransitionTop)>1?i=1:i<0&&(i=0);for(var a=0,c=r.length;a<c;a++)t=r[a].node,"fixed"!=(o=r[a].backgroundHolder.style).position&&(o.position="fixed"),a==s?(o.opacity=1-i,t.querySelector(".txt-holder").style.opacity=1-i):a==s-1?(o.opacity=i,t.querySelector(".txt-holder").style.opacity=i):(o.opacity=0,t.querySelector(".txt-holder").style.opacity=0)}},t.prototype.stopSequence=function(e){0!=e.started&&(e.items.forEach(function(e,t,o){e.backgroundHolder.style.position="relative",e.backgroundHolder.style.display="block",e.backgroundHolder.style.opacity=1}),document.body.style.backgroundColor=e.prevBackgroundColor,e.started=!1)},t.prototype.scrollCb=function(){e(window).scrollTop();for(var t,o=0,i=this.sequenceObjects.length;o<i;o++){var n=(t=this.sequenceObjects[o]).sequenceHolder.getBoundingClientRect();n.top<0&&n.bottom>0&&n.bottom>n.height-t.sequenceHeight-100?this.processSequence(t):this.stopSequence(t)}},t.prototype.setScrollCb=function(){this._scrollCb=jQuery.proxy(this.scrollCb,this),e(window).bind("scroll",t_throttle(this._scrollCb,200))},window.sequenceController=new t,window.processVideo=function(t){mp4Src=e(t).attr("data-content-video-url-mp4"),webmSrc=e(t).attr("data-content-video-url-webm"),e(t).css("background-color","transparent"),e(t).css("background-image","");var o={mp4:mp4Src,webm:webmSrc,preload:"none",autoplay:!1,loop:!0,scale:!0,zIndex:0,width:"100%"};vid=e(t).videoBG(o),videoLoadProcessor.registerNewVideo(vid,{isNeedStop:!1})},window.cover_init=function(t){e(document).ready(function(){var i=document.body.querySelector("#coverCarry"+t),n=e(i),r=n.attr("data-content-cover-bg"),s=n.attr("data-content-cover-height"),a=n.attr("data-content-cover-parallax"),c=n.attr("data-content-video-url-mp4"),l=n.attr("data-content-video-url-webm"),d=n.attr("data-content-video-url-youtube"),h=n.attr("data-content-video-noloop"),u=n.attr("data-content-video-nomute"),p=n.attr("data-content-bg-base64"),f=n.attr("data-content-video-nocover");r||(r=""),s||(s=""),a||(a=""),c||(c=""),l||(l=""),d||(d=""),h||(h=""),u||(u=""),d||(d=""),p||(p=""),f&&"yes"==f&&(c="",l="",d=""),!$isMobile||""==l&&""==c&&""==d||n.css("background-image","url('"+r+"')"),setTimeout(function(){o(t)},500);var v=e("#rec"+t).find("img[data-hook-clogo]");if(v.length&&v.load(function(){o(t)}),$isMobile&&e(window).on("orientationchange",function(){o(t)}),(""!==c||""!==l||""!==d)&&0==$isMobile)if(""!=d||""==c&&""==l){if(""!=d){n.css("background-color","#000000"),n.css("background-image",""),n.attr("data-content-cover-bg","");b=0;(x=e(window)).scroll(function(){y&&window.clearTimeout(y),y=window.setTimeout(function(){if(!((b=n.find("iframe").length)>0)){var e,t,o;e=n.offset().top,t=n.height(),(o=x.scrollTop())+x.height()>e-500&&o<=e+t+500&&processYoutubeVideo(i,s)}},100)}),x.scroll()}}else{if(n.css("background-color","#000000"),n.css("background-image","url('https://tilda.ws/img/spinner-white.gif')"),n.css("background-size","auto"),n.attr("data-content-cover-bg",""),""!=h)g=!1;else var g=!0;if(""!=u)w=1;else var w="";var m="";"fixed"==a&&(s.indexOf("vh")>-1&&parseInt(s)>100&&(n.css("height","100vh"),m="yes"),s.indexOf("px")>-1&&parseInt(s)>e(window).height()&&(n.css("height","100vh"),m="yes"));var y,b="",x=e(window),T=n.parent();x.scroll(function(){if(y&&window.clearTimeout(y),y=window.setTimeout(function(){if(!(b>0)){var e,t,o,i;if(e=n.offset().top,t=n.height(),o=x.scrollTop(),i=x.height(),o+i>e-500&&o<=e+t+500){var r=n.videoBG({mp4:c,webm:l,poster:"",preload:"none",autoplay:!1,loop:g,volume:w,scale:!0,zIndex:0,width:"100%"});videoLoadProcessor.registerNewVideo(r),b=1}}},100),"fixed"==a&&"yes"==m){var e,t,o;e=T.offset().top,t=T.height(),(o=x.scrollTop())>=e+t-x.height()?(n.css("position","absolute"),n.css("bottom","0px"),n.css("top","auto")):o>=e?(n.css("position","fixed"),n.css("top","0px")):o<e&&(n.css("position","relative"),n.css("top","auto"))}}),x.scroll()}if("dynamic"==a&&0==$isMobile&&n.parallax("50%",.2,!0),"yes"==p&&""!=r&&""==c&&""==l&&""==d){e("<img/>").attr("src",r).load(function(){e(this).remove(),n.css("background-image","url('"+r+"')"),n.css("opacity","1")}),n.css("background-image",""),n.css("opacity","0"),n.css("transition","opacity 25ms")}var k=e("#rec"+t).find(".t-cover__arrow-wrapper");k.length>0&&k.click(function(){var o=e("#rec"+t).height();o>0&&e("html, body").animate({scrollTop:e("#rec"+t).offset().top+o},500)})})},e(document).ready(function(){e(".t-cover__carrier").each(function(){var t=e(this).attr("data-content-cover-id");t>0&&cover_init(t)})});var c=e.Deferred();window.processYoutubeVideo=function(t,o){s();c.then(function(){var r=e(t),s=r.attr("data-content-video-url-youtube"),c=r.attr("data-content-video-nomute"),l=r.attr("data-content-video-noloop"),d=r.attr("data-content-video-nocover"),h=document.createElement("iframe");h.src=i(s,d),h.frameBorder=0;var u;if(t.appendChild(h),0==$isMobile)new YT.Player(h,{events:{onReady:function(e){n(t,e.target,c),e.target.setVolume&&"yes"!=c&&e.target.setVolume(0),e.target.setLoop(!0)},onStateChange:function(t){if(t.target.setVolume&&"yes"!=c&&t.target.setVolume(0),-1===t.data){var o=window.fix_scrolltop_beforestop_youtube;o>=0&&(e("html, body").scrollTop(o),delete window.fix_scrolltop_beforestop_youtube)}t.data===YT.PlayerState.PLAYING?u=window.setInterval(function(){var e=t.target.getCurrentTime(),o=t.target.getDuration();e+1>o&&0!==o&&(t.target.seekTo(0),"yes"===l&&(t.target.stopVideo(),t.target.clearVideo()))},1e3):window.clearTimeout(u)}}});a(r,o)})},window.onYouTubeIframeAPIReady=function(){c.resolve()}}(jQuery),function(e){function t(){this.callbacks={}}t.prototype.defaultConfig={single:!1,context:null},t.prototype.addEventListener=function(e,t,o){evtCallbacks=this._getEventCallbacks(e),evtCallbacks||(evtCallbacks=this.callbacks[e]=[]),evtCallbacks.push({callback:t,config:"object"==typeof o?o:this.defaultConfig})},t.prototype._getEventCallbacks=function(e){return this.callbacks[e]},t.prototype.removeEventListener=function(e,t){var o=this._getEventCallbacks(e);if(!o)return!1;for(var i,n=0,r=o.length;n<r;n++)if(i=o[n],t===i.callback)return o.splice(n,1),!0;return!1},t.prototype.emitEvent=function(e,t){var o=[];extend(o,this._getEventCallbacks(e));for(var i,n,r,s=0,a=o.length;s<a;s++)n=(i=o[s]).callback,(r=i.config).context?n.call(r.context,t):n(t),r.single&&this.removeEventListener(e,n)},window.observer=new t}(jQuery),function(e){e(document).ready(function(){function t(){if(o.length)for(var t,n=o.length-1;n>=0;n--)(t=e(o[n])).offset().top<i.scrollTop()+i.height()-100&&(t.removeClass("r_hidden"),t.addClass("r_showed"),o.splice(n,1))}if(0==$isMobile&&"yes"!==e("#allrecords").attr("data-blocks-animationoff")&&0==window.isSearchBot){e(".r").each(function(t){e(this).attr("style")&&-1!==e(this).attr("style").indexOf("background-color")&&e(this).attr("data-animationappear","off")});var o=e(".r").not("[data-animationappear=off], [data-screen-min], [data-screen-max]"),i=e(window);o.each(function(t){a=e(this).offset().top,b=i.scrollTop()+i.height()+300,a>1e3&&a>b?e(this).addClass("r_hidden"):e(this).addClass("r_showed"),e(this).addClass("r_anim")}),i.bind("scroll",t_throttle(t,200)),t()}e("body").height()<e(window).height()-100&&e(".t-tildalabel").css("display","none")})}(jQuery),function(e){function t(){var t=e(window);t.wnd_width=t.width(),t.wnd_height=t.height()}function o(){t();var o,i,n,r=e(window).width();e("div.r[data-screen-max], div.r[data-screen-min]").each(function(t){n=e(this).css("display"),void 0===(o=e(this).attr("data-screen-max"))&&(o=1e4),o=parseInt(o),void 0===(i=e(this).attr("data-screen-min"))&&(i=0),(i=parseInt(i))<=o&&(r<=o&&r>i?"block"!=n&&e(this).css("display","block"):"none"!=n&&e(this).css("display","none"))})}e(document).ready(function(){o(),e(window).bind("resize",t_throttle(o,200))})}(jQuery),function(e){function t(t,o){var i=t.closest(".t-cover__carrier"),n=o+"";console.log("setWidthHeightHTMLVideo:"+n);var r=i.find("video"),s=i.attr("data-content-video-nocover"),a=i.attr("data-content-video-ratio"),c=.5625;if(a>0&&(c=1*parseFloat(a)),"yes"!=s){if(n||(n="100vh"),n.indexOf("vh")>-1){var l=window.innerHeight;l||(l=e(window).height());d=Math.floor(l*(parseInt(n)/100))}else var d=parseInt(n);var h=Math.floor(parseInt(window.innerWidth));h||(h=e(window).width());var u=h,p=u,f=b=u*c,v=1;if(b<d)if(b<d)v=d/b+.02;else v=b/d+.02;var g=Math.floor(p*v),w=Math.floor(f*v),m=w-d,y=g-h;r.height(w+"px"),r.width(g+"px"),m>0&&r.css("margin-top",-Math.floor(m/2)+"px"),y>0&&r.css("margin-left",-Math.floor(y/2)+"px")}else{var b;n||(b=Math.floor(i.width()*c)),n&&n.indexOf("vh")>-1?b=Math.floor(window.innerHeight*(parseInt(n)/100)):n&&(b=parseInt(n)),r.css("width","100%"),r.height(b+"px")}}e.fn.videoBG=function(o,i){var i={};if("object"==typeof o)i=e.extend({},e.fn.videoBG.defaults,o);else{if(o)return e(o).videoBG(i);i=e.fn.videoBG.defaults}var n=e(this);if(n.length){"static"!=n.css("position")&&n.css("position")||n.css("position","relative"),0==i.width&&(i.width=n.width()),0==i.height&&(i.height=n.height()),i.textReplacement&&(i.scale=!0,n.width(i.width).height(i.height).css("text-indent","-9999px"));var r=e.fn.videoBG.video(i);return i.scale&&r.height(i.height).width(i.width),n.append(r),t(r,i.height),r.find("video")[0]}},e.fn.videoBG.setFullscreen=function(t){var o=e(window).width(),i=e(window).height();if(t.css("min-height",0).css("min-width",0),t.parent().width(o).height(i),o/i>t.aspectRatio)t.width(o).height("auto"),(n=(t.height()-i)/2)<0&&(n=0),t.css("top",-n);else{t.width("auto").height(i);var n=(t.width()-o)/2;if(n<0&&(n=0),t.css("left",-n),0===n)setTimeout(function(){e.fn.videoBG.setFullscreen(t)},500)}e("body > .videoBG_wrapper").width(o).height(i)},e.fn.videoBG.video=function(t){var o=e("<div/>");o.addClass("videoBG").css("position",t.position).css("z-index",t.zIndex).css("top",0).css("left",0).css("height",t.height).css("width",t.width).css("opacity",t.opacity).css("overflow","hidden");var i=e("<video/>");if(i.css("position","relative").css("z-index",t.zIndex).attr("poster",t.poster).css("top",0).css("left",0).css("min-width","100%").css("min-height","100%"),t.autoplay&&i.attr("autoplay",t.autoplay),t.volume>0?i.prop("volume",t.volume):i.prop("volume",0),t.fullscreen){i.bind("canplay",function(){i.aspectRatio=i.width()/i.height(),e.fn.videoBG.setFullscreen(i)});var n;e(window).resize(function(){clearTimeout(n),n=setTimeout(function(){e.fn.videoBG.setFullscreen(i)},100)}),e.fn.videoBG.setFullscreen(i)}var r=i[0];t.loop&&(loops_left=t.loop,i.bind("ended",function(){loops_left&&r.play(),!0!==loops_left&&loops_left--})),i.bind("canplay",function(){t.autoplay&&r.play()}),e.fn.videoBG.supportsVideo()&&(e.fn.videoBG.supportType("webm")&&""!=t.webm?i.attr("src",t.webm):e.fn.videoBG.supportType("mp4")&&""!=t.mp4?i.attr("src",t.mp4):i.attr("src",t.ogv));var s=e("<img/>");return s.attr("src",t.poster).css("position","absolute").css("z-index",t.zIndex).css("top",0).css("left",0).css("min-width","100%").css("min-height","100%"),e.fn.videoBG.supportsVideo()?o.html(i):o.html(s),t.textReplacement&&(o.css("min-height",1).css("min-width",1),i.css("min-height",1).css("min-width",1),s.css("min-height",1).css("min-width",1),o.height(t.height).width(t.width),i.height(t.height).width(t.width),s.height(t.height).width(t.width)),e.fn.videoBG.supportsVideo(),o},e.fn.videoBG.supportsVideo=function(){return document.createElement("video").canPlayType},e.fn.videoBG.supportType=function(t){if(!e.fn.videoBG.supportsVideo())return!1;var o=document.createElement("video");switch(t){case"webm":return o.canPlayType('video/webm; codecs="vp8, vorbis"');case"mp4":return o.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');case"ogv":return o.canPlayType('video/ogg; codecs="theora, vorbis"')}return!1},e.fn.videoBG.wrapper=function(){var t=e("<div/>");return t.addClass("videoBG_wrapper").css("position","absolute").css("top",0).css("left",0),t},e.fn.videoBG.defaults={mp4:"",ogv:"",webm:"",poster:"",autoplay:!0,loop:!0,scale:!1,position:"absolute",opacity:1,textReplacement:!1,zIndex:0,width:0,height:0,fullscreen:!1,imgFallback:!0}}(jQuery),function(e){var t=e(window),o=t.height();t.resize(function(){o=t.height()}),e.fn.parallax=function(i,n,r){function s(){var i=t.scrollTop();l.each(function(){var t=e(this),r=t.offset().top,s=a(t),c=this.getBoundingClientRect();if(!(r+s<i||r>i+o)){var l=-1*Math.round(c.top*n);d?this.style["-webkit-transform"]="translateY("+l+"px)":this.style.top=l+"px"}})}var a,c,l=e(this),d=void 0!==document.body.style["-webkit-transform"];d&&l.css("position","relative"),window.correctFirstTop4Parallax=function(){l.each(function(){c=l.offset().top})},window.correctFirstTop4Parallax(),a=r?function(e){return e.outerHeight(!0)}:function(e){return e.height()},(arguments.length<1||null===i)&&(i="50%"),(arguments.length<2||null===n)&&(n=.1),(arguments.length<3||null===r)&&(r=!0),e(window).resize(window.correctFirstTop4Parallax),t.bind("scroll",s).resize(s),"complete"!==document.readyState?window.addEventListener("load",function(){s()}):s()}}(jQuery),window.Tilda=window.Tilda||{},function(e){Tilda.sendEventToStatistics=function(e,t,o,i){o||(o=window.location.href),i=i?parseFloat(i):0,window.ga&&"tilda"!=window.mainTracker&&ga("send",{hitType:"pageview",page:e,title:t}),window.mainMetrika>""&&window[window.mainMetrika]&&window[window.mainMetrika].hit(e,{title:t,referer:o}),void 0!=window.dataLayer&&(i>0?window.dataLayer.push({event:"pageView",eventAction:e,title:t,value:i,referer:o}):window.dataLayer.push({event:"pageView",eventAction:e,title:t,referer:o})),void 0!=window.fbq&&(i>0?window.fbq("track","InitiateCheckout",{content_name:t,content_category:e,value:i,referrer:o}):window.fbq("track","Lead",{content_name:t,content_category:e,referrer:o}))},Tilda.saveUTM=function(){try{var e=window.location.href,t="",o="";if(-1!==e.toLowerCase().indexOf("utm_")&&(e=e.toLowerCase(),t=e.split("?"),"string"==typeof(t=t[1]))){var i,n=t.split("&");for(i in n)"utm_"==n[i].split("=")[0].substring(0,4)&&(o=o+n[i]+"|||");if(o.length>0){var r=new Date;r.setDate(r.getDate()+30),document.cookie="TILDAUTM="+encodeURIComponent(o)+"; path=/; expires="+r.toUTCString()}}}catch(e){}},e(document).ready(function(){var t=navigator.userAgent.toLowerCase(),o=-1!=t.indexOf("msie")&&parseInt(t.split("msie")[1]);8!=o&&9!=o||e(".t-btn").each(function(){var t=e(this).attr("href");e(this).find("table").length>0&&t>""&&-1==t.indexOf("#popup:")&&-1==t.indexOf("#price:")&&e(this).click(function(t){t.preventDefault();var o=e(this).attr("href");window.location.href=o})}),Tilda.saveUTM(),Tilda.showFormError=function(e,t){var o=e.find(".js-errorbox-all");o&&0!=o.length||(e.prepend('<div class="js-errorbox-all"></div>'),o=e.find(".js-errorbox-all"));var i=o.find(".js-rule-error-all");i&&0!=i.length||(o.append('<p class="js-rule-error-all"></p>'),i=o.find(".js-rule-error-all")),"string"==typeof t?i.html(t):t&&t.responseText?i.html(t.responseText+". Later, plaese try again."):t&&t.statusText?i.html("Error - "+t.statusText+". Later, plaese try again."):i.html("Unknown error. Later, plaese try again."),i.show(),o.show()},e("input.js-amount").each(function(){var t=e(this).val();t=t.replace(/,/g,"."),t=parseFloat(t.replace(/[^0-9\.]/g,"")),e(this).val(t)}),Tilda.robokassaPayment=function(t,o,i){return e.ajax({type:"POST",url:"https://forms.tildacdn.com/payment/robokassa/",data:t.serialize(),dataType:"text",success:function(n){o.removeClass("t-btn_sending"),o.data("form-sending-status","0"),o.data("submitform","");var r=o.closest(".r").attr("id");if("{"==n.substring(0,1)){if(window.JSON&&window.JSON.parse?json=window.JSON.parse(n):json=e.parseJSON(n),!json)return void Tilda.showFormError(t,!1);if(json.error>"")return void Tilda.showFormError(t,json.error)}else if("http"==n.substring(0,4)){Tilda.sendEventToStatistics("/tilda/payment/"+r+"/click/","Payment button: "+o.val(),"",i);var s=n;window.setTimeout(function(){window.location.href=s},500)}else Tilda.showFormError(t,n)},fail:function(e){o.removeClass("t-btn_sending"),o.data("form-sending-status","0"),o.data("submitform","");Tilda.showFormError(t,e)},timeout:15e3})}})}(jQuery);
/partners/megafon/css/
Имя
Дата
Размер
..
2017-09-29
analytics.js
2017-09-28
34 кб.
boom.min.js
2017-09-28
23 кб.
hammer.min.js
2017-09-28
20 кб.
jquery-1.10.2.min.js
2017-09-28
91 кб.
jquery-1.11.2.min.js
2017-09-28
94 кб.
lazyload-1.3.min.js
2017-09-28
7 кб.
longreadTilda.js
2017-09-28
11 кб.
tcounter.js
2017-09-28
552 байт
tilda-blocks-2.12.css
2017-09-28
144 кб.
tilda-blocks-2.7.js
2017-09-28
47 кб.
tilda-grid-3.0.min.css
2017-09-28
4 кб.
tilda-scripts-2.8.min.js
2017-09-28
26 кб.
tilda-slds-1.4.min.css
2017-09-28
8 кб.
tilda-slds-1.4.min.js
2017-09-28
13 кб.
tilda-zoom-2.0.min.css
2017-09-28
3 кб.
tilda-zoom-2.0.min.js
2017-09-28
5 кб.
tildaStyles.css
2017-09-28
7 кб.
watch.js
2017-09-28
86 кб.
/partners/megafon/css
Загрузить файлы
Файл 1
Файл 2
Файл 3