-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (35 loc) · 1.16 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
<!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" />
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script src="./main.js"></script>
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" type="text/css" href="css/main.css">
<title>Draid Todo Things</title>
</head>
<body>
<div id="app">
<div class="container">
<h1>Draid Todo Things</h1>
<input type="text" v-model="newTask" @input="updateMessage" placeholder="Add a task..." />
<input v-on:click="addtask()" type="submit" value="Add" />
<p></p>
<ul class="todo-list">
<li v-for="(task, index) in tasks" :key="task.id">
{{ task.title }}
<button @click="deleteTask(index)" class="delete-btn">Delete</button>
</li>
</ul>
</div>
<script>
const mountedApp = app.mount("#app")
</script>
</div>
</body>
</html>