summaryrefslogtreecommitdiffstats
path: root/src/index.html
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@valuemotive.com>2021-10-29 16:52:15 +0300
committerJan Tuomi <jan.tuomi@valuemotive.com>2021-10-29 16:52:15 +0300
commite500394ed975055657fde19d3cd1c106888734b5 (patch)
tree56990da5fd026bc6321fef3bba113b0e486cc216 /src/index.html
parenta972058d20b773f4488df51babb40156c5a335e1 (diff)
Implement stuff
Diffstat (limited to 'src/index.html')
-rw-r--r--src/index.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/index.html b/src/index.html
new file mode 100644
index 0000000..ccf508a
--- /dev/null
+++ b/src/index.html
@@ -0,0 +1,22 @@
+<html>
+
+<head>
+ <meta charset="UTF-8">
+ <title>Main</title>
+ <link rel="stylesheet" href="main.css">
+ </link>
+ <script src="main.js"></script>
+</head>
+
+<body>
+ <div id="app"></div>
+ <script>
+ var app = Elm.Main.init({
+ node: document.getElementById("app")
+ });
+
+ app.ports.showAlert.subscribe((message) => window.alert(message));
+ </script>
+</body>
+
+</html> \ No newline at end of file