|
|
|
@ -1,3 +1,7 @@ |
|
|
|
import { Project } from "./components/project.js" |
|
|
|
|
|
|
|
customElements.define('m-project', Project) |
|
|
|
|
|
|
|
function e(tag, attrs, content) { |
|
|
|
const el = document.createElement(tag) |
|
|
|
el.innerText = content |
|
|
|
@ -41,6 +45,9 @@ class Setup { |
|
|
|
document.body.appendChild( |
|
|
|
e('h1', {}, location.hash) |
|
|
|
) |
|
|
|
document.body.appendChild( |
|
|
|
e('m-project', {}, '') |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|