-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Shift everything around in main.go - Use shortened json result as response to front-end for development - Follow advice from github on how to embed custom css when using elm-reactor elm-lang/elm-reactor#138 (comment)
- Loading branch information
1 parent
9496c48
commit 7576afc
Showing
3 changed files
with
210 additions
and
116 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<html> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Title</title> | ||
<link rel="stylesheet" href="https://unpkg.com/tachyons@4.5.3/css/tachyons.min.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> | ||
|
||
<!-- Fonts and external JS and styles are available, I've put Ace for example --> | ||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.4/ace.js"></script> | ||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.4/theme-chrome.js"></script> | ||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.4/worker-lua.js"></script> | ||
|
||
<!-- Put the name of your app here (my sources place in `src` forder) --> | ||
<script type="text/javascript" src="/_compile/src/main.elm"></script> | ||
|
||
<!-- Removes splash and starts elm app. --> | ||
<script type="text/javascript"> | ||
while (document.body.firstChild) { | ||
document.body.removeChild(document.body.firstChild); | ||
} | ||
runElmProgram(); | ||
</script> | ||
|
||
</html> |
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