summaryrefslogtreecommitdiffstats
path: root/src/index.html
diff options
context:
space:
mode:
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