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