$(function () { $(".main-lh3").click(function (e) { if ($(this).hasclass("show")) { $(this).removeclass("show"); } else { $(this).addclass("show"); } $(".main-lul").stop().slidetoggle(); e.stoppropagation(); }) $(".menu-btn").click(function () { if ($(".top-mc").hasclass("show-nav")) { $(".top-mc").removeclass("show-nav"); $(".warp-box").removeclass("show-warp"); $("body,html").attr('style','overflow:auto'); } else { $(".top-mc").addclass("show-nav"); $(".warp-box").addclass("show-warp"); $("body,html").attr('style','overflow:hidden'); } }) $(".warp-box").click(function(){ if ($(".top-mc").hasclass("show-nav")) { $(".top-mc").removeclass("show-nav"); $(".warp-box").removeclass("show-warp"); $("body,html").attr('style','overflow:auto'); } else { $(".top-mc").addclass("show-nav"); $(".warp-box").addclass("show-warp"); $("body,html").attr('style','overflow:hidden'); } }) if ($(window).width() > 1050) { $(".top-mc li").hover(function () { $(this).children("div.navbar").stop().slidetoggle(); }); } else { $(".top-mc li").hover(function (e) { $(this).find(".navbar").stop().slidetoggle(); e.stoppropagation(); }) $(".slidetxtbox .hd li a").each(function(){ if($(this).index() == 0) { $(this).attr("href","javascript:;"); } }) } })