diff --git a/src/main/resources/static/css/common.css b/src/main/resources/static/css/common.css index 34073393..6a1ee1b9 100644 --- a/src/main/resources/static/css/common.css +++ b/src/main/resources/static/css/common.css @@ -19,4 +19,14 @@ .activeTr{ --bs-bg-opacity: 0.25; background-color: rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important; +} + +.menuDiv{ + width: 250px; + position: absolute; + top: 0; + left: 180px; + z-index: 100; + border-left: 1px solid; + border-right: 1px solid; } \ No newline at end of file diff --git a/src/main/resources/static/js/common.js b/src/main/resources/static/js/common.js index 07f1e7db..25c3d83b 100644 --- a/src/main/resources/static/js/common.js +++ b/src/main/resources/static/js/common.js @@ -27,4 +27,22 @@ $(document).on('change', '#rowCnt', function (){ function searchFormSubmit(pageIndex){ $("#pageIndex").val(pageIndex); $("#searchBtn").click(); -} \ No newline at end of file +} + + +$(document).on('mouseenter', '.firstMenuLink', function (event){ + $(".secondMenu").hide(); + const targetMenu = $(this).parent().find(".secondMenu"); + targetMenu.show() + targetMenu.find("ul").css("padding-top",(event.clientY-20)+"px") +}) +$(document).on('mouseenter', '.secondMenuLink', function (event){ + $(".thirdMenu").hide(); + const targetMenu = $(this).parent().find(".thirdMenu"); + targetMenu.show() + targetMenu.find("ul").css("padding-top",(event.clientY-20)+"px") +}) +$(document).on('mouseleave', '.menuDiv', function (){ + $(".secondMenu").hide(); + $(".thirdMenu").hide(); +}) \ No newline at end of file diff --git a/src/main/resources/templates/fragments/leftMenu.html b/src/main/resources/templates/fragments/leftMenu.html index 9223d9bd..2493bfea 100644 --- a/src/main/resources/templates/fragments/leftMenu.html +++ b/src/main/resources/templates/fragments/leftMenu.html @@ -11,7 +11,29 @@