From 557231c5fbf91af4045284b92e3d6a8a80b34d21 Mon Sep 17 00:00:00 2001 From: jiwoo Date: Fri, 26 Jan 2024 10:51:46 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=9A=B0=20-=20=ED=83=80?= =?UTF-8?q?=EC=9D=B4=ED=8B=80=20=EC=84=A0=EC=96=B8=20=EC=A4=91=EB=B3=B5=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0=20=EB=B0=8F=20=EB=82=B4=EC=95=8C=EB=A6=BC,?= =?UTF-8?q?=20=EA=B3=B5=EC=A7=80=EC=82=AC=ED=95=AD=20=ED=83=80=EC=9D=B4?= =?UTF-8?q?=ED=8B=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/jsp/web/com/webCommonHeader.jsp | 5 +++-- src/main/webapp/WEB-INF/jsp/web/com/webLayout.jsp | 5 +++-- src/main/webapp/visitEdu/usr/publish/script/common.js | 7 ++++++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/web/com/webCommonHeader.jsp b/src/main/webapp/WEB-INF/jsp/web/com/webCommonHeader.jsp index e762cd9a..5200f2e7 100644 --- a/src/main/webapp/WEB-INF/jsp/web/com/webCommonHeader.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/com/webCommonHeader.jsp @@ -14,13 +14,14 @@ <%-- 웹접근성 각 페이지 타이틀 변경 220125--%> $(document).ready(function (){ - var titleNm = ''; + /* 240126 - common.js에서도 title 선언이 되어 중복 제거를 위한 주석처리 */ + /* var titleNm = ''; if($('body').find('h2').length > 0){ titleNm = document.querySelector('h2').textContent; if(document.title.indexOf(titleNm) < 0){ document.title = titleNm + "<" + document.title; } - } + } */ }); diff --git a/src/main/webapp/WEB-INF/jsp/web/com/webLayout.jsp b/src/main/webapp/WEB-INF/jsp/web/com/webLayout.jsp index 2d5656c8..422380d5 100644 --- a/src/main/webapp/WEB-INF/jsp/web/com/webLayout.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/com/webLayout.jsp @@ -136,7 +136,8 @@ function isMobile(){ } <%-- 웹접근성 각 페이지 타이틀 변경 220125--%> $(document).ready(function (){ - var titleNm = ''; +/* 240126 - common.js에서도 title 선언이 되어 중복 제거를 위한 주석처리 */ +/* var titleNm = ''; if($('body').find('h2').length > 0){ titleNm = document.querySelector('h2').textContent; if(document.title.indexOf(titleNm) < 0){ @@ -145,7 +146,7 @@ $(document).ready(function (){ document.title = titelNavi.eq(4).text() +"<"+titelNavi.eq(2).text()+"< 한국저작권위원회 저작권교육 시스템"; } - } + } */ }); diff --git a/src/main/webapp/visitEdu/usr/publish/script/common.js b/src/main/webapp/visitEdu/usr/publish/script/common.js index b953ff00..85a43574 100644 --- a/src/main/webapp/visitEdu/usr/publish/script/common.js +++ b/src/main/webapp/visitEdu/usr/publish/script/common.js @@ -25,11 +25,16 @@ $(document).ready(function () { else if($(".cont_tit h2").text() == "로그인"){ $("head title").text("로그인페이지 < 한국저작권위원회 저작권배움터"); } + else if(dep01_Text == ''){ + $("head title").text(dep02_Text+" < "+" 한국저작권위원회 저작권배움터"); + } else{ $("head title").text(dep02_Text+" < "+dep01_Text+" < "+" 한국저작권위원회 저작권배움터"); } - + if(dep01_Text == '' && dep02_Text == ''){ + $("head title").text($(".cont_tit h2").text() + " < "+" 한국저작권위원회 저작권배움터"); + } if($(".full_menu .depth01_li a:contains('ZOOM 신청 게시판(청소년)')").length == "1"){ $(".full_menu .depth01_li>a").css("width","24%");