forked from bahmutov/todo-api-with-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (57 loc) · 1.8 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
<!doctype html>
<html data-framework="vue">
<head>
<meta charset="utf-8">
<title>Vue.js • TodoMVC</title>
<link rel="stylesheet" href="vendor/index.css">
<!-- <link rel="stylesheet" media="(prefers-color-scheme: dark)" href="vendor/dark.css"> -->
<script>
if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
const link = document.createElement("link")
link.type = "text/css";
link.rel = "stylesheet";
link.href = 'vendor/dark.css';
document.head.appendChild(link)
}
</script>
<style>
[v-cloak] {
display: none;
}
</style>
</head>
<body>
<section class="todoapp">
<header class="header">
<h1 data-cy="app-title">todos</h1>
<input class="new-todo" autofocus autocomplete="off" placeholder="What needs to be done?" :value="newTodo"
@input="setNewTodo" @keyup.enter="addTodo">
</header>
<section class="main" v-show="todos.length" v-cloak>
<ul class="todo-list">
<li v-for="todo in todos" class="todo" :key="todo.id" :class="{ completed: todo.done }">
<div class="view">
<input class="toggle" type="checkbox" v-model="todo.done">
<label>{{ todo.text }}</label>
<button class="destroy" @click="removeTodo(todo)"></button>
</div>
</li>
</ul>
</section>
<div class="loading" v-show="loading">Loading data ...</div>
</section>
<footer class="info">
<p>Written by
<a href="http://evanyou.me">Evan You</a>
</p>
<p>Part of
<a href="http://todomvc.com">TodoMVC</a>
</p>
</footer>
<script src="vendor/polyfill.min.js"></script>
<script src="vendor/vue.js"></script>
<script src="vendor/vuex.js"></script>
<script src="vendor/axios.min.js"></script>
<script src="app.js"></script>
</body>
</html>