2024-03-12 10:45:12 +01:00
|
|
|
<!doctype html>
|
2024-03-01 15:39:57 +01:00
|
|
|
<html>
|
|
|
|
<head>
|
2024-03-12 10:45:12 +01:00
|
|
|
<title>Riot todo</title>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<link rel="stylesheet" href="todo.css">
|
|
|
|
<script src="todo.riot" type="riot"></script>
|
|
|
|
<script src="https://unpkg.com/riot@9.1.3/riot+compiler.min.js"></script>
|
2024-03-01 15:39:57 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
2024-03-12 10:45:12 +01:00
|
|
|
<todo />
|
|
|
|
<script>
|
|
|
|
riot.compile().then(() => {
|
|
|
|
riot.mount('todo', {
|
|
|
|
title: 'I want to behave!',
|
|
|
|
items: [
|
|
|
|
{ title: 'Avoid excessive caffeine', done: false },
|
|
|
|
{ title: 'Be less provocative', done: true },
|
|
|
|
{ title: 'Be nice to people', done: true }
|
|
|
|
]
|
|
|
|
})
|
|
|
|
})
|
|
|
|
</script>
|
2024-03-01 15:39:57 +01:00
|
|
|
</body>
|
2024-03-12 10:45:12 +01:00
|
|
|
</html>
|