2021-06-14 14:33:31 +03:00
|
|
|
<!DOCTYPE HTML>
|
2020-03-15 21:13:12 +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/main.js"></script>
|
2020-03-15 21:13:12 +03:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2021-06-14 14:33:31 +03:00
|
|
|
<script>
|
|
|
|
(function(){
|
|
|
|
var settings = localStorage.getItem("settings");
|
|
|
|
const app = Elm.Main.init({
|
|
|
|
flags: {
|
|
|
|
settings: settings,
|
|
|
|
config: { relativeUrlPath: ["elm-ui-widgets"] }
|
|
|
|
}
|
|
|
|
});
|
|
|
|
app.ports.saveSettings.subscribe(function(settings){
|
|
|
|
localStorage.setItem("settings", settings);
|
|
|
|
});
|
|
|
|
}());
|
|
|
|
</script>
|
2020-03-15 21:13:12 +03:00
|
|
|
</body>
|
2021-06-14 14:33:31 +03:00
|
|
|
</html>
|