mirror of
https://github.com/Orasund/elm-ui-widgets.git
synced 2024-11-22 13:14:10 +03:00
26 lines
592 B
HTML
26 lines
592 B
HTML
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Main</title>
|
|
<style>body { padding: 0; margin: 0; }</style>
|
|
<script src="/elm-ui-widgets/3.0.0/main.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<script>
|
|
(function(){
|
|
var settings = localStorage.getItem("settings");
|
|
const app = Elm.Main.init({
|
|
flags: {
|
|
settings: settings,
|
|
config: { relativeUrlPath: ["elm-ui-widgets", "3.0.0"] }
|
|
}
|
|
});
|
|
app.ports.saveSettings.subscribe(function(settings){
|
|
localStorage.setItem("settings", settings);
|
|
});
|
|
}());
|
|
</script>
|
|
</body>
|
|
</html>
|