$(document).ready(function(){$(document).scroll(function(){didScroll=!0,$(document).scrollTop()>50?($(".menu_box").addClass("fixed-top bg-light"),$(".menu_box").css({boxShadow:"0px 0px 2px #000"}),$(".logo_icon a img:nth-child(1)").addClass("ch"),$(".logo_icon a img:nth-child(2)").removeClass("ch"),l.css({border:"2px solid #000"}),$(".phone_box a").css({color:"#000"})):($(".menu_box").removeClass("fixed-top bg-light"),$(".menu_box").css({boxShadow:"0px 0px 0px #000"}),$(".logo_icon a img:nth-child(1)").removeClass("ch"),$(".logo_icon a img:nth-child(2)").addClass("ch"),l.css({border:"2px solid #fff"}),$(".phone_box a").css({color:"#fff"}))});const o=$("#close"),e=$(".menu"),c=$(".overlay");o.click(function(o){o.preventDefault(),e.css({left:"-300px"}),c.css({width:"0px"}),t.css({float:"left"})});const l=$(".menu_bar"),t=$(".menu_btn");l.click(function(o){e.css({left:"0px"}),c.css({width:"100%"}),t.css({float:"right"})}),c.click(function(o){e.css({left:"-300px"}),c.css({width:"0px"}),t.css({float:"left"})}),$(".gb_1,.gb_2,.gb_3,.gb_4").magnificPopup({items:[{src:"../project/imgs/garbage-disposal.jpg"},{src:"../project/imgs/leak.jpg"},{src:"../project/imgs/toilet-repair.jpg"},{src:"../project/imgs/water-heater.jpg"}],gallery:{enabled:!0},type:"image"}),$(".cp").on("click",function(o){o.preventDefault()}),$(".cp").magnificPopup({items:[{src:"../project/imgs/coupons/$25.jpg"},{src:"../project/imgs/coupons/$50.jpg"},{src:"../project/imgs/coupons/$100.jpg"},{src:"../project/imgs/coupons/$40.jpg"}],gallery:{enabled:!0},type:"image"}),$(".play-btn").magnificPopup({items:[{src:"https://www.youtube.com/watch?v=ToN67IQiYVo",type:"iframe"}],type:"image"}),$(".content_box > h1, .content_box > p, .content_box > a").css({opacity:"1",transform:"translateY(0px)"})});for(var controller=new ScrollMagic.Controller,box=document.querySelectorAll(".icons_box > div"),i=0;i<box.length;i++)var scene=new ScrollMagic.Scene({triggerElement:box[i],triggerHook:.5}).setClassToggle(box[i],"show-icon").addTo(controller);var box2=document.querySelectorAll(".g_box_1 > div");for(i=0;i<box2.length;i++)scene=new ScrollMagic.Scene({triggerElement:box2[i],triggerHook:.9}).setClassToggle(box2[i],"show-image").addTo(controller);var cbox=document.querySelectorAll(".cb_2_box"),git=(scene=new ScrollMagic.Scene({triggerElement:".cb_2",triggerHook:.9}).setClassToggle(cbox,"show-box").addTo(controller),document.querySelectorAll(".fb_2 > h2")),form=(scene=new ScrollMagic.Scene({triggerElement:".git",triggerHook:.7}).setClassToggle(git,"show-git").addTo(controller),document.querySelectorAll(".fb_2 > form")),info=(scene=new ScrollMagic.Scene({triggerElement:form,triggerHook:.9}).setClassToggle(form,"show-form").addTo(controller),document.querySelectorAll(".cInfo > div"));for(i=0;i<info.length;i++)scene=new ScrollMagic.Scene({triggerElement:info[i],triggerHook:.8}).setClassToggle(info[i],"show-info").addTo(controller);