tp5
This commit is contained in:
28
R4.01_R4.A.10/td_tp/tp5/ex1/index.html
Normal file
28
R4.01_R4.A.10/td_tp/tp5/ex1/index.html
Normal 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>
|
||||
Reference in New Issue
Block a user