$(function(){var s=function(s,e,a,i){var t=$(window).width(),d=$("#"+s),l=d.find(e),r=$("#"+s+" "+a),o=d.find(".slider-arrows"),h=$("#"+s+" "+a).length;if(t<=i){var n=t*(h+1);d.addClass("gs-responsive-slider"),l.css("width",n),r.addClass("gs-rs-sliderItems").each(function(s,e){$(e).css("width",t),$(e).attr("data-id",s),0==s&&$(e).addClass("active")}),$("#"+s+" .slider-arrows .left, #"+s+" .slider-arrows .right").off().on("tap click",function(s){var e=$(s.currentTarget),i=e.hasClass("left"),t=$(window).width(),n=d.find(a+".active"),c=n.data("id"),v=h-1;(i&&n.data("id")>0||!i&&n.data("id")0?o.addClass("showLeft"):o.removeClass("showLeft"),n.data("id")==v?o.addClass("hideRight"):o.removeClass("hideRight")}),o.show()}else l.css("width","auto"),d.removeClass("gs-responsive-slider"),l.css("left: initial !important;"),r.removeClass("gs-rs-sliderItems").removeClass("active").attr("style",""),o.removeClass("showLeft").removeClass("hideRight"),o.hide()};s("homethumb","ul","li",414),s("buildresponsiveslidesthumbtable","wrapper","article",992),$(window).resize(function(){s("homethumb","ul","li",414),s("buildresponsiveslidesthumbtable",".wrapper","article",992),$("#homethumb ul").add("#buildresponsiveslidesthumbtable .wrapper").css("left",0)})}); window.onload=function(){var e=document.getElementById("response-video"),t=document.getElementById("playpause"),n=document.getElementById("mute"),u=document.getElementById("full-screen"),o=document.getElementById("seek-bar"),s=document.getElementById("volume-bar");t.addEventListener("click",function(){1==e.paused?(e.play(),$(".play-button").hide(),$(".play-button").css("opacity","0"),$(".pause-button").show(),$(".pause-button").css("opacity","1")):(e.pause(),$(".play-button").show(),$(".play-button").css("opacity","1"),$(".pause-button").hide(),$(".pause-button").css("opacity","0"))}),n.addEventListener("click",function(){0==e.muted?(e.muted=!0,n.innerHTML="Unmute"):(e.muted=!1,n.innerHTML="Mute")}),u.addEventListener("click",function(){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()}),o.addEventListener("click",function(t){var n=e.duration*((t.pageX-$(o).offset().left)/$(o).width());e.currentTime=n}),e.addEventListener("timeupdate",function(){var t=100/e.duration*e.currentTime;$(".homevid-current").width(t*$(o).width()/100),$(o).attr("value",t),t>=99.9&&($(".play-button").show(),$(".play-button").css("opacity","1"),$(".pause-button").hide(),$(".pause-button").css("opacity","0"))}),o.addEventListener("mousedown",function(){e.pause()}),o.addEventListener("mouseup",function(){e.play()}),s.addEventListener("change",function(){e.volume=s.value}),$(".videoContainer").hover(function(){$(".control").stop().fadeIn(),$(".caption").stop().fadeIn()})}; !function(e){"use strict";e(window).load(function(){e(window).trigger("scroll")}),e(document).ready(function(){e(window).trigger("resize"),js_height_init()}),e(window).resize(function(){s(),js_height_init(),e(".video-player").length&&e(".video-player").each(function(){e(this).mb_YTPlayer()})});var t;/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)?(t=!0,e("html").addClass("mobile")):(t=!1,e("html").addClass("no-mobile"));var i;i=!!/mozilla/.test(navigator.userAgent);var a;a=!!/safari/.test(navigator.userAgent),"ontouchstart"in document.documentElement||(document.documentElement.className+=" no-touch");var n=e(".home-section, .page-section, .small-section, .split-section");n.each(function(t){e(this).attr("data-background")&&e(this).css("background-image","url("+e(this).data("background")+")")}),e(window).scroll(function(){var t=e(this).scrollTop();t>100?e(".btn-get-started").fadeIn(800):e(".btn-get-started").fadeOut(),t>500?e(".local-scroll").fadeIn(800):e(".local-scroll").fadeOut()}),e(window).load(function(){var t=e(".screenshot-filter > li > a"),i=e(".screenshot-items");i.isotope({filter:".websitebuilder",itemSelector:".screenshot-item",layoutMode:"fitRows"}),t.on("click",function(){t.removeClass("active"),e(this).addClass("active");var a=e(this).attr("data-filter");return i.isotope({filter:a}),!1})});var o=(e(".mobile-nav"),e(".desktop-nav"));function s(){e(".mobile-on .desktop-nav > ul").css("max-height",e(window).height()-e(".main-nav").height()-20+"px"),e(window).width()<1024?e(".main-nav").addClass("mobile-on"):e(window).width()>1024&&(e(".main-nav").removeClass("mobile-on"),o.show())}}(jQuery);function js_height_init(){!function(e){e(".js-height-full").height(e(window).height()),e(".js-height-parent").each(function(){e(this).height(e(this).parent().first().height())})}(jQuery)}$(document).ready(function(){$(window).width()<1025&&($("#homethumb li").click(function(e){$(".btn-theme-prev").hide(),$(this).children(".btn-theme-prev").show();var t=($(this).outerWidth()-$(".btn-theme-prev").outerWidth())/2,i=($(this).outerHeight()-$(".btn-theme-prev").outerHeight())/2;$(".btn-theme-prev").css({left:t+"px","margin-left":"0",top:i+"px","margin-top":"0"}),e.stopPropagation()}),$("body").on("click touchstart",function(e){var t=$("#homethumb li");t.is(e.target)||0!==t.has(e.target).length||$(".btn-theme-prev").hide()}));var e=0;$(".tt-nav-tab-item").on("click",function(){var i=$(this);if(e||i.hasClass("active"))return!1;e=1,i.closest(".tt-nav-tab").find(".tt-nav-tab-item").removeClass("active"),i.addClass("active");var a=i.parent().parent().find(".tt-nav-tab-item").index(this);i.parents(".tt-tab-nav-wrapper").find(".tt-tab-select select option:eq("+a+")").prop("selected",!0),i.closest(".tt-tab-wrapper").find(".tt-tab-info:visible").fadeOut(500,function(){var n=i.closest(".tt-tab-wrapper").find(".tt-tab-info").eq(a);n.css("display","block").css("opacity","0"),t(n.parents(".tt-tab-wrapper")),n.animate({opacity:1}),e=0})}),$(".tt-tab-select select").on("change",function(){var i=$(this);if(e)return!1;e=1;var a=i.find("option").index($(this).find("option:selected"));i.closest(".tt-tab-nav-wrapper").find(".tt-nav-tab-item").removeClass("active"),i.closest(".tt-tab-nav-wrapper").find(".tt-nav-tab-item:eq("+a+")").addClass("active"),i.closest(".tt-tab-wrapper").find(".tt-tab-info:visible").fadeOut(500,function(){var n=i.closest(".tt-tab-wrapper").find(".tt-tab-info").eq(a);n.css("display","block").css("opacity","0"),t(n.parents(".tt-tab-wrapper")),n.animate({opacity:1}),e=0})});function t(e){e.find(".swiper-container").each(function(){var e=swipers["swiper-"+$(this).attr("id")];$(this);e.reInit()})}$("#section2-slider").owlCarousel({navigation:!0,autoPlay:1e4,slideSpeed:300,paginationSpeed:400,singleItem:!0,items:1,itemsMobile:[479,1],navigationText:["",""],afterAction:function(){var e=$("#section2-slider .owl-pagination .owl-page.active").index();"0"==e?($("#section2-slider .owl-next").show(),$("#section2-slider .owl-prev").hide()):($("#section2-slider .owl-next").hide(),$("#section2-slider .owl-prev").show())}}),$("#technology-carousel").owlCarousel({navigation:!0,pagination:!1,autoPlay:1e4,slideSpeed:300,paginationSpeed:400,singleItem:!0,items:1,itemsMobile:[479,1],navigationText:["",""]}),$("#tools-business-carousel").owlCarousel({navigation:!0,pagination:!1,autoPlay:1e4,slideSpeed:300,paginationSpeed:400,singleItem:!0,items:1,itemsMobile:[479,1],navigationText:["",""]}),$("#tools-stress-free-carousel").owlCarousel({navigation:!0,pagination:!1,autoPlay:1e4,slideSpeed:300,paginationSpeed:400,singleItem:!0,items:1,itemsMobile:[479,1],navigationText:["",""]}),$("#open-modal-video").on("click",function(e){var t=document.getElementById("response-video");$(".responsive-video-wrapper, #video-controls").show(),$(".homevid-close").show(),$(".homevid-close").css("opacity","1"),$("#video-controls").css("opacity","1"),$("#section3").css("z-index","203"),$(".local-scroll").css("z-index","200"),t.play()}),$(".homevid-close").on("click",function(e){var t=document.getElementById("response-video");$(".responsive-video-wrapper, #video-controls").hide(),$(".homevid-close").css("opacity","0"),$("#video-controls").css("opacity","0"),$(".homevid-close").hide(),$("#section3").css("z-index","200"),$(".local-scroll").css("z-index","998"),t.pause()}),$("#features-iphone-slider.flex-slider-container .flexslider").flexslider({animation:"slide",slideshowSpeed:5e3,animationSpeed:600,namespace:"flex-",pauseOnAction:!1,pauseOnHover:!1,controlNav:!1,directionNav:!1,direction:"horizontal",prevText:'',nextText:'',smoothHeight:!1,animationLoop:!0,slideshow:!0,easing:"swing",controlsContainer:"#features-iphone-slider.flex-slider-container"}),$("#features1-gallery").owlCarousel({navigation:!0,slideSpeed:300,paginationSpeed:400,singleItem:!0,navigationText:["",""]}),$(".next-section").on("click",function(e){e.preventDefault();var t=$("#section2");$(window).width()<767?$("html, body").animate({scrollTop:t.offset().top-55},1e3):$("html, body").animate({scrollTop:t.offset().top},1e3)}),$(".video-player").length&&$(".video-player").each(function(){$(this).mb_YTPlayer()})}); !function(o){o(window).resize(function(){n()});function n(){var n=o(window).width(),t=o(window).height();o(".section-wrapper").each(function(){var i=o(this);i.css("height",t+"px"),i.find(".section-content").css("overflow","hidden"),"bod"==i.attr("id"),n<800&&window.matchMedia("(orientation: landscape)").matches&&(i.css("height","auto"),i.find(".section-content").css({overflow:"visible"}))})}o(document).ready(function(){n();for(var t=200;t<3e3;t+=200)setTimeout(n,t);o(window).load(function(){n()}),o(".link-to-top").on("click",function(n){n.preventDefault();var t=o("body");o("html, body").animate({scrollTop:t.offset().top},1e3)}),navigator.userAgent.indexOf("Mac OS X")!=-1?o("body").addClass("mac"):o("body").addClass("pc")})}(jQuery);