tooty/public/index.html
2017-04-20 21:01:47 +02:00

27 lines
811 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Tooty</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="//bootswatch.com/slate/bootstrap.min.css" media="all" rel="stylesheet" />
<link href="./style.css" media="all" rel="stylesheet" />
</head>
<body>
<script src="app.js"></script>
<script>
const app = Elm.Main.fullscreen({
client: JSON.parse(localStorage.getItem("tooty.client")),
registration: JSON.parse(localStorage.getItem("tooty.registration"))
});
app.ports.saveClient.subscribe(json => {
localStorage.setItem("tooty.client", json);
});
app.ports.saveRegistration.subscribe(json => {
localStorage.setItem("tooty.registration", json);
});
</script>
</body>
</html>