Skip to content

Instantly share code, notes, and snippets.

@stormont
Last active December 9, 2016 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stormont/8febfabc5179f966363394c3467c43dd to your computer and use it in GitHub Desktop.
Save stormont/8febfabc5179f966363394c3467c43dd to your computer and use it in GitHub Desktop.
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