fix : css 정리

main
이범준 2 years ago
parent b1f2d557eb
commit 0d767a0cad

@ -86,7 +86,7 @@
}); });
$(".popup").css("position","absolute"); $(".popup").css("position","absolute");
$(".content_header").css("display","none");
}; };

@ -108,7 +108,7 @@ $(document).ready(function(){
} }
}); });
$(".popup").css("position","absolute"); $(".popup").css("position","absolute");
$(".content_header").css("display","none");
}, },
/* ======================== /* ========================

@ -108,7 +108,7 @@ $(document).ready(function(){
} }
}); });
$(".popup").css("position","absolute"); $(".popup").css("position","absolute");
$(".content_header").css("display","none");
}, },
/* ======================== /* ========================

@ -93,7 +93,7 @@ $(document).ready(function(){
} }
}); });
$(".popup").css("position","absolute"); $(".popup").css("position","absolute");
$(".content_header").css("display","none");
}, },
/* ======================== /* ========================

@ -93,7 +93,7 @@ $(document).ready(function(){
} }
}); });
$(".popup").css("position","absolute"); $(".popup").css("position","absolute");
$(".content_header").css("display","none");
}, },
/* ======================== /* ========================

@ -117,7 +117,7 @@ $(document).ready(function(){
} }
}); });
$(".popup").css("position","absolute"); $(".popup").css("position","absolute");
$(".content_header").css("display","none");
}, },
/* ======================== /* ========================

@ -117,7 +117,7 @@ $(document).ready(function(){
} }
}); });
$(".popup").css("position","absolute"); $(".popup").css("position","absolute");
$(".content_header").css("display","none");
}, },
/* ======================== /* ========================

@ -132,7 +132,7 @@ $(document).ready(function(){
} }
}) })
$(".popup").css("position","absolute"); $(".popup").css("position","absolute");
$(".content_header").css("display","none");
}, },
/* ======================== /* ========================

@ -87,7 +87,7 @@ $(document).ready(function(){
} }
}); });
$(".popup").css("position","absolute"); $(".popup").css("position","absolute");
$(".content_header").css("display","none");
}, },
/* ======================== /* ========================

@ -89,7 +89,7 @@ $(document).ready(function(){
} }
}); });
$(".popup").css("position","absolute"); $(".popup").css("position","absolute");
$(".content_header").css("display","none");
}, },
/* ======================== /* ========================

@ -33,7 +33,7 @@ $(document).ready(function(){
} }
}); });
$(".popup").css("position","absolute"); $(".popup").css("position","absolute");
$(".content_header").css("display","none");
}, },
/* ======================== /* ========================

@ -1,7 +1,5 @@
@charset "utf-8"; @charset "utf-8";
.search tbody tr td:nth-child(7) {border:0px solid red; vertical-align: middle;} .search tbody tr td:nth-child(7) {border:0px solid red; vertical-align: middle;}
col.search_w01:nth-child(1){border:0px solid red; width:7%;} col.search_w01:nth-child(1){border:0px solid red; width:7%;}
@ -24,118 +22,18 @@ col.search_w06:nth-child(6){border:0px solid purple; width:15%;}
}/*삭제조심*/ }/*삭제조심*/
.mt05{margin-top: 5px !important;}
.ml05{margin-left: 5px !important;}
.mb05{margin-bottom: 5px !important;}
.mr05{margin-right: 5px !important;}
.vat{vertical-align: top !important;} .vat{vertical-align: top !important;}
.vam{vertical-align: middle !important;}
.tac{text-align: center !important;} .tac{text-align: center !important;}
.tal{text-align: left !important;}
.dtb{display: table;width: 100%;}
.dtc{display: table-cell;overflow: hidden;}
/*서브 공통*/ /*서브 공통*/
.wrapper { .wrapper {
min-width: 1280px; min-width: 1280px;
position: static; position: static;
background-color: #fff; background-color: #fff;
} }
.main_header {
position: fixed;
width: 100%;
min-width: 1600px;
z-index: 10;
background-color: #4d5769;
}
.main_header .logo {
display: inline-block;
float: left;
max-height: 50px;
max-width: 180px;
/* margin: 20px 0 0 20px; */
margin: 10px 0 0 20px;
font-size: 20px;
overflow: hidden;
color: #fff;
}
.main_header .navbar {
/* min-height: 85px; */
min-height: 65px;
display: block;
/* margin-left: 270px; */
margin-left: 250px;
position: relative;
}
.navbar ul {
display: inline-block;
}
.navbar ul *{
display: inline-block;
vertical-align: top;
}
.navbar .dp1 {
/* margin: 5px 0px 0px 0px; */
}
.navbar .dp1 > li {
/* margin: 30px 50px 30px 0; */
margin: 10px 30px 5px 0;
}
.navbar .dp1 > li > a {
color: #fff;
font-size: 19px;
position: relative;
}
.navbar .dp2 {
position: absolute;
left: 0;
/* top: 85px; */
top: 65px;
background-color: #d2d2d2;
width: 100%;
margin-left: -270px;
padding-left: 270px;
/* min-height: 48px; */
min-height: 28px;
display: none;
}
.navbar .dp1 > li.active > a, .navbar .dp1 > li > a:hover {
color: #00f9fd;
}
.navbar .dp1 > li.active > a:after {
content: '';
display: block;
width: 13px;
height: 11px;
background: url('../../images/common/dp2_on.png') 0 0 no-repeat;
position: absolute;
left: 50%;
/* bottom: -33px; */
bottom: -22px;
transform: translateX(-50%);
cursor: default;
}
.navbar .dp1 > li.active > .dp2 {
display: block;
}
.navbar .dp2 > li {
margin-right: 15px;
}
.navbar .dp2 > li > a {
/* padding: 10px 20px; */
padding: 10px 10px;
font-size: 15px;
}
.navbar .dp2 > li.active > a, .navbar .dp2 > li > a:hover {
background-color: #006fbd;
color: #fff;
}
.state_btn .mypage { .state_btn .mypage {
background-color: #383f4b; background-color: #383f4b;
@ -143,174 +41,10 @@ col.search_w06:nth-child(6){border:0px solid purple; width:15%;}
.state_btn .logout { .state_btn .logout {
background-color: #6e788b; background-color: #6e788b;
} }
.main_sidebar {
position: fixed;
height: 100%;
/* width: 205px; */
width: 185px;
z-index: 8;
background-color: #fff;
overflow: auto;
margin-left: -215px;
}
.main_sidebar.active {
margin-left: 0;
}
.sidebarInner {
position: fixed;
top: 0;
/* padding-top: 85px; */
padding-top: 127px;
padding-bottom: 25px;
height: 100%;
/* width: 225px; */
width: 205px;
background-color: transparent;
box-sizing: border-box;
z-index: 10;
}
.spi .sidebarInner {
/* padding-top: 133px; */
padding-top: 103px;
}
.left_menu {
height: 100%;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
background-color: #003567;
}
.sidebar_btn {
display: block;
width: 18px;
height: 85px;
background: url('../../images/common/sidebar_off.png') 0 0 no-repeat;
position: absolute;
/* right: -18px; */
right: -28px;
top: 50%;
transform: translateY(-50%);
text-indent: -9999px;
}
.sidebar_btn.active {
background-image: url('../../images/common/sidebar_on.png');
right: -18px;
}
.left_menu .dp3 {
margin-top: 15px;
}
.left_menu .dp2_tit {
font-size: 20px;
color: #fff;
padding: 0 20px 8px;
border-bottom: 1px solid #eee;
}
.left_menu .dp2_tit span{
cursor: pointer;
font-size: 10px;
background-color: white;
color: #006fbd;
padding: 5px;
text-align: center;
border-radius: 5px;
margin-left: 20px;
}
.left_menu .dp3 > li > a {
display: block;
font-size: 15px;
color: #fff;
padding: 10px 20px;
background-repeat: no-repeat;
}
.left_menu .dp3 > li.hasSub > a {
background-image: url('../../images/common/dp3_off.png');
/* background-position: 195px 14px; */
background-position: 175px 14px;
}
.left_menu .dp3 > li.active > a, .left_menu .dp3 > li > a:hover {
/* background-color: #009bff; */
background-color: #f57b39;
}
.left_menu .dp3 > li.hasSub.active > a {
background-image: url('../../images/common/dp3_on.png');
/* background-position: 195px 18px; */
background-position: 175px 18px;
}
.left_menu .dp3 > li.active > ul {
display: block;
}
.left_menu .dp4 {
height: 0;
overflow: hidden;
}
.left_menu .dp3 > li.active > .dp4 {
height: auto;
padding: 15px 20px;
background-color: #f6f6f7;
box-sizing: border-box;
}
.left_menu .dp4 > li > a {
display: block;
font-size: 13px;
color: #535353;
padding: 5px 0 5px 20px;
background: url('../../images/common/dp4_off.png') 0 8px no-repeat;
}
.left_menu .dp4 > li.active > a, .left_menu .dp4 > li > a:hover {
color: #e60012;
font-weight: bold;
background-image: url('../../images/common/dp4_on.png');
}
.content_wrapper {
min-height: 100%;
background-color: #fff;
z-index: 10;
/* margin-left: 10px; */
/* padding-top: 85px; */
padding-top: 75px;
/* padding-bottom: 48px; */
}
.content_wrapper.active {
/* margin-left: 225px; */
margin-left: 205px;
}
.spi .content_wrapper {
/* padding-top: 133px; */
padding-top: 103px;
}
.content_header {
position: relative;
padding: 80px 35px 8px 50px;
box-sizing: border-box;
clear: both;
overflow: hidden;
}
.content_header > h2 {
margin: 0;
font-size: 20px;
color: #181818;
font-weight: normal;
padding-left: 20px;
/* background: url('../resources/images/common/content_header.png') 0 5px no-repeat; */
background: url('../../images/common/content_header_02.png') 0 5px no-repeat;
width:50%;
float:left;
}
.content_body {
/* padding: 6px; */
margin-right: auto;
margin-left: auto;
padding-left: 50px;
padding-right: 35px;
/* min-height: 700px; */
min-height: 600px;
clear: both;
overflow: hidden;
}
.content_body{
font-family: 'Dotum';
}
.row{ .row{
clear: both; clear: both;
overflow: hidden; overflow: hidden;
@ -325,53 +59,9 @@ col.search_w06:nth-child(6){border:0px solid purple; width:15%;}
display: block; display: block;
clear: both; clear: both;
} }
.main_footer {
background-color: #6e788b;
padding: 5px 35px;
z-index: 8;
position: fixed;
bottom: 0;
width: 100%;
min-width: 1600px;
box-sizing: border-box;
height: 25px;
}
.main_footer * {
color: #fff;
font-size: 14px;
}
.main_footer .copyright {
font-size: 12px;
display: inline-block;
margin-left: 20px;
}
.main_footer .link_btn {
margin-left: 35px;
}
.main_footer .link_btn a{
font-size: 15px;
font-weight: bold;
}
.link_btn .link1 {
color: #f4aa0a;
}
.link_btn .link2 {
color: #a1bfe5;
}
.link_btn a.line {
margin-left: 30px;
position: relative;
}
.link_btn a.line:before {
content: '';
display: inline-block;
width: 2px;
height: 10px;
position: absolute;
left: -18px;
top: 4px;
background: url('../../images/common/line.png') 0 center no-repeat;
}
/*검색조건*/ /*검색조건*/
.search { .search {
clear: both; clear: both;
@ -407,7 +97,7 @@ col.search_w06:nth-child(6){border:0px solid purple; width:15%;}
/* background-color:#fff; 2020.09.04 박소영 추가함 */ /* background-color:#fff; 2020.09.04 박소영 추가함 */
} }
/*[2020.09.21 박소영 추가함] 운수사명 배경 흰색으로 변경*/ /*[2020.09.21 박소영 추가함] 운수사명 배경 흰색으로 변경*/
#sch_cmpny_nm{ border: 1px solid #a9a9a9; background-color:#fff;}
.search .btn_search { .search .btn_search {
width: 100px; width: 100px;
height: 100%; height: 100%;
@ -440,55 +130,9 @@ col.search_w06:nth-child(6){border:0px solid purple; width:15%;}
} }
.ui-datepicker-header>select{width:40px;}/* 2020.09.22 김동규 */ .ui-datepicker-header>select{width:40px;}/* 2020.09.22 김동규 */
.page_info select {
height: 30px;
padding-left: 10px;
width: 160px;
margin-right: 20px;
}
.page_number {
font-size: 12px;
line-height: 1.3;
color: #515151;
}
.page_number span {
color: #0a98cc;
}
.page_number span.bar{
color: #515151;
padding: 0 3px;
}
/*페이징*/
.paging {
text-align: center !important;
font-size: 0;
margin-top: 40px;
margin-bottom: 40px;
}
.paging a, .paging strong {
font-size: 12px;
display: inline-block;
width: 25px;
height: 25px;
line-height: 25px;
margin: 0 5px;
font-weight: bold;
color: #666;
text-align: center;
}
.paging a:hover {
background-color: #eee;
}
.paging strong {
background-color: #0a98cc;
color: #fff;
}
.paging > .prevAll{background:url('../../images/common/btn_prevAll.png') center center no-repeat;}
.paging > .prev{background:url('../../images/common/btn_prev.png') center center no-repeat;}
.paging > .next{background:url('../../images/common/btn_next.png') center center no-repeat;}
.paging > .nextAll{background:url('../../images/common/btn_nextAll.png') center center no-repeat;}
.paging > .btn{padding:0;}
.blind{display:block;overflow:hidden;top:-10000em;position:absolute;} .blind{display:block;overflow:hidden;top:-10000em;position:absolute;}
@ -498,96 +142,8 @@ col.search_w06:nth-child(6){border:0px solid purple; width:15%;}
position: relative; position: relative;
overflow: hidden; overflow: hidden;
} }
.tbl01 {
margin-left: -1px;
border-top: 2px solid #7f7f7f;
border-bottom: 2px solid #666;
}
.tbl01 tr:hover {
background-color: #fefbf3;
}
.tbl01 tr.active > td{
background: #0a98cc;
color: #fff;
}
.tbl01 th, .tbl01 td {
font-size: 12px;
line-height: 1.3;
text-align: center;
color: #292f36;
border-left: 1px solid #ccc;
border-bottom: 1px solid #ccc;
}
.tbl01 th {
padding: 15px 0;
font-weight: bold;
background-color: #f6f6f7;
}
.tbl01 th > input[type="checkbox"] {
-ms-transform: scale(1.5); /* IE */
-moz-transform: scale(1.5); /* FF */
-webkit-transform: scale(1.5); /* Safari and Chrome */
-o-transform: scale(1.5); /* Opera */
}
.tbl01 td {
padding: 10px 0;
}
.tbl01 a.popup {
color: #0a98cc;
}
.tbl01 a.popup:hover {
text-decoration: underline;
}
.tbl01 a.more {
color: #0a98cc;
}
.tbl01 a.more:hover {
text-decoration: underline;
}
.tbl01 a.more img {
display: inline-block;
margin-right: 5px;
height: 13px;
}
/*전체메뉴*/
.all_menu_wrap {
position: fixed;
top: 0;
right: 100%;
right: 0;
width: 480px;
height: 100%;
background-color: #e5e5e5;
border-left: 1px solid #bfbfbf;
box-shadow: -10px 0 30px 0px rgba(0,0,0,0.2);
z-index: 10;
padding: 35px;
box-sizing: border-box;
display: none;
}
.all_menu_wrap p{
font-size: 21px;
color: #2a2a2a;
}
.all_menu_wrap .close {
text-indent: -9999px;
width: 25px;
height: 25px;
display: inline-block;
overflow: hidden;
background: url('../../images/common/all_menu_close.png') 0 0 no-repeat;
float: right;
}
.all_menu_wrap .inner {
background-color: #fff;
margin-top: 25px;
border: 1px solid #bfbfbf;
height: 815px;
overflow-y: auto;
padding: 10px 20px;
box-sizing: border-box;
}
/*팝업-등록*/ /*팝업-등록*/
.popup { .popup {
clear: both; clear: both;
@ -596,17 +152,7 @@ col.search_w06:nth-child(6){border:0px solid purple; width:15%;}
text-align: center; text-align: center;
min-width: 1440px; min-width: 1440px;
} }
/*.popup_inner {
display: inline-block;
max-width: 1400px;
margin: 30px auto;
padding: 40px 45px;
box-sizing: border-box;
!* border-top: 5px solid #0a98cc;
border-bottom: 5px solid #0a98cc;*!
text-align: left;
!* box-shadow: 0 0 18px 5px rgba(0,0,0,0.2);*!
}*/
.popup_inner{ .popup_inner{
margin: 30px auto; margin: 30px auto;
@ -832,27 +378,7 @@ img.ui-datepicker-trigger {
} }
/*main화면*/
.content_wrapper h3.title {
margin: 0;
font-size: 22px;
color: #151515;
padding-left: 20px;
/* background: url('../resources/images/common/content_header.png') 0 6px no-repeat; */
background: url('../../images/common/content_header_02.png') 0 3px no-repeat;
margin-bottom: 15px;
margin-top:15px;
font-family: 'Nanum Barun Gothic';
}
.content_wrapper h3.title span {
float: right;
margin-top: 5px;
margin-right: 30px;
}
.content_wrapper h3.title span a {
font-size: 15px;
color: #003567;
}
.system_state { .system_state {
font-size: 0; font-size: 0;
} }
@ -1154,29 +680,9 @@ img.ui-datepicker-trigger {
min-height: 600px; min-height: 600px;
} }
.tbl04 {
border-top: 2px solid #7f7f7f;
border-bottom: 2px solid #666;
}
.tbl04 th, .tbl04 td {
font-size: 12px;
line-height: 1.3;
color: #292f36;
border: 1px solid #ccc;
padding: 10px;
}
.tbl04 th {
background-color: #f6f6f7;
text-align: center;
}
.pop_title { .pop_title {
/* font-size: 20px;
color: #313131;
font-family: 'Nanum Barun Gothic';
margin: 0 5px 10px;
background: url('../../images/common/content_header.png') 0 5px no-repeat;
padding-left: 20px;*/
border-bottom: 1px solid #c3c3c3; border-bottom: 1px solid #c3c3c3;
font-size: 15px; font-size: 15px;
font-weight: bold; font-weight: bold;
@ -1288,102 +794,6 @@ img.ui-datepicker-trigger {
.subTit{font-size: 16px;font-weight: bold;}
.calendarSel {
background-color: #eee;
padding: 8px 8px 8px 357px;
margin-bottom: 55px;
position: relative;
}
.calendar_title {
position: absolute;
left: 43px;
top: 34px;
font-size: 15px;
color: #3d3d3d;
font-weight: bold;
}
.calendar_title img {
vertical-align: bottom;
display: inline-block;
margin-right: 8px;
}
.calendar_title .year {
display: inline-block;
margin-left: 20px;
font-size: 15px;
}
.calendar_title .year * {
vertical-align: top;
}
.calendar_title .year span {
display: inline-block;
margin-top: 2px;
}
.calendar_title .year a {
display: inline-block;
width: 22px;
height: 21px;
overflow: hidden;
text-indent: -9999px;
}
.calendar_title .year .prev {
background-image: url('../../images/common/ico_prev.png');
margin-right: 15px;
}
.calendar_title .year .next {
background-image: url('../../images/common/ico_next.png');
margin-left: 15px;
}
.calendarSel .noti_area {
background-color: #fff;
min-height: 72px;
display: table;
width: 100%;
}
.calendarSel .noti_area > span {
display: table-cell;
vertical-align: middle;
font-size: 12px;
color: #3d3d3d;
}
.calendarSel .noti_area .c1 {
width: 93px;
text-align: center;
font-weight: bold;
border-right: 1px solid #eee;
}
.calendarSel .noti_area .c2 {
vertical-align: top;
padding: 8px 8px 8px 25px;
word-break: break-all;
}
.calendarSel .noti_area .c2 p {
padding-left: 15px;
background: url('../../images/common/list_check.png') 0 3px no-repeat;
margin: 3px 0;
}
.calendarSel .noti_area .c2 a {
font-size: 12px;
color: #3d3d3d;
display: inline-block;
vertical-align: top;
}
.calendarSel .noti_area .c2 a:hover {
text-decoration: underline;
}
.calendarSel .noti_area .c3 {
width: 118px;
}
.calendarSel .noti_area .c3 input[type=button] {
width: 100%;
min-height: 72px;
background-color: #0a98cc;
color: #fff;
border: none;
font-weight: bold;
}
table.calendar { table.calendar {
margin-left: -1px; margin-left: -1px;
@ -1680,14 +1090,8 @@ td.display-none {
background-color: #d2e6f9; background-color: #d2e6f9;
top : 2px; top : 2px;
} }
.ancrHold{
background-color : #BFCEE8;
}
.left_menu .dp3 > li.active > a, .left_menu .dp3 > li > a:hover {
/* background-color: #009bff; */
background-color: #f57b39;
}
/* Hover 색상임*/ /* Hover 색상임*/
.onToggle{ .onToggle{

@ -54,7 +54,7 @@ select {
.t2_rightdiv{float:right;padding-right:25px;} .t2_rightdiv{float:right;padding-right:25px;}
/* Main wrap */ /* Main wrap */
#mainview_title_img{padding-top:10px;padding-left:10px;} #mainview_title_img{padding-top:10px;padding-left:10px;}
#main_container{clear:both;width: 996px; height: 535px;}
#mainview_wrap{float:left;height:302px;} #mainview_wrap{float:left;height:302px;}
/* Main left board */ /* Main left board */
@ -77,32 +77,9 @@ select {
.board_title{padding-left:10px;padding-top:10px; height:34px; } .board_title{padding-left:10px;padding-top:10px; height:34px; }
.board_title2{background: url("/resources/images/bl_underline2.gif") no-repeat ; background-position: 0px 30px;padding-top:10px; height:34px; } .board_title2{background: url("/resources/images/bl_underline2.gif") no-repeat ; background-position: 0px 30px;padding-top:10px; height:34px; }
.more{float:right; padding-right: 5px;} .more{float:right; padding-right: 5px;}
/* Main right board */
#main_rightcontent_wrap{float:left;padding-left:18px;}
#main_rightcontent{background: url("/resources/images/index/bg_board03.gif") no-repeat ;float:left;width:545px; height:302px; margin-top:20px;padding-left:10px; vertical-align: middle;display:inline;}
#main_rightcontent ul{list-style-type: none; padding-bottom:5px;}
#main_rightcontent li{display:inline;}
#main_container a:link {
color: #666666;
letter-spacing: -1px;
text-decoration: none;
}
#main_container a:visited {
color: #666666;
letter-spacing: -1px;
text-decoration: none;
}
#main_container a:active {
color: #155AC6;
letter-spacing: -1px;
text-decoration: none;
}
#main_container a:hover {
color: #155AC6;
text-decoration: none;
}
#header{padding-top:5px;} #header{padding-top:5px;}
#logoarea{float:left;padding-left:10px;} #logoarea{float:left;padding-left:10px;}

@ -253,42 +253,7 @@ const cmmAjax = (param) => {
return document.write(jqXHR.responseText); return document.write(jqXHR.responseText);
/*
if(settings.dataType==undefined){
//html 문자열을 객체로 변환 후 메시지만 추출
var doc = document.createElement("html");
doc.innerHTML = jqxhr.responseText;
var msg = $(doc).find('.content_body').eq(0).text();
if(msg == '')
msg = jqxhr.responseText;
alert(msg);
}else if(settings.dataType=='json'){
//FIXME: 에러처리 화면 깨지는 경우 체크해야 함
//error 발생시 html type인 경우 반영
//try{
//const jsonObject = JSON.stringify(jqxhr.responseText);
//if(typeof jsonObject === 'object') alert(jsonObject.message)
//else return document.write(jqxhr.responseText);
if(jqxhr.responseJSON?.message){
alert(jqxhr.responseJSON?.message);
return false;
}
else {
document.write(jqxhr.responseText);
return false;
}
//}catch{
// document.write(jqxhr.responseText);
// return false;
//}
}else {
console.log('??? alert(jqxhr.responseText) 으로 처리 했는데 .... document.write(jqxhr.responseText)로 처리해야 하지 않을까????? 확인이 필요');
alert(jqxhr.responseText);
}
*/
} }
}); });
}; };

