mirror of
https://github.com/mdgriffith/elm-optimize-level-2.git
synced 2024-12-01 19:35:08 +03:00
23 lines
462 B
HTML
23 lines
462 B
HTML
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Main</title>
|
|
<script src="output/elm.opt.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="myapp"></div>
|
|
<script>
|
|
var app = Elm.Main.init({
|
|
node: document.getElementById('myapp'),
|
|
});
|
|
|
|
window.results = [];
|
|
app.ports.reportResults.subscribe(function(message) {
|
|
window.results = message;
|
|
document.title = 'done';
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|