mirror of
https://codeberg.org/vlw/victorwesterlund.com.git
synced 2025-09-14 03:23:41 +02:00
16 lines
No EOL
434 B
JavaScript
16 lines
No EOL
434 B
JavaScript
export default class Modal {
|
|
constructor() {
|
|
this.assetsRoot = "/";
|
|
|
|
this.importStyleSheet();
|
|
console.log("post", Symbol.for("modal.style"));
|
|
}
|
|
|
|
importStyleSheet() {
|
|
const style = document.createElement("link");
|
|
style.setAttribute("rel", "stylesheet");
|
|
style.setAttribute("href", this.assetsRoot + "css/modal.css");
|
|
|
|
document.head.appendChild(style);
|
|
}
|
|
} |