-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (72 loc) · 2.59 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<title>Willin Wang's Toys</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" href="//willin.wang/favicon.ico" />
<link rel="stylesheet" href="//unpkg.com/todomvc-app-css/index.css" />
<style>
[v-cloak] {
display: none;
}
.todo-list h3 {
line-height: 1.5em;
padding: 0 1em;
}
del {
color: rgba(255, 0, 99, 0.5);
}
del span {
color: #4d4d4d;
}
</style>
</head>
<body>
<section class="todoapp">
<header class="header">
<h1>Willin's Toys</h1>
</header>
<section class="main" v-show="list.length" v-cloak>
<ul class="todo-list">
<template v-for="l in list">
<li><h3>{{ l.category }}</h3></li>
<li
v-for="item in filter(l.items)"
class="item"
:key="item.name + Math.random()"
:class="{ unbought: !item.bought, deleted: item.deleted }"
>
<div class="view">
<input class="toggle" type="checkbox" v-model="item.bought" disabled />
<label>
<del v-if="item.deleted"><span>{{ item.name }}</span></del>
<span v-else>{{ item.name }}</span>
<span v-if="item.year">({{ item.year }})</span>
</label>
<label v-if="item.meta">{{ item.meta }}</label>
</div>
</li>
</template>
</ul>
</section>
<footer class="footer" v-show="list.length" v-cloak>
<span class="todo-count"> <strong>{{ remaining }}</strong> {{ remaining | pluralize }} wanted </span>
<ul class="filters">
<li><a href="#/all" :class="{ selected: visibility == 'all' }">All</a></li>
<li><a href="#/want" :class="{ selected: visibility == 'unbought' }">Want</a></li>
<li><a href="#/bought" :class="{ selected: visibility == 'bought' }">Bought</a></li>
<li><a href="#/active" :class="{ selected: visibility == 'active' }">Active</a></li>
<li><a href="#/deleted" :class="{ selected: visibility == 'deleted' }">Deleted</a></li>
</ul>
</footer>
</section>
<footer class="info">
<p>Written by <a href="https://willin.wang/">Willin Wang</a></p>
</footer>
<script src="//unpkg.com/vue"></script>
<script src="//unpkg.com/wtoys"></script>
<!-- <script src="toys.js"></script> -->
<script src="//unpkg.com/wtoys/app.js"></script>
</body>
</html>