mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-28 14:23:04 +03:00
Put script tag in head.
This commit is contained in:
parent
65566f02a4
commit
8876184dc5
@ -1,5 +0,0 @@
|
||||
import { Elm } from "./Main.elm";
|
||||
|
||||
Elm.Main.init({
|
||||
node: document.getElementById("app")
|
||||
});
|
@ -3,10 +3,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>elm-markup-pages</title>
|
||||
<script src="./js/app.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script src="./app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
7
site/src/js/app.js
Normal file
7
site/src/js/app.js
Normal file
@ -0,0 +1,7 @@
|
||||
import { Elm } from "../Main.elm";
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
Elm.Main.init({
|
||||
node: document.getElementById("app")
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user