@ -1,182 +0,0 @@
$(document).ready(function(){
if($(".navbar .dp1 > li").hasClass("active")){
$(".wrapper").addClass("spi")
}
if($(".left_menu .dp4").length){
$(".left_menu .dp4").parent("li").addClass("hasSub")
}
if($(".left_menu .dp3").length){
$(".main_sidebar").show();
}else{
// $(".main_sidebar").hide();
// $(".content_wrapper").css({"margin-left":"0"})
}
// $(".sidebar_btn").addClass("active");
// $(".main_sidebar").addClass("active");
// $(".content_wrapper").addClass("active");
$('.mainDepth').hover(function(e){
$('.nav_wrap, .menu_dep2, .secDiv').show();
/*if( !$('.nav_wrap, .menu_dep2, .secDiv').has(e.target).length )*/
});
$('.content_body, .nav_wrap').mouseout(function(e){
/*if( !$('.nav_wrap, .menu_dep2, .secDiv').has(e.target).length )*/ {
$(".secDiv, .menu_dep2, .nav_wrap").slideUp(5,function(){
/*divHeightFlat($(".secDiv"));*/
});
}
});
})
$(function(){
$(".navbar .dp1 > li").on("click", function(){
$(".navbar .dp1 > li").removeClass("active")
$(this).addClass("active")
if($(".navbar .dp1 > li").hasClass("active")){
$(".wrapper").addClass("spi")
}
})
$(".navbar .dp2 > li").on("click", function(){
$(".navbar .dp2 > li").removeClass("active")
$(this).addClass("active")
})
$(".left_menu .dp3 > li").on("click", function(){
$(".left_menu .dp3 > li").removeClass("active")
$(this).addClass("active")
})
$(".left_menu .dp4 > li").on("click", function(){
$(".left_menu .dp4 > li").removeClass("active")
$(this).addClass("active")
})
$(".sidebar_btn").on("click", function(){
$(this).toggleClass("active");
$(".main_sidebar").toggleClass("active");
$(".content_wrapper").toggleClass("active");
//사이드바 접기/펼치기 상태값 설정
var sidebar_stts = $(".sidebar_btn.active").length>0?'active':'';
sessionStorage.setItem("sidebar_stts", sidebar_stts);
/*
* 2020.11.02. 박민규
* tui-grid layout refresh
* -사유: 사이드바 접기/펼치기 사이드바 만큼 늘어나고 줄어든 grid 영역에 대해 값이 출력되지 않는 이슈에 대한 처리
*/
for(var i=0; i<=10; i++){
try {
if(i==0)
instance.refreshLayout();
else
eval("instance"+[i]+".refreshLayout()");
} catch (e) {
// console.log(e);
}
}
})
$(".all_menu").on("click", function(){
$(".all_menu_wrap").show();
})
$(".all_menu_wrap .close").on("click", function(){
$(".all_menu_wrap").hide();
})
})
/*
* 2020-08-18 최유수
* 신규 네비게이션 이벤트 추가
*/
var navEventFunction = {
init : function(){
/*
1뎁스 메뉴 클릭시 드롭다운
*/
navEventFunction.DivHeightFlat($(".secDiv"));
/*$(".mainDepth").click(function() {
var flag = $('.hold').length == 0 ? true:false;
$(".secDiv, .nav_wrap").stop().slideToggle(350, 'swing', function(){
});
$(".hold").removeClass("hold");
$(".ancrHold").removeClass("ancrHold");
if(flag){
$(this).addClass("ancrHold");
$(this).find(".secDiv").addClass("hold");
}
});*/ //[2020.09.17 박소영 주석처리/메뉴 클릭기능을 지움]
/*
* 1뎁스 Hover 이벤트
*/
$(".mainDepth").hover(function() {
if($(".secDiv").attr("display") == "none"){
$(".secDiv, .nav_wrap").stop().slideToggle(350, 'swing', function(){
divHeightFlat($(".secDiv"));
});
}
$(this).addClass("ancrOntoggle");
$(this).find(".secDiv").addClass("onToggle");
}, function(){
$(".onToggle").removeClass("onToggle");
$(".ancrOntoggle").removeClass("ancrOntoggle");
});
/*
2뎁스 메뉴 클릭시 드롭다운
현재 사용하지 않음.
*/
$(".secDepth").click(function(e){
//수정할 높이의 크기
var updateHeight = 0;
//수정할 네비게이션 DIV의 높이
var height = $(".secDiv").height();
var open = true;
var shut = true;
if($(this).find(".trdOn").length == 1){
updateHeight = $(".trdOn").height();
$(this).next().css("margin-top",0);
height = height - updateHeight
open = false;
}else if($("ul").hasClass("trdOn")){
updateHeight = $(".trdOn").height();
$(".secOn").next().css("margin-top",0);
height = height - updateHeight
}else{
}
if(shut){
$(".trdOn").css("display","none");
$(".trdOn").removeClass("trdOn");
$(".secOn").removeClass("secOn");
}
if(open){
updateHeight = $(this).find(".trdDepthMenu").height();
$(this).next().css("margin-top",updateHeight)
height = height + updateHeight;
$(this).find(".trdDepthMenu").css("display","block");
$(this).find(".trdDepthMenu").addClass("trdOn");
$(this).addClass("secOn");
}
$(".secDiv").height(height);
$(".nav_wrap").height(height);
//이벤트 버블링 방지
e.stopPropagation();
});
}
,DivHeightFlat : function(obj){
var maxHeight = 0;
obj.each(function(index, item){
if (maxHeight < $(item).find('li').length){
maxHeight = $(item).find('li').length;
}
});
maxHeight = maxHeight * 20;
obj.each(function(index, item){
$(item).height(maxHeight);
$(".secDiv").height(maxHeight);
});
$(".nav_wrap").height(maxHeight);
}
}
Loading…
Cancel
Save