diff options
Diffstat (limited to 'src/js/ui/mainLayout.js')
-rw-r--r-- | src/js/ui/mainLayout.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/js/ui/mainLayout.js b/src/js/ui/mainLayout.js index 2c76177..6201e2b 100644 --- a/src/js/ui/mainLayout.js +++ b/src/js/ui/mainLayout.js @@ -1,22 +1,28 @@ +import { makeElement } from "../arching-kaos-generator.js"; + var scripts = [ { element:"script", + type: "module", src:"./js/ui/header.js" }, { element:"script", + type: "module", src:"./js/ui/menu.js" }, { element:"script", + type: "module", src:"./js/ui/main.js" }, { element:"script", + type: "module", src:"./js/ui/footer.js" } ] for ( var i = 0; i < scripts.length; i++ ) { - makeElement(scripts[i], root.body); + makeElement(scripts[i], document.querySelector('body')); } |