Вход Регистрация
Файл: web-kgvip/js/min/custom-ck.js
Строк: 693
<?php
"function"!=typeof WOW||/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||(wow=new WOW({boxClass:"anim",animateClass:"animated",offset:0}),wow.init()),$(window).load(function(){$("#slider").nivoSlider({slices:4,boxCols:8,boxRows:4,animSpeed:200,prevText:'<i class="fa fa-chevron-left"></i>',nextText:'<i class="fa fa-chevron-right"></i>'})}),jQuery(document).ready(function(e){function t(){e(o).animate({bottom:"35px",paddingBottom:"20px",opacity:.1},1e3,"easeOutExpo",function(){e(this).animate({bottom:"15px",paddingBottom:"0",opacity:.5},1e3,"easeOutBounce")})}function i(t){var i=4;e(window).width()<=1200&&(i=3),e(window).width()<=870&&(i=2),e(window).width()<=480&&(i=1);var a=3*i/4,n=Math.floor(e(window).width()/i),o=n*a/i,s=0;t&&e(".gallary .preview").fadeOut(400),e(".gallary li").each(function(){e(this).css("width",n),e(this).css("height",o)}),t&&e(".portfolio").waypoint(function(){e(".gallary li img").each(function(){e(this).css({opacity:"0",top:"-50px",display:"block"});var t=this;setTimeout(function(){e(t).animate({opacity:"1",top:"0"},1800,"easeOutExpo")},190*s++)})},{offset:500,triggerOnce:!0})}function a(t){var i="undefined"==typeof e(t).data("title")?"":e(t).data("title"),a="undefined"==typeof e(t).data("icon")?"fa-eye":e(t).data("icon"),n="undefined"==typeof e(t).data("start")?0:e(t).data("start"),o="undefined"==typeof e(t).data("fadeIn")?500:parseInt(e(t).data("fadeIn")),s="undefined"==typeof e(t).data("fadeOut")?200:parseInt(e(t).data("fadeOut")),r="undefined"==typeof e(t).data("zoom")?!1:!0;return"top"==n?n=-100:"bottom"==n&&(n=100),e('<span class="desc"><i class="fa '+a+'"></i><span class="title">'+i+"</span></span>").css({opacity:0,top:n+"%"}).appendTo(e(t)),e(t).hover(function(){e(t).find("span.desc").stop().animate({opacity:1,top:0},o,"easeOutCirc")},function(){e(t).find("span.desc").stop().animate({opacity:0,top:n+"%"},s,"easeOutCirc")}),t}if(e(".anim").waypoint(function(){e(this).removeClass("anim")},{triggerOnce:!0,offset:"-95%"}),e.isFunction(e.fn.backstretch)&&(e(".slider-wrapper").backstretch(["images/slider/slide-wrapper.jpg"]),window.devicePixelRatio>=2?(e("section.blur,.slug .overlay").backstretch(["images/design/video-section-bg-retina.jpg"]),e(".slug .overlay,section.fixed .overlay").backstretch(["images/design/video-section-bg-opac-retina.png"])):(e("section.blur,.slug .overlay").backstretch(["images/design/video-section-bg.jpg"]),e(".slug .overlay,section.fixed .overlay").backstretch(["images/design/video-section-bg-opac.png"]))),"function"==typeof MasterSlider){var n=new MasterSlider;n.setup("testimonials",{space:0,fullwidth:!0,loop:!0,autoplay:!0,overPause:!1,speed:20,width:500,view:"fade",height:500}),e(".ms-nav-next#tNext").click(function(){n.api.next()}),e(".ms-nav-prev#tPrev").click(function(){n.api.previous()})}var o=e(".slider-wrapper i.fa#go-down");if(o.length&&setTimeout(function(){e(o).css({bottom:"35px",opacity:0,display:"block"}),setInterval(t,2e3)},6e3),e("a[href*=#]:not([href=#])").click(function(t){if(t.preventDefault(),location.pathname.replace(/^//,"")==this.pathname.replace(/^//,"")&&location.hostname==this.hostname){var i=e(this.hash);i=i.length?i:e("[name="+this.hash.slice(1)+"]"),i.length&&e("html,body").animate({scrollTop:i.offset().top},1e3)}}),e.stellar({horizontalScrolling:!1,verticalOffset:-400}),e.isFunction(e.fn.niceScroll)&&(e("html").niceScroll({cursorcolor:"#6ebff3",cursorborder:"0",zindex:999999999}),e(".navbar ul.mini").niceScroll({cursoropacitymax:0,cursoropacitymin:0,cursorborder:0})),i(!0),e.isFunction(e.fn.isotope)){var s=e(".gallary ul");if(s.isotope({easing:"easeOutCirc",resizable:!1}),e("#filters a").click(function(t){t.preventDefault(),e(this).hasClass("hot")||(e("#filters a.hot").removeClass("hot"),e(this).addClass("hot"),t.preventDefault(),s.isotope({filter:e(this).attr("data-filter")}))}),"function"==typeof _.debounce){var r=_.debounce(function g(){i(!1),s.isotope("reLayout")},300);e(window).resize(r)}}if("function"==typeof _.debounce){var c=_.debounce(function b(){e(window).width()>767&&e(".navbar ul.mini:visible").length&&e(".navbar-toggle").click(),e("ul.panels li")&&e("ul.panels li.active").removeClass("active").trigger("mousedown")},300);e(window).resize(c)}e("a#desc").each(function(){a(this)}),e(".member-box").each(function(){e(this).find(".progress .progress-bar").css("width","0")}),e(".team .ms-slide").mouseover(function(){if(!e(this).hasClass("linked")){e(this).addClass("linked");var t="undefined"==typeof e(this).data("title")?"":'data-title="'+e(this).data("title")+'"';a(e("<a href='#' "+t+" id='desc'></a>").appendTo(e(this).find(".ms-slide-bgcont")).prepend(e(this).find("img"))).trigger("mouseover")}}),e(".team .ms-slide").click(function(t){t.preventDefault();var i=e(window).width()<1200?"-475px":"-80px";e(".member-box#"+e(this).data("member-id")).css({opacity:0,top:"-200px",display:"block"}).stop().animate({opacity:1,top:i},600,"easeOutCirc",function(){e(this).find(".progress .progress-bar").filter(function(){return"0px"==e(this).css("width")}).each(function(){e(this).animate({width:e(this).data("value")+"%"},400,"easeInExpo",function(){e(this).addClass("animated")})})})}),e(".member-box a#close").click(function(t){t.preventDefault(),e(this).parents(".member-box").stop().fadeOut(200)});var l=Number.MAX_VALUE,d=Number.MIN_VALUE,f=0,h=e(".ms-slide").each(function(){f=parseInt(e(this).data("member-id")),l>f&&(l=f),f>d&&(d=f)});if(e(document).keyup(function(t){if(27==t.keyCode)e(".member-box a#close").click();else if(37==t.keyCode){var i=parseInt(e(".member-box:visible").attr("id"));--i,e(".member-box a#close").click(),e(".member-box#"+i).length||(i=d),e(".ms-slide").filter(function(){return e(this).data("member-id")==i}).click()}else if(39==t.keyCode){var i=parseInt(e(".member-box:visible").attr("id"));++i,e(".member-box a#close").click(),e(".member-box#"+i).length||(i=l),e(".ms-slide").filter(function(){return e(this).data("member-id")==i}).click()}}),e(".progress .progress-bar").each(function(){e(this).parents(".member-box").length||e(this).waypoint(function(){var t="undefined"==typeof e(this).data("value")?0:parseFloat(e(this).data("value"));e(this).animate({width:t+"%"},600,"easeInCirc")},{offset:"95%",triggerOnce:!0})}),"function"==typeof countUp){var p=0;e("ul.number-list li").each(function(){var t=e(this).children("span").attr("id","count"+p),i="undefined"==typeof e(this).data("amount")?0:parseInt(e(this).data("amount")),a=new countUp("count"+p,0,i,0,5);e(this).waypoint(function(){a.start()},{offset:"67%",triggerOnce:!0}),++p})}else e("ul.number-list").length>0&&console.log("CountUp function not found.");if(e("ul.accordion").each(function(){e(this).css("height",e(this).height()+"px"),e(this).children("li").each(function(){var t=e(this).children("span").children("a");e(t).append(e(this).hasClass("active")?'<i class="fa fa-chevron-down"></i>':'<i class="fa fa-chevron-right"></i>');var i=this;e(t).click(function(a){a.preventDefault(),e(i).hasClass("active")||(e("ul.accordion li.active article").slideUp(250,"easeOutExpo",function(){e(this).parent("li").removeClass("active"),e(this).siblings("span").children("a").children("i").removeClass("fa-chevron-down").addClass("fa-chevron-right")}),e(i).addClass("active").children("article").slideDown(250,"easeOutExpo"),e(t).children("i").removeClass("fa-chevron-right").addClass("fa-chevron-down"))})})}),e(".navbar-form i.fa").click(function(){e(this).hasClass("fa-search")?(e(".search-field").fadeIn(400).find("input").focus(),e(this).fadeOut(105,function(){e(this).siblings("i.fa-times").fadeIn(200)})):(e(".search-field").fadeOut(400),e(this).fadeOut(105,function(){e(this).siblings("i.fa-search").fadeIn(200)}))}).hover(function(){e(this).animate({color:"#6ebff3"},400)},function(){e(this).animate({color:"#868686"},400)}),e(document).keyup(function(t){27==t.keyCode&&e(".navbar-form i.fa-times").click()}),e.isFunction(e.fn.easyPieChart)){e(".chart").easyPieChart({easing:"easeOutExpo",trackColor:!1,barColor:"#ffffff",lineWidth:4,size:140,lineCap:"square",animate:2500,scaleColor:!1,onStep:function(t,i,a){e(this.el).find(".percent").text(Math.round(a)+"%")}});var p=0;e(".chart").each(function(){e(this).waypoint(function(){var t=this;setTimeout(function(){e(t).data("easyPieChart").update(e(t).data("value"))},100*p++)},{offset:"90%",triggerOnce:!0})})}else e(".chart").length&&console.log("easyPieChart function not found");e.isFunction(e.fn.revolution)&&e(".slider-wrapper").revolution({delay:9e3,startwidth:960,startheight:820,autoHeight:"on",fullScreenAlignForce:"off",onHoverStop:"on",hideThumbsOnMobile:"off",hideBulletsOnMobile:"off",hideArrowsOnMobile:"off",hideThumbsUnderResoluition:0,hideThumbs:0,hideTimerBar:"off",navigationType:"bullet",navigationArrows:"solo",navigationStyle:"round",navigationHAlign:"center",navigationVAlign:"bottom",navigationHOffset:30,navigationVOffset:30,soloArrowLeftHalign:"left",soloArrowLeftValign:"center",soloArrowLeftHOffset:20,soloArrowLeftVOffset:0,soloArrowRightHalign:"right",soloArrowRightValign:"center",soloArrowRightHOffset:20,soloArrowRightVOffset:0,touchenabled:"on",swipe_velocity:"0.7",swipe_max_touches:"1",swipe_min_touches:"1",drag_block_vertical:"false",stopAtSlide:-1,stopAfterLoops:-1,hideCaptionAtLimit:0,hideAllCaptionAtLilmit:0,hideSliderAtLimit:0,dottedOverlay:"none",fullWidth:"off",forceFullWidth:"off",fullScreen:"off",fullScreenOffsetContainer:"#topheader-to-offset",shadow:0}),e.isFunction(e.fn.parallax)&&e("#parallax").parallax({calibrateX:!0,calibrateY:!0,invertX:!0,invertY:!0,limitX:1e3,limitY:300,scalarX:20,scalarY:20,frictionX:.2,frictionY:.5}),e("#nav-begins").length?e("#nav-begins").waypoint(function(t){"down"==t&&(e(this).css("height","89px"),e(".dropdown-menu, .dropdown section").stop().fadeOut("fast"),e(".navigation").addClass("fixed").css("opacity","0").stop().animate({opacity:"1"},400))},{offset:-e(".navigation").height()}).waypoint(function(t){"up"==t&&(e(this).css("height","0"),e(".navigation").removeClass("fixed"))}):e("body").waypoint(function(t){"down"==t&&(e("#nav-ends").css("height","89px"),e(".dropdown-menu, .dropdown section").stop().fadeOut("fast"),e(".navigation").addClass("fixed").css("opacity","0").stop().animate({opacity:"1"},400))},{offset:-e(".navigation").height()}).waypoint(function(t){"up"==t&&(e("#nav-ends").css("height","0"),e(".navigation").removeClass("fixed"))},{offset:-30});var u=0;e(".dropdown").each(function(){e(this).attr("id","drop"+u++),e(this).removeClass("h").children("a").append('<i class="fa  fa-angle-down"></i>');var t=null;e(this).mouseenter(function(){var i=this;t=setTimeout(function(){e(i).find(".dropdown-menu").stop().fadeIn(200)},235)}).mouseleave(function(){clearTimeout(t),e(this).find(".dropdown-menu").stop().fadeOut(200)})}),e(".dropdown.full").each(function(){var t=e(this).find("section.dropdown-menu"),i=-(114*parseInt(e(this).attr("id").replace("drop","")));e(t).css({left:i+"px"})}),e("ul.navbar-nav").children("li").each(function(){if(e(this).hasClass("dropdown")){var t=e(this).clone();if(e(t).hasClass("full")){var i=e('<li class="sub dropdown"><i class="fa fa-chevron-right"></i><ul></ul></li>');e(e(t).children("a")[0]).find("i.fa").remove().end().prependTo(i),e(t).find("li").each(function(){e(this).find("i.fa").remove().end().appendTo(e(i).find("ul"))}),e(i).appendTo("ul.mini")}else t.addClass("sub").prepend('<i class="fa fa-chevron-right"></i>').appendTo("ul.mini").find(".dropdown-menu").removeClass("dropdown-menu").end().find("a i.fa").remove().end();t=null}else e(this).clone().appendTo("ul.mini")});var m=e(".navigation ul.mini"),v=e(".navigation");e(".navbar-toggle").click(function(){e(v).is(":animated")||(e(v).hasClass("down")?(e(v).animate({height:"-=203"},250,"easeOutExpo",function(){e(v).removeClass("down"),e(this).css("height","")}),e(m).slideUp(200,"easeOutExpo")):(e(v).animate({height:"+=203"},350,"easeOutExpo"),e(m).slideDown(400,"easeOutExpo",function(){e(v).addClass("down")})))}),e(".navbar ul.mini i.fa").on("click",document,function(t){t.preventDefault(),e(this).hasClass("fa-chevron-right")?e(this).removeClass("fa-chevron-right").addClass("fa-chevron-down").siblings("ul").slideDown(400,"easeOutExpo"):e(this).addClass("fa-chevron-right").removeClass("fa-chevron-down").siblings("ul").slideUp(400,"easeOutExpo")}),e(".tabs").each(function(){var t=e(this).children("ul.panels"),i=parseInt(e(t).height());e(t).find("li").each(function(){e(this).find("a").click(function(e){e.preventDefault()}),e(this).prepend("<span></span>"),e(this).mousedown(function(a){if(!e(this).hasClass("active")){e(".tab-content#"+e(this).parent("ul.panels").find("li.active").removeClass("active").data("tab-id")).fadeOut(400),e(".tab-content#"+e(this).addClass("active").data("tab-id")).fadeIn(400);var n=parseInt(e(".tab-content#"+e(this).addClass("active").data("tab-id")).height());e(window).width()>1199?(e("#tab-content-wrapper").css("margin-bottom","0"),e(".tab-content#"+e(this).data("tab-id")).css({height:n+"px"}),e(t).stop().animate({height:n+"px"},535,"easeOutExpo"),e(t).children(":first").stop().animate({"margin-top":Math.abs(i/2-n/2)+"px"},535,"easeOutExpo")):(e("ul.panels li:first").css("margin","0"),e("#tab-content-wrapper").stop().animate({height:n+"px",marginBottom:"65px"},535,"easeOutExpo"))}}),e(this).hasClass("active")&&e(this).removeClass("active").trigger("mousedown")})}),e(".search-wrapper input").on("focus",document,function(){e(this).parent(".search-wrapper").animate({boxShadow:"inset 2px 2px 2px 0px rgba(0,0,0,0.05)"},100,"easeOutExpo")}).on("blur",document,function(){e(this).parent(".search-wrapper").animate({boxShadow:"inset 0 0 0 0 rgba(0,0,0,0,0)"},100,"easeOutExpo")}),e(".search-wrapper i.fa").click(function(){e(this).parents("form").submit()}),e(".sidebar ul.posts li").each(function(){var t=new Array;e(this).mouseenter(function(){e(this).find(".hover").stop().fadeIn(535,"easeOutExpo"),e(this).find("span").css({display:"inline-block",opacity:0}).each(function(i,a){t.push(setTimeout(function(){e(a).stop().animate({opacity:1},435,"easeOutExpo")},100*i+135))})}).mouseleave(function(){for(var i=0;i<t.length;i++)clearTimeout(t[i]);e(this).find(".hover").stop().fadeOut(200,"easeOutExpo")})}),e.support.transition=function(){var e=document.body||document.documentElement,t=e.style,i=void 0!==t.transition||void 0!==t.WebkitTransition||void 0!==t.MozTransition||void 0!==t.MsTransition||void 0!==t.OTransition;return i}()});
?>
Онлайн: 2
Реклама