From 9e8655142aae8644318d6ae249c417d1d3328c51 Mon Sep 17 00:00:00 2001 From: subsub Date: Fri, 19 Jan 2024 17:08:58 +0900 Subject: [PATCH] =?UTF-8?q?2024/01/19=20=EC=B2=AD=EC=86=8C=EB=85=84=20?= =?UTF-8?q?=EA=B5=90=EC=9C=A1=EC=8B=A0=EC=B2=AD=20=EA=B5=90=EC=9C=A1?= =?UTF-8?q?=EC=B0=A8=EC=8B=9C=20=EC=B6=94=EA=B0=80=20=EC=8B=9C=20name=20?= =?UTF-8?q?=EC=9D=B4=EB=A6=84=20=EC=88=98=EC=A0=95,=20head=20title=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visitEdu/usr/publish/script/common.js | 24 +++++++++++++++++++ .../visitEdu/usr/publish/script/content.js | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/src/main/webapp/visitEdu/usr/publish/script/common.js b/src/main/webapp/visitEdu/usr/publish/script/common.js index d63e5098..927961de 100644 --- a/src/main/webapp/visitEdu/usr/publish/script/common.js +++ b/src/main/webapp/visitEdu/usr/publish/script/common.js @@ -6,6 +6,30 @@ $(document).ready(function () { gnbOpen(); }, 100); + // head title + + var dep01_Text = $("#p_menu_nm_navi").text(); + var dep02_Text = $("#menu_nm_navi").text(); + if($("#menu_nm_navi").length == 0){ + dep02_Text = $("#sub").children(".cont_tit").find("h2").text(); + }else{ + dep02_Text; + } + + if($(".cont_tit h2").text() == "마이페이지"){ + $("head title").text("마이페이지 < 한국저작권위원회 저작권배움터"); + }else if($(".main").length == 1){ + $("head title").text("메인페이지 < 한국저작권위원회 저작권배움터"); + } + else if($(".cont_tit h2").text() == "로그인"){ + $("head title").text("로그인페이지 < 한국저작권위원회 저작권배움터"); + } + else{ + $("head title").text(dep02_Text+" < "+dep01_Text+" < "+" 한국저작권위원회 저작권배움터"); + } + + + if($(".full_menu .depth01_li a:contains('ZOOM 신청 게시판(청소년)')").length == "1"){ $(".full_menu .depth01_li>a").css("width","24%"); $(".full_menu .depth01_li .depth02").css("width","calc(100% - 50px)"); diff --git a/src/main/webapp/visitEdu/usr/publish/script/content.js b/src/main/webapp/visitEdu/usr/publish/script/content.js index 6c84c19c..45a42fde 100644 --- a/src/main/webapp/visitEdu/usr/publish/script/content.js +++ b/src/main/webapp/visitEdu/usr/publish/script/content.js @@ -664,7 +664,7 @@ function addEduClassCopyTngr(target) { var duetdateleng = $("duet-date-picker").length + 1; - cloneObj.find(".calendar_th").append('
'); + cloneObj.find(".calendar_th").append('
'); if (target == 'addClassRowClsrm') { len = parent.find('tbody > tr').not('.calendar_wrap tr').length;