-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (61 loc) · 2.62 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- jquery for Bootstrap -->
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
<!-- bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'></script>
<!-- font awesome -->
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Indie+Flower|Kosugi+Maru" rel="stylesheet">
<!-- Vue.js script source -->
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<!--Resource para los metodos get y post-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-resource/1.3.4/vue-resource.min.js"></script>
<link rel="stylesheet" href="style.css">
<title>To do List App</title>
</head>
<body>
<div class="container-col-sm-8 col-sm-offset-2"></div>
<div id="taskApp">
<h1>To do List App</h1>
<div>
<h2 class="text-center">Add new Task</h2>
<form v-on:submit ='addTask'>
<div class="col-sm-8">
<input type="text" class="Form-control" v-model = "tasks.name">
</div>
<div class="col-sm-4">
<input type="submit" value="Add" class="btn btn-primary btn-block">
</div>
</form>
</div>
<table class ="table">
<thead>
<th>Checkmark</th>
<th>Task name</th>
<th>Delete</th>
</thead>
<tbody>
<tr v-for = 'task in tasks'>
<td>
<input type="checkbox" v-model = "task.done" v-on:click = "updateTask(task)">
</td>
<td>
<span :class="{taskDone: task.done}">{{task.name}}</span>
</td>
<td>
<button class="btn btn-danger btn-block" v-on:click="deleteTask(task)">Delete</button>
</td>
</tr>
</tbody>
</table>
</div>
<script src="script.js"></script>
</body>
</html>