-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtodo.html
102 lines (93 loc) · 4.34 KB
/
todo.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Parth's Blog and Journal</title>
<link rel="stylesheet" href="./css/style-mobile.css" />
<link rel="stylesheet" href="./css/style-tablet.css" />
<link rel="stylesheet" href="./css/style.css" />
<link rel="icon" type="image/png" href="./images/journal_icon.png" />
<script src="./js/app.js"></script>
<script src="https://unpkg.com/[email protected]"></script>
<script defer src="./js/todo.js"></script>
</head>
<body>
<header>
<img src="./images/journal_icon.png" alt="Journal Icon" class="journal-icon for-mobile">
<h1>Parth's Blog and Journal</h1>
<span class="clear-both">
Just a compilation of all the experiences that I gain along my path to fulfill my dreams.
</span>
<!-- Button to toggle opening and closing of hidden navbar in mobile, hidden on other devices -->
<button class="nav-toggle-btn for-mobile" id="mob-nav-btn" onclick="mobNavToggle()">
<img src="./images/menu-button-of-three-horizontal-lines.png" alt="MENU BUTTON">
</button>
<!-- This is navbar for mobile -->
<nav class="for-mobile" id="hidden-mob-nav">
<a href="./index.html" target="_self">Home</a>
<a href="./blogs.html" target="_self">Blogs</a>
<a href="#" target="_self">About</a>
<a href="./contact.html" target="_self">Contact</a>
<a href="./todo.html" target="_self">Todo</a>
</nav>
<!-- This is navbar for all other devices -->
<nav class="non-mobile">
<a href="./index.html" target="_self">Home</a>
<a href="./blogs.html" target="_self">Blogs</a>
<a href="./about_me.html" target="_self">About</a>
<a href="./contact.html" target="_self">Contact</a>
<a href="#" target="_self">Todo</a>
</nav>
</header>
<section class="todo">
<hr>
<h1>Todo List</h1>
<hr>
<div id="TODO_LIST" style="margin-left: 20px;">
<h4>Add TODO</h4>
<div>
<input v-model="newTodo" style="padding: 2px; position: relative; display: inline-block; opacity: 1; height: auto; width: auto; margin-left: 20px;" type="text" id="addTodo" name="addTodo" />
<button @click="addTodo" style="position: relative; height: auto; width: auto; margin-left: 1em;">Add</button>
</div>
<h4 style="margin-top: 2em">TODO</h4>
<ul>
<li v-for="item in incompleteTodo" @click="toggleComplete(item)">
<span :class="{completed: item.completed}">
{{ item.title }}
</span>
<button style="display: none; margin-left: 5px; font-size: 0.5rem; background-color: rgb(222, 62, 62);">Delete</button>
</li>
</ul>
<h4 style="margin-top: 2em;">Completed TODO</h4>
<ul>
<li v-for="item in completedTodo" @click="toggleComplete(item)">
<span :class="{completed: item.completed}">
{{ item.title }}
</span>
</li>
</ul>
</div>
<hr>
<footer>
<nav>
<a href="./index.html" target="_self">Home</a>
<a href="./blogs.html" target="_self">Blogs</a>
<a href="./about_me.html" target="_self">About</a>
<a href="./contact.html" target="_self">Contact</a>
<a href="#header" target="_self">Todo</a>
</nav>
<span>© Parth Gupta 2021</span>
</footer>
</body>
<style>
#TODO_LIST li {
cursor: pointer;
}
.completed {
text-decoration: line-through;
transition: ease-in 2s;
}
</style>
</html>