(function(a) { var b = { initialised: false, mobile: false, container: a("#portfolio-item-container"), blogContainer: a("#blog-item-container"), portfolioElAnimation: true, init: function() { if (!this.initialised) { this.initialised = true } else { return } /*this.queryLoad();*/ this.checkMobile(); this.pageHeaderTitleAlign(); this.menuHover(); this.stickyMenu(); this.mobileMenuDropdownFix(); this.navbarBtnClassToggle(); this.headerSearchFormFix(); this.headerSearchFormClose(); this.toggleBtn(); this.toggleOverlayClick(); this.fullHeight(); this.sideMenuCollapse(); this.ratings(); this.collapseArrows(); this.scrollToTopAnimation(); this.scrollToClass(); this.menuOnClick(); this.productZoomImage(); this.filterColorBg(); this.selectBox(); this.boostrapSpinner(); this.dateTimePicker(); this.tooltip(); this.popover(); this.servicesHover(); this.countTo(); this.progressBars(); this.registerKnob(); this.flickerFeed(); this.attachBg(); this.parallax(); this.twitterFeed(); this.tabLavaHover(); this.videoBg(); if (a.fn.owlCarousel) { this.owlCarousels() } if (a.fn.magnificPopup) { this.newsletterPopup(); this.lightBox() } if (a.fn.mediaelementplayer) { this.mediaElement() } if (a.fn.noUiSlider) { this.priceSlider() } var c = this; if (typeof imagesLoaded === "function") { imagesLoaded(c.container, function() { c.isotopeActivate(); c.isotopeFilter(); c.infiniteScroll(a("#portfolio-item-container"), ".portfolio-item") }); imagesLoaded(c.blogContainer, function() { c.blogMasonry(); c.infiniteScroll(a("#blog-item-container"), ".entry") }) } }, /*queryLoad:function(){var c=this;if(a.fn.queryLoader2){a("body").queryLoader2({barColor:"#2a2a2a",backgroundColor:"rgba(255, 255, 255, 0.1)",percentage:true,barHeight:2,minimumTime:0,fadeOutTime:0,onComplete:function(){a(".boss-loader-overlay").fadeOut(0,function(){a(this).remove()});c.scrollAnimations()}})}},*/ checkMobile: function() { if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { this.mobile = true } else { this.mobile = false } }, navbarBtnClassToggle: function() { a("#main-navbar-container").on("show.bs.collapse hide.bs.collapse", function(c) { a(".navbar-toggle").toggleClass("opened") }) }, toggleBtn: function() { var c = this; a(".btn-toggle").on("click", function(d) { a(this).toggleClass("opened"); if (a(this).hasClass("side-menu-btn")) { c.toggleClassSideMenu() } d.preventDefault() }) }, toggleOverlayClick: function() { var c = this; a(".boss-menu-overlay").on("click", function(d) { a(".side-menu, .btn-toggle.side-menu-btn").toggleClass("opened"); d.preventDefault() }) }, toggleClassSideMenu: function() { a(".side-menu").toggleClass("opened") }, fullHeight: function() { a(".fullheight").each(function() { var c = a(window).height(); a(this).css("height", c) }) }, pageHeaderTitleAlign: function() { if (a(".page-header-welcome.fullheight")) { var f = a(window).height(), d = a("#header").find(".navbar").outerHeight(), e = a(".page-header-welcome.fullheight").find("h1").height(), c = (f - (d + e + 150)) / 2; a(".page-header-welcome.fullheight").find("h1").css("padding-top", c) } }, menuHover: function() { if (Modernizr.mq("only all and (min-width: 768px)") && !Modernizr.touch) { if (a.fn.hoverIntent) { a("#header").find(".navbar-nav").hoverIntent({ over: function() { var c = a(this); if (c.find("ul, div").length) { c.addClass("open"); c.find(".dropdown-toggle").addClass("disabled") } }, out: function() { var c = a(this); if (c.hasClass("open")) { c.removeClass("open"); c.find(".dropdown-toggle").removeClass("disabled") } }, selector: "li", timeout: 145, interval: 55 }) } } }, mobileMenuDropdownFix: function() { if (Modernizr.mq("only all and (max-width: 767px)") || Modernizr.touch) { a(".navbar-nav").find(".dropdown-toggle").on("click", function(c) { var d = a(this).closest("li"); d.siblings().removeClass("open").find("li").removeClass("open"); d.toggleClass("open"); c.preventDefault(); c.stopPropagation() }) } }, stickyMenu: function() { if (a.fn.waypoint && a(window).width() >= 992) { a(".sticky-menu").waypoint("sticky", { stuckClass: "fixed", offset: -300 }) } }, destroyStickyMenu: function() { if (a.fn.waypoint && a(window).width() <= 991) { a(".sticky-menu").waypoint("unsticky") } }, headerSearchFormFix: function() { a("[data-target='#header-search-form']").on("click", function(c) { if (a(".sticky-menu").hasClass("fixed")) { a("#header-search-form").toggleClass("fixed") } c.preventDefault() }) }, headerSearchScrollFix: function() { if (a("#header-search-form").hasClass("fixed")) { var c = a(window).scrollTop(); if (c <= 300) { a("#header-search-form").removeClass("fixed") } } }, headerSearchFormClose: function() { a("body").on("click", function(c) { if (a("#header-search-form").hasClass("in") && !a(c.target).closest("#header-search-form").length) { a("#header-search-form").collapse("hide").removeClass("fixed"); c.preventDefault() } }) }, sideMenuCollapse: function() { a(".side-menu").find(".navbar-nav").find("a").on("click", function(c) { if (a(this).siblings("ul").length) { a(this).siblings("ul").slideToggle(400, function() { a(this).closest("li").toggleClass("open") }); c.preventDefault() } else { return } }) }, sideMenuScrollbar: function() { if (a.fn.niceScroll) { var e = a(".side-menu"), d; if (e.hasClass("navbar-default")) { d = "#7a7a7a" } else { if (e.hasClass("navbar-inverse")) { d = "#9a9a9a" } else { d = "#505050" } } if (e.data("railalign")) { var c = e.data("railalign") } a(".side-menu-wrapper").niceScroll({ zindex: 9999, autohidemode: true, background: "rgba(0,0,0, 0.03)", cursorcolor: d, cursorwidth: "6px", cursorborder: "1px solid transparent", cursorborderradius: "4px", railalign: c }) } }, collapseArrows: function() { a(".category-widget-btn").on("click", function(d) { var c = a(this), f = c.closest("li"); if (f.hasClass("open")) { f.find("ul").slideUp(400, function() { f.removeClass("open") }) } else { f.find("ul").slideDown(400, function() { f.addClass("open") }) } d.preventDefault() }) }, twitterFeed: function() { if (a.fn.tweet && a(".twitter-feed-widget").length) { a(".twitter-feed-widget").tweet({ modpath: "./js/twitter/", avatar_size: "", count: 3, username: "eonythemes", loading_text: "searching twitter...", join_text: "", retweets: false, template: '
{text}{time}
' }) } }, tabLavaHover: function() { if (a.fn.lavalamp) { a(".nav-tabs-lava").lavalamp({ setOnClick: true, duration: 500, autoUpdate: true }); a(".nav-tabs-border").lavalamp({ setOnClick: true, duration: 300, autoUpdate: true }) } }, ratings: function() { a.each(a(".ratings-result"), function() { var c = a(this), e = c.closest(".ratings").width(), f = a(this).data("result"), d = (e / 100) * f; a(this).css("width", d) }) }, owlCarousels: function() { var c = this; a(".owl-carousel.shop-arrivals-carousel-sm").owlCarousel({ loop: false, margin: 20, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 1 }, 480: { items: 2 }, 768: { items: 3 } } }); a(".owl-carousel.shop-popular-carousel-lg").owlCarousel({ loop: false, margin: 20, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 1 }, 480: { items: 2 }, 768: { items: 3 }, 992: { items: 4 } } }); a(".owl-carousel.shop-trend-carousel-lg").owlCarousel({ loop: false, margin: 20, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 1 }, 480: { items: 2 }, 768: { items: 3 }, 992: { items: 4 } } }); a(".owl-carousel.shop-blog-carousel-lg").owlCarousel({ loop: false, margin: 20, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 1 }, 480: { items: 2 }, 768: { items: 3 }, 992: { items: 4 } } }); a(".owl-carousel.shop-latest-carousel").owlCarousel({ loop: false, margin: 20, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 1 }, 480: { items: 2 }, 768: { items: 3 }, 992: { items: 4 }, 1200: { items: 5 } } }); a(".owl-carousel.shop-popular-carousel").owlCarousel({ loop: false, margin: 20, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 1 }, 480: { items: 2 }, 768: { items: 3 }, 992: { items: 4 }, 1200: { items: 5 } } }); a(".owl-carousel.shop-latest-carousel-sm").owlCarousel({ loop: false, margin: 30, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 1 }, 480: { items: 2 }, 768: { items: 3 }, 992: { items: 4 } } }); a(".owl-carousel.shop-popular-carousel-sm").owlCarousel({ loop: false, margin: 30, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 1 }, 480: { items: 2 }, 768: { items: 3 }, 992: { items: 4 } } }); a(".owl-carousel.team-carousel-index9").owlCarousel({ loop: false, margin: 25, responsiveClass: true, nav: true, navText: ['', ''], dots: false, responsive: { 0: { items: 1 }, 480: { items: 2 }, 768: { items: 3 }, 992: { items: 4 } } }); a(".owl-carousel.our-clients-smaller").owlCarousel({ loop: false, margin: 10, responsiveClass: true, nav: false, navText: ['', ''], dots: true, responsive: { 0: { items: 2 }, 480: { items: 3 }, 768: { items: 4 }, 992: { items: 3 }, 1200: { items: 3 } } }); a(".owl-carousel.portfolio-showcase-carousel").owlCarousel({ loop: true, margin: 0, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 4000, responsive: { 0: { items: 2 }, 480: { items: 2 }, 768: { items: 3 }, 992: { items: 4 }, 1500: { items: 4 } } }); a(".owl-carousel.our-clients-small").owlCarousel({ loop: false, margin: 10, responsiveClass: true, nav: false, navText: ['', ''], dots: false, responsive: { 0: { items: 2 }, 480: { items: 3 }, 768: { items: 4 }, 992: { items: 3 }, 1200: { items: 3 } } }); a(".owl-carousel.home-blogposts-carousel").owlCarousel({ loop: true, margin: 15, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 15000, responsive: { 0: { items: 1 }, 480: { items: 2 }, 768: { items: 2 }, 992: { items: 3 } } }); a(".owl-carousel.home-clients-carousel").owlCarousel({ loop: true, margin: 10, responsiveClass: true, nav: false, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 4000, responsive: { 0: { items: 2 }, 480: { items: 3 }, 768: { items: 4 }, 992: { items: 5 } } }); a(".owl-carousel.home-team-carousel").owlCarousel({ loop: true, margin: 20, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 1 }, 480: { items: 2 }, 768: { items: 3 }, 992: { items: 4 }, 1200: { items: 5 } } }); a(".owl-carousel.our-clients").owlCarousel({ loop: false, margin: 10, responsiveClass: true, nav: true, navText: ['', ''], dots: false, responsive: { 0: { items: 2 }, 480: { items: 3 }, 768: { items: 4 }, 992: { items: 5 }, 1200: { items: 6 } } }); a(".owl-carousel.magazine-top-carousel-lg").owlCarousel({ loop: true, margin: 0, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 12000, responsive: { 0: { items: 1 }, 600: { items: 2 }, 992: { items: 3 }, 1200: { items: 4 } } }); a(".owl-carousel.magazine-top-carousel").owlCarousel({ loop: true, margin: 0, responsiveClass: true, nav: false, navText: ['', ''], dots: true, autoplay: true, autoplayTimeout: 12000, responsive: { 0: { items: 1 }, 600: { items: 2 }, 992: { items: 3 } } }); a(".owl-carousel.mpopular-posts").owlCarousel({ loop: true, margin: 30, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 1 }, 600: { items: 2 }, 992: { items: 3 } } }); a(".owl-carousel.mdontmiss-posts").owlCarousel({ loop: true, margin: 30, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 13000, responsive: { 0: { items: 1 }, 600: { items: 2 }, 992: { items: 3 } } }); a(".owl-carousel.mbigger-posts").owlCarousel({ loop: true, margin: 0, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 15000, items: 1 }); a(".owl-carousel.mmostrated-posts").owlCarousel({ loop: true, margin: 30, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 13000, responsive: { 0: { items: 1 }, 600: { items: 2 }, 992: { items: 3 } } }); a(".owl-carousel.home-blog-carousel").owlCarousel({ loop: true, margin: 0, responsiveClass: true, nav: false, navText: ['', ''], dots: true, autoplay: true, autoplayTimeout: 12000, responsive: { 0: { items: 1 }, 600: { items: 2 }, 992: { items: 3 }, 1500: { items: 4 } } }); a(".owl-carousel.team-member-carousel").owlCarousel({ loop: false, margin: 25, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 1 }, 480: { items: 2 }, 768: { items: 3 }, 992: { items: 4 }, 1200: { items: 5 } } }); a(".owl-carousel.team-member-carousel-sm").owlCarousel({ loop: false, margin: 20, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 1 }, 480: { items: 2 }, 768: { items: 3 }, 992: { items: 4 } } }); a(".owl-carousel.aboutus-slider").owlCarousel({ loop: true, margin: 0, responsiveClass: true, nav: false, navText: ['', ''], dots: true, autoplay: true, autoplayTimeout: 5000, items: 1 }); a(".owl-carousel.aboutus-carousel").owlCarousel({ loop: true, margin: 0, stagePadding: 50, responsiveClass: true, nav: false, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 1 }, 480: { items: 2 }, 992: { items: 3, stagePadding: 100 } } }); a(".owl-carousel.testimonial-slider").owlCarousel({ loop: true, autoplay: true, autoplayTimeout: 6000, margin: 0, responsiveClass: true, nav: false, navText: ['', ''], dots: true, items: 1 }); a(".owl-carousel.testimonial-carousel").owlCarousel({ loop: true, margin: 10, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 9000, responsive: { 0: { items: 1 }, 992: { items: 2 } } }); a(".owl-carousel.testimonial-carousel2").owlCarousel({ loop: true, margin: 10, responsiveClass: true, nav: false, navText: ['', ''], dots: true, autoplay: true, autoplayTimeout: 9000, responsive: { 0: { items: 1 }, 992: { items: 2 } } }); a(".owl-carousel.product-gallery-lg").owlCarousel({ loop: false, margin: 6, responsiveClass: true, nav: false, dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 3 }, 480: { items: 4 }, 768: { items: 5 }, 992: { items: 6 } } }); a(".owl-carousel.related-products-carousel").owlCarousel({ loop: false, margin: 20, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 1 }, 480: { items: 2 }, 768: { items: 3 }, 992: { items: 4 }, 1200: { items: 5 } } }); a(".owl-carousel.product-gallery-sm").owlCarousel({ loop: false, margin: 6, responsiveClass: true, nav: false, dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 3 }, 480: { items: 4 }, 768: { items: 4 }, 1200: { items: 5 } } }); a(".owl-carousel.related-products-carousel2").owlCarousel({ loop: false, margin: 20, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 1 }, 480: { items: 2 }, 768: { items: 3 }, 992: { items: 3 }, 1200: { items: 4 } } }); a(".owl-carousel.portfolio-related-carousel").owlCarousel({ loop: false, margin: 30, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: false, autoplayTimeout: 5000, responsive: { 0: { items: 1, }, 480: { items: 2 }, 768: { items: 3, }, 992: { items: 4, } } }); a(".owl-carousel.portfolio-star-carousel").owlCarousel({ loop: true, margin: 30, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 5000, responsive: { 0: { items: 1, }, 480: { items: 2 }, 768: { items: 3, }, 992: { items: 4, } } }); a(".owl-carousel.pt_magazine").owlCarousel({ loop: true, margin: 0, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 5000, responsive: { 0: { items: 1, }, 480: { items: 2 }, 768: { items: 3, }, 992: { items: 3, } } }); a(".owl-carousel.portfolio-other-carousel").owlCarousel({ loop: false, margin: 30, responsiveClass: true, nav: true, navText: ['', ''], dots: false, responsive: { 0: { items: 1, }, 480: { items: 2 }, 768: { items: 3, }, 992: { items: 4, }, 1200: { items: 5, } } }); a(".owl-carousel.portfolio-similiar-carousel").owlCarousel({ loop: false, margin: 30, responsiveClass: true, nav: true, navText: ['', ''], dots: false, responsive: { 0: { items: 1, }, 480: { items: 2 }, 768: { items: 3, }, 992: { items: 4, } } }); a(".owl-carousel.portfolio-popular-carousel").owlCarousel({ loop: false, margin: 2, responsiveClass: true, nav: true, navText: ['', ''], dots: false, responsive: { 0: { items: 1, }, 480: { items: 2 }, 768: { items: 3, }, 992: { items: 4, } } }); a(".owl-carousel.portfolio-rated-carousel").owlCarousel({ loop: false, margin: 15, responsiveClass: true, nav: true, navText: ['', ''], dots: false, responsive: { 0: { items: 1, }, 480: { items: 2 }, 768: { items: 3, }, 992: { items: 4, } } }); a(".owl-carousel.portfolio-liked-carousel").owlCarousel({ loop: false, margin: 0, responsiveClass: true, nav: true, navText: ['', ''], dots: false, responsive: { 0: { items: 1, }, 480: { items: 2 }, 768: { items: 3, }, 992: { items: 4, } } }); a(".owl-carousel.our-partners").owlCarousel({ loop: true, autoplay: true, autoplayTimeout: 4000, margin: 10, responsiveClass: true, nav: true, navText: ['', ''], dots: false, responsive: { 0: { items: 2, }, 480: { items: 2 }, 768: { items: 4, }, 992: { items: 4, }, 1200: { items: 5, } } }); a(".owl-carousel.our-trainers").owlCarousel({ loop: true, autoplay: true, autoplayTimeout: 4000, margin: 20, responsiveClass: true, nav: true, navText: ['', ''], dots: false, responsive: { 0: { items: 1, }, 480: { items: 2 }, 768: { items: 3, }, 992: { items: 3, }, 1200: { items: 4, } } }); a(".owl-carousel.branch-news").owlCarousel({ loop: true, autoplay: true, autoplayTimeout: 8000, margin: 10, responsiveClass: true, nav: true, navText: ['', ''], dots: false, responsive: { 0: { items: 1, }, 480: { items: 1 }, 768: { items: 1, }, 992: { items: 1, }, 1200: { items: 1, } } }); a(".owl-carousel.blog-related-carousel").owlCarousel({ loop: false, margin: 15, responsiveClass: true, nav: true, navText: ['', ''], dots: false, responsive: { 0: { items: 1, }, 480: { items: 2 }, 1200: { items: 3, } } }); a(".owl-carousel.wishlist-suggestion-carousel").owlCarousel({ loop: false, margin: 20, responsiveClass: true, nav: true, navText: ['', ''], dots: false, autoplay: true, autoplayTimeout: 10000, responsive: { 0: { items: 1 }, 480: { items: 2 }, 768: { items: 3 }, 992: { items: 4 }, 1200: { items: 5 } } }) }, scrollTopBtnAppear: function() { var d = a(window).scrollTop(), c = a("#scroll-top"); if (d >= 300) { c.addClass("fixed") } else { c.removeClass("fixed") } }, scrollToAnimation: function(g, f, c) { var h = a(this).attr("href"), j = false; if (!a(h).length) { if (h === "#header" || h === "#top" || h === "#wrapper") { i = 0; j = true } else { return } } else { var d = a(h), i = f ? (d.offset().top + f) : d.offset().top } if (h || j) { a("html, body").animate({ scrollTop: i }, g || 1200); c.preventDefault() } }, scrollToTopAnimation: function() { var c = this; a("#scroll-top").on("click", function(d) { c.scrollToAnimation.call(this, 1200, 0, d) }) }, scrollToClass: function() { var c = this; a(".scroll-btn, .section-btn, .scrollto").on("click", function(d) { var f = a(this).data("offset"); c.scrollToAnimation.call(this, 1200, f, d) }) }, menuOnClick: function() { var c = this; a(".navbar-nav").find("a").on("click", function(d) { var f = a(this).attr("href"); if (f.indexOf("#") === -1 || !a(f).length) { return } c.scrollToAnimation.call(this, 1200, 0, d) }) }, priceSlider: function() { a("#price-range").noUiSlider({ range: [0, 1000], start: [100, 900], handles: 2, connect: true, serialization: { to: [a("#price-range-low"), a("#price-range-high")] } }) }, filterColorBg: function() { a(".filter-color-box").each(function() { var c = a(this), d = c.data("bgcolor"); c.css("background-color", d) }) }, productZoomImage: function() { var c = this; if (a.fn.elevateZoom) { a("#product-zoom").elevateZoom({ responsive: true, zoomType: "inner", borderColour: "#e1e1e1", zoomWindowPosition: 1, zoomWindowOffetx: 30, cursor: "crosshair", zoomWindowFadeIn: 400, zoomWindowFadeOut: 250, lensBorderSize: 3, lensOpacity: 1, lensColour: "rgba(255, 255, 255, 0.5)", lensShape: "square", lensSize: 200, scrollZoom: true }); a(".product-gallery").find("a").on("click", function(f) { var g = a("#product-zoom").data("elevateZoom"), h = a(this).data("image"), d = a(this).data("zoom-image"); g.swaptheimage(h, d); f.preventDefault() }) } }, selectBox: function() { if (a.fn.selectbox) { a(".selectbox").selectbox({ effect: "fade" }) } }, boostrapSpinner: function() { if (a.fn.TouchSpin) { a(".vertical-spinner").TouchSpin({ verticalbuttons: true }); a(".horizontal-spinner").TouchSpin() } }, dateTimePicker: function() { if (a.fn.datetimepicker) { a(".form-datetime").datetimepicker({ weekStart: 1, todayBtn: 1, autoclose: 1, todayHighlight: 1, startView: 2, forceParse: 0, showMeridian: 1 }); a(".form-date").datetimepicker({ weekStart: 1, todayBtn: 1, autoclose: 1, todayHighlight: 1, startView: 2, minView: 2, forceParse: 0 }); a(".form-time").datetimepicker({ weekStart: 1, todayBtn: 1, autoclose: 1, todayHighlight: 1, startView: 1, minView: 0, maxView: 1, forceParse: 0 }) } }, tooltip: function() { if (a.fn.tooltip) { a(".add-tooltip").tooltip() } }, popover: function() { if (a.fn.popover) { a(".add-popover").popover({ trigger: "focus" }) } }, servicesHover: function() { a(".service-hover").on("mouseover", function() { a.each(a(this).find(".service-icon, .service-title, p"), function() { var c = a(this).data("hover-anim"); a(this).addClass("animated " + c) }) }).on("mouseleave", function() { a.each(a(this).find(".service-icon, .service-title, p"), function() { var c = a(this).data("hover-anim"); a(this).removeClass("animated " + c) }) }) }, countTo: function() { if (a.fn.countTo) { if (a.fn.waypoint) { a(".count").waypoint(function() { a(this).countTo() }, { offset: function() { return (a(window).height() - 100) }, triggerOnce: true }) } else { a(".count").countTo() } } else { a(".count").each(function() { var c = a(this), d = c.data("to"); c.text(d) }) } }, newsletterPopup: function() { if (document.getElementById("newsletter-popup-form")) { jQuery.magnificPopup.open({ items: { src: "#newsletter-popup-form" }, type: "inline" }, 0) } }, lightBox: function() { a(".popup-gallery").magnificPopup({ delegate: ".zoom-item", type: "image", closeOnContentClick: false, closeBtnInside: false, mainClass: "mfp-with-zoom mfp-img-mobile", image: { verticalFit: true, titleSrc: function(c) { return c.el.attr("title") + '  source →' } }, gallery: { enabled: true }, zoom: { enabled: true, duration: 400, opener: function(c) { return c.find("img") } } }); a(".popup-image").magnificPopup({ type: "image", closeOnContentClick: true, closeBtnInside: false, fixedContentPos: true, mainClass: "mfp-with-zoom mfp-img-mobile", image: { verticalFit: true }, zoom: { enabled: true, duration: 400 } }); a(".popup-iframe").magnificPopup({ disableOn: 700, type: "iframe", mainClass: "mfp-fade", removalDelay: 160, preloader: false, fixedContentPos: false }) }, videoBg: function() { if (!this.mobile) { if (a.fn.mb_YTPlayer) { a(".player").mb_YTPlayer() } else { return } } }, progressBars: function() { var c = this; if (a.fn.waypoint) { a(".progress-animate").waypoint(function() { if (!a(this).hasClass("circle-progress")) { var d = a(this), f = a(this).data("width"), e = d.find(".progress-text, .progress-tooltip"); d.css({ width: f + "%" }, 400); setTimeout(function() { e.fadeIn(400, function() { d.removeClass("progress-animate") }) }, 100) } else { c.animateKnob() } }, { offset: function() { return (a(window).height() - 10) } }) } else { a(".progress-animate").each(function() { var d = a(this), f = a(this).data("width"), e = d.find(".progress-text"); d.css({ width: f + "%" }, 400); e.fadeIn(500) }) } }, registerKnob: function() { if (a.fn.knob) { a(".knob").knob({ bgColor: "#eaeaea" }); a(".knob.whitebg").knob({ bgColor: "#fff" }) } }, animateKnob: function() { if (a.fn.knob) { a(".knob").each(function() { var c = a(this), f = c.closest(".progress-animate"), e = c.data("animateto"), d = c.data("animatespeed"); c.animate({ value: e }, { duration: d, easing: "swing", progress: function() { c.val(Math.round(this.value)).trigger("change") }, complete: function() { f.removeClass("progress-animate") } }) }) } }, mediaElement: function() { a("video, audio").mediaelementplayer() }, scrollAnimations: function() { if (typeof WOW === "function") { new WOW({ boxClass: "wow", animateClass: "animated", offset: 0 }).init() } }, flickerFeed: function() { if (a.fn.jflickrfeed) { a("ul.flickr-widget-two").jflickrfeed({ limit: 8, qstrings: { id: "54297118@N03" }, itemTemplate: '
  • {{title}}
  • ' }); a("ul.flickr-widget-three").jflickrfeed({ limit: 15, qstrings: { id: "54297118@N03" }, itemTemplate: '
  • {{title}}
  • ' }) } }, attachBg: function() { var c = a("[data-bgattach]"); a.each(c, function() { if (a(this).data("bgattach")) { a(this).css("background-image", "url(" + a(this).data("bgattach") + ")") } }) }, parallax: function() { if (!this.mobile && typeof skrollr === "object") { skrollr.init({ forceHeight: false }) } if (this.mobile) { a(".parallax, .parallax-fixed").css("background-attachment", "initial") } }, isotopeActivate: function() { if (a.fn.isotope) { var c = this.container, d = c.data("layoutmode"); c.isotope({ itemSelector: ".portfolio-item", layoutMode: (d) ? d : "masonry", transitionDuration: 0 }) } }, isotopeReinit: function() { if (a.fn.isotope) { this.container.isotope("destroy"); this.isotopeActivate() } }, isotopeFilter: function() { var d = this, c = a("#portfolio-filter"); c.find("a").on("click", function(g) { var f = a(this), h = f.attr("data-filter"); c.find(".active").removeClass("active"); d.container.isotope({ filter: h, transitionDuration: "0.8s" }); f.closest("li").addClass("active"); g.preventDefault() }) }, blogMasonry: function() { var c = this.blogContainer; c.isotope({ itemSelector: ".entry", lasyoutMode: "fitRows", masonry: { gutter: 15 }, transitionDuration: 0 }) }, blogMasonryRefresh: function() { this.blogContainer.isotope("layout") }, infiniteScroll: function(c, d) { if (a.fn.infinitescroll) { c.infinitescroll({ navSelector: "#page-nav", nextSelector: "#page-nav a:first", itemSelector: d, loading: { msgText: "Loading Posts...", finishedMsg: "No more post to load.", img: "//eonythemes.com/themes/t/images/load.GIF" } }, function(e) { c.isotope("appended", a(e)).isotope("layout") }); if (a("#infinite-trigger").length) { a(window).unbind(".infscr"); a("#infinite-trigger").on("click", function(f) { c.infinitescroll("retrieve"); f.preventDefault() }); a(document).ajaxError(function(f, h, g) { if (h.status == 404) { a("a#infinite-trigger").addClass("disabled") } }) } } } }; b.init(); a(window).on("load", function() { b.sideMenuScrollbar(); if (b.blogContainer.length) { b.blogMasonryRefresh() } }); a(window).on("scroll", function() { b.scrollTopBtnAppear(); b.headerSearchScrollFix() }); if (a.event.special.debouncedresize) { a(window).on("debouncedresize", function() { b.fullHeight(); b.destroyStickyMenu() }) } else { a(window).on("resize", function() { b.fullHeight(); b.destroyStickyMenu() }) } })(jQuery); var wow = new WOW({ boxClass: 'wow', // animated element css class (default is wow) animateClass: 'animated', // animation css class (default is animated) offset: 0, // distance to the element when triggering the animation (default is 0) mobile: true, // trigger animations on mobile devices (default is true) live: true, // act on asynchronously loaded content (default is true) callback: function(box) { // the callback is fired every time an animation is started // the argument that is passed in is the DOM node being animated }, scrollContainer: null // optional scroll container selector, otherwise use window }); wow.init(); if ($('#owl-slider-hero').length) { $("#owl-slider-hero").owlCarousel({ navigation: false, // Show next and prev buttons slideSpeed: 2000, paginationSpeed: 400, autoPlay: 5000, singleItem: true // "singleItem:true" is a shortcut for: // items : 1, // itemsDesktop : false, // itemsDesktopSmall : false, // itemsTablet: false, // itemsMobile : false }); $('.slider-navigation').find('li').on('click', function() { $('.slider-navigation li').removeClass('active') $(this).addClass('active'); var a = $(this).index(); $("#owl-slider-hero").trigger('owl.goTo', a) }); setInterval(function() { var i = $('#owl-slider-hero .owl-pagination .owl-page.active ').index(); $('.slider-navigation li').removeClass('active') $('.slider-navigation li').eq(i).addClass('active'); }, 1000); }