-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (44 loc) · 1.54 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta property="og:image" content="img/to-do-list.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Link google fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&display=swap" rel="stylesheet">
<!-- Link font awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css">
<!-- Link css -->
<link rel="stylesheet" href="css/style.css">
<!-- Link Vue -->
<!-- <script src="https://cdn.jsdelivr.net/npm/vue"></script> -->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<title>Your to-do list</title>
</head>
<body>
<div id="app">
<div id="inpt">
<h1>Your To-Do List!</h1>
<input v-model="text" v-on:keyup.13="addTo" placeholder="Add a chore">
<button @click="addTo">Add</button>
</div>
<div class="container">
<div id="fork">
<img src="img/fork1.png" alt="">
</div>
<div id="list">
<h2>{{message}}</h2>
<ul>
<li v-for='(toDo, index) in toDos'><p>{{toDos[index]}} </p><i class="fas fa-times" @click="remove(index)"></i></li>
</ul>
</div>
<div id="knife">
<img src="img/knife2.png" alt="">
</div>
</div>
</div>
<script type="text/javascript" src="js/script.js">
</script>
</body>
</html>