Index page for use with elm-reactor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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: 'Source Sans Pro';"> | |
<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