diff --git a/src/routes/lecture-home.js b/src/routes/lecture-home.js index 1cdd245..d76d13e 100644 --- a/src/routes/lecture-home.js +++ b/src/routes/lecture-home.js @@ -19,7 +19,7 @@ const addBoard = async() => { "searchCondition": "ALL", "searchKeyword": "", "currentPage": 0, - }) + }); const data = response.data; const totalPages = data.page.totalPages; const latestWrite = data.list.length > 0 ? new Date(data.list[0].registDt) : new Date(0, 0, 0); @@ -49,10 +49,25 @@ const addBoard = async() => {
  • 강의 묻고답하기${ isNew ? ` ` : "" } ${boardCount}
  • - `) + `); } }; +// 강의계획서 조회 버튼 추가 +const addLecturePlan = async() => { + const redirectLectureHandler = async() => { + const selectedSubj = $("input[name='selectedSubj']").val(); + window.open('https://klas.kw.ac.kr/std/cps/atnlc/popup/LectrePlanStdView.do?selectSubj=' + selectedSubj, '', 'width=1000, height=800, scrollbars=yes, title=강의계획서 조회'); + }; + const lectureElem = $(`강의계획서 조회`); + // set style + lectureElem.css({ + "margin-left": "15px", + }); + lectureElem.click(redirectLectureHandler); + $(".subtitle").append(lectureElem); +}; + export default () => { // 인증 팝업 무시 @@ -126,6 +141,6 @@ export default () => { }); + addLecturePlan(); setTimeout(addBoard, 500); - }; \ No newline at end of file