2021-02-03 00:22:10 +03:00
|
|
|
<html>
|
|
|
|
<head>
|
2021-06-14 14:33:31 +03:00
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Main</title>
|
|
|
|
<style>body { padding: 0; margin: 0; }</style>
|
2021-06-14 17:22:59 +03:00
|
|
|
<script src="/elm-ui-widgets/3.0.0/main.js"></script>
|
2021-02-03 00:22:10 +03:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2021-06-14 14:33:31 +03:00
|
|
|
<script>
|
|
|
|
(function(){
|
|
|
|
var settings = localStorage.getItem("settings");
|
2021-06-14 17:02:21 +03:00
|
|
|
const app = Elm.Main.init({
|
|
|
|
flags: {
|
|
|
|
settings: settings,
|
|
|
|
config: { relativeUrlPath: ["elm-ui-widgets", "3.0.0"] }
|
|
|
|
}
|
|
|
|
});
|
2021-06-14 14:33:31 +03:00
|
|
|
app.ports.saveSettings.subscribe(function(settings){
|
|
|
|
localStorage.setItem("settings", settings);
|
|
|
|
});
|
|
|
|
}());
|
|
|
|
</script>
|
2021-02-03 00:22:10 +03:00
|
|
|
</body>
|
2021-06-14 14:33:31 +03:00
|
|
|
</html>
|