Skip to content

Commit

Permalink
feat(header): histories의 header는 동적으로 css 파일을 가져와서 head에 link
Browse files Browse the repository at this point in the history
  • Loading branch information
nyj001012 committed Jan 16, 2024
1 parent 043455e commit 058086a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion frontend/src/pages/histories/custom/one_on_one_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ export default function oneOnOne($container) {
}

this.render = () => {

if (document.getElementsByTagName("head") !== null) {
document.getElementsByTagName("head")[0].insertAdjacentHTML(
"beforeend",
'<link rel="stylesheet" href="../../../../assets/css/histories/one_on_one.css"/>'
);
}
this.$container.innerHTML = `
<div class="histories" id="content-wrapper">d
</div>
`;
}

this.render();
Expand Down

0 comments on commit 058086a

Please sign in to comment.