/*! * Spectrum v1.2.0 (http://themes.startbootstrap.com/spectrum-v1.2.0) * Copyright 2013-2015 Start Bootstrap Themes * To use this theme you must have a license purchased at WrapBootstrap (https://wrapbootstrap.com) */ jQuery(document).ready(function(){var n={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return n.Android()||n.BlackBerry()||n.iOS()||n.Opera()||n.Windows()}};n.any()||$(window).stellar({horizontalScrolling:!1,verticalOffset:0,horizontalOffset:0,hideDistantElements:!1});$(".carousel").carousel({interval:8e3,pause:"false"});$("#about-1-carousel").owlCarousel({items:2});$("#services - 1 - carousel").owlCarousel({items:4,itemsDesktop:[1199,3],itemsDesktopSmall:[979,3]});$("#about-3-carousel").owlCarousel({items:1,itemsDesktop:[1199,1],itemsDesktopSmall:[979,3]});$("#clients-carousel").owlCarousel({items:5,itemsDesktop:[1199,3],itemsDesktopSmall:[979,3]});$("#portfolio-2-carousel").owlCarousel({singleItem:!0,navigation:!0,navigationText:["<\/i>","<\/i>"],slideSpeed:400});$(".project-details-carousel").owlCarousel({navigation:!0,slideSpeed:300,paginationSpeed:400,singleItem:!0,navigationText:["<\/i> Prev","Next <\/i>"]});$(".container").fitVids();$(".gallery-item").magnificPopup({type:"image",gallery:{enabled:!0}});$(".popup-youtube, .popup-vimeo, .popup-gmaps").magnificPopup({type:"iframe"});$("body").on("input propertychange",".floating-label-form-group",function(n){$(this).toggleClass("floating-label-form-group-with-value",!!$(n.target).val())}).on("focus",".floating-label-form-group",function(){$(this).addClass("floating-label-form-group-with-focus")}).on("blur",".floating-label-form-group",function(){$(this).removeClass("floating-label-form-group-with-focus")})});$(window).load(function(){var n=$(".isotope").isotope({itemSelector:".portfolio-item"});$("#filters").on("click","button",function(){var t=$(this).attr("data-filter");n.isotope({filter:t})});$("#filters").each(function(n,t){var i=$(t);i.on("click","button",function(){i.find(".active").removeClass("active");$(this).addClass("active")})})});jQuery(document).ready(function(){var n={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return n.Android()||n.BlackBerry()||n.iOS()||n.Opera()||n.Windows()}};n.any()&&$(".navbar-collapse a").click(function(){$(".navbar-collapse").collapse("toggle")});$(".page-scroll a").bind("click",function(n){var t=$(this);$("html, body").stop().animate({scrollTop:$(t.attr("href")).offset().top},1500,"easeInOutExpo");n.preventDefault()})});$(window).scroll(function(){$(".navbar").offset().top>50?$(".navbar-fixed-top").addClass("top-nav-collapse"):$(".navbar-fixed-top").removeClass("top-nav-collapse")});