Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Index page for use with elm-reactor
<html>
<head>
<meta charset="UTF-8">
<title>Title</title>
<!-- Put the path to your styles here -->
<link rel="stylesheet" href="/static/styles.css">
</head>
<body>
<div style="width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #9A9A9A; font-family: &#39;Source Sans Pro&#39;;">
<div style="font-size: 3em;">Building your project!</div>
<img src="/_reactor/waiting.gif">
<div style="font-size: 1em">With new projects, I need a bunch of extra time to download packages.</div>
</div>
</body>
<!-- Put the Elm module path to your app here, after the /_compile/ path -->
<script type="text/javascript" src="/_compile/src/Main.elm"></script>
<!-- Starts elm app. -->
<script type="text/javascript">
while (document.body.firstChild) {
document.body.removeChild(document.body.firstChild);
}
runElmProgram();
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment