mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-29 06:45:21 +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>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<title>elm-markup-pages</title>
|
<title>elm-markup-pages</title>
|
||||||
|
<script src="./js/app.js" type="text/javascript"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script src="./app.js"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</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