elm-ui-widgets/docs/index.html

27 lines
593 B
HTML
Raw Permalink Normal View History

<!DOCTYPE HTML>
2020-03-15 21:13:12 +03:00
<html>
<head>
<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>
<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>
</html>