///navigation Browser $(function(){ //fancybox $('.fancyboxDoor').fancybox({ padding:0, margin:[30,0,30,0], width:"500px", //minHeight:"400px", //type:"iframe", iframe:{scrolling:"yes"}, beforeLoad :function(){ $(".overlay").addClass("open"); }, afterClose : function(){ $(".overlay").removeClass("open"); } }); $(".advertisingTab ul li").click(function(){ $(".advertisingTab ul li").removeClass("active"); $(this).addClass("active"); $(".popupSection").hide(); $(".popupSection:eq("+$(this).index()+")").show(); }) $("img.videoTriger").click(function(){ $(this).hide(); $("video").show(); }); $('.play').click(function () { var video = ''; $(this).replaceWith(video); }); if($(window).width()<=480){ $(".advertisingTab ul li:nth-child(1)").click(function(){ $("html, body").animate({scrollTop:$(".Cltbg1").offset().top-100},1e3) }); $(".advertisingTab ul li:nth-child(2)").click(function(){ $("html, body").animate({scrollTop:$(".Cltbg2").offset().top-100},1e3) }); $(".advertisingTab ul li:nth-child(3)").click(function(){ $("html, body").animate({scrollTop:$(".Cltbg3").offset().top-100},1e3) }); $(".advertisingTab ul li:nth-child(4)").click(function(){ $("html, body").animate({scrollTop:$(".Cltbg4").offset().top-100},1e3) }); $(".advertisingTab ul li:nth-child(5)").click(function(){ $("html, body").animate({scrollTop:$(".Cltbg5").offset().top-100},1e3) }); } $("a.enqueryTriger").click(function(){ $("html, body").animate({scrollTop:$(".formSection").offset().top-100},1e3) }); //Document ready end });