Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
πŸ”¨ Add lecture plan lookup button on lecture-home (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirusu400 committed Sep 19, 2022
1 parent e4dc7f0 commit 86984d7
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/routes/lecture-home.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -49,10 +49,25 @@ const addBoard = async() => {
<li><a href="#" onclick="linkUrl('/std/lis/sport/573f918c23984ae8a88c398051bb1263/BoardQnaListStdPage.do');">κ°•μ˜ λ¬»κ³ λ‹΅ν•˜κΈ°${
isNew ? ` <img v-if="prjctNewCnt > 0" src="/assets/modules/std/images/common/icon-new.png"> ` : ""
} <!----><span class="oval custom-boardcount">${boardCount}</span></a></li>
`)
`);
}
};

// κ°•μ˜κ³„νšμ„œ 쑰회 λ²„νŠΌ μΆ”κ°€
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 = $(`<span class="subjectLectureInfo">κ°•μ˜κ³„νšμ„œ 쑰회</span>`);
// set style
lectureElem.css({
"margin-left": "15px",
});
lectureElem.click(redirectLectureHandler);
$(".subtitle").append(lectureElem);
};


export default () => {
// 인증 νŒμ—… λ¬΄μ‹œ
Expand Down Expand Up @@ -126,6 +141,6 @@ export default () => {

});

addLecturePlan();
setTimeout(addBoard, 500);

};

1 comment on commit 86984d7

@mirusu400
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

μˆ˜μ •: 이슈 #93 에 λŒ€ν•œ μ»€λ°‹μž…λ‹ˆλ‹€.

Please sign in to comment.