This commit is contained in:
2026-02-20 12:04:02 +01:00
parent d99fa137ec
commit 6cb1a005fd
5 changed files with 226 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<!doctype html>
<html>
<head>
<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@10.1.2/riot+compiler.min.js"></script>
</head>
<body>
<todo />
</body>
<script>
riot.compile().then(() => {
riot.mount('todo', {
title: 'I want to behave!',
todos: [
{ title: 'Avoid excessive caffeine', done: false ,id : 0},
{ title: 'Be less provocative', done: true , id:1},
{ title: 'Be nice to people', done: true, id:2}
]
})
})
</script>
</html>