/** * Created by A.J on 2020/8/26. */$(document).ready(function(){$(".hors").css("cursor","pointer").on("click",function(){var s=$(this).children("i");s.hasClass("icon-angle-left")?s.removeClass("icon-angle-left").addClass("icon-angle-down"):s.removeClass("icon-angle-down").addClass("icon-angle-left"),$(this).next("div").slideToggle()}),$("#yuyuecmsbtn").on("click",function(){$("#sidebar").hasClass("d-none")&&$("#sidebar").removeClass("d-none").hide(),$("#sidebarModal").hasClass("show")?($("#sidebarModal").modal("hide"),$("#yuyuecmsnav").removeClass("zindex1070"),$("#sidebar").removeClass("zindex1060")):($("#sidebarModal").modal("show"),$("#yuyuecmsnav").addClass("zindex1070"),$("#sidebar").addClass("zindex1060")),$("#sidebar").slideToggle()}),$("#sidebarModal").on("click",function(){$("#yuyuecmsnav").removeClass("zindex1070"),$("#sidebar").removeClass("zindex1060").fadeOut()}),$("#hideshowmenu").on("click",function(){$("#sidebar").hasClass("d-lg-block")?($("#sidebar").removeClass("d-lg-block"),$(this).find("i").removeClass("icon-circle-arrow-left").addClass("icon-circle-arrow-right")):($("#sidebar").addClass("d-lg-block"),$(this).find("i").removeClass("icon-circle-arrow-right").addClass("icon-circle-arrow-left"))}),$("nav.flex-column a").hover(function(){$(this).addClass("overbg")},function(){$(this).removeClass("overbg")})});