-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (51 loc) · 2.15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TodoList</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<style>
body , .list-group{
background-color: black;
color: red;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-auto">
<div class="text-center">
<h1>TodoList</h1>
</div>
<div id="todo">
<div class="form-group">
<button class="btn btn-info" v-if="addtodo" v-on:click='addInput'>Add TodoList</button>
<button class="btn btn-warning" v-if="edittodo" v-on:click='editInput'>Edit TodoList</button>
</div>
<div class="form-group">
<input v-if="seen" type="text" v-model='todoText' class="form-control" placeholder="Enter TodoList">
</div>
<div>
<ul class="list-group" v-if="todoItem.length">
<p><h4>Display</h4></p>
<li class="list-group-item" v-for="(todo,index) in todoItem">
<label>
<input type="checkbox" v-bind:id="index" v-bind:value="index" v-model="selectedTodo" id="todoitem">
{{ todo }}</label>
</li>
</ul>
<div class="form-group mt-3" v-if="selectedTodo.length > 0">
<button class="btn btn-warning" v-on:click="editItem">Edit</button>
<button class="btn btn-danger" v-on:click="removeItem">Remove</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="/js/app.js"></script>
</body>
</html>