-
Notifications
You must be signed in to change notification settings - Fork 22
/
index.html
42 lines (35 loc) · 1.39 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css" integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>To do list</title>
</head>
<body>
<div class="container">
<header class="text-center text-light my-4">
<h1 class="mb-4">Todo List</h1>
<form class="search">
<input type="text" class="form-control m-auto" name="search" placeholder="Search Todos..">
</form>
</header>
<ul class="list-group todos mx-auto text-light">
</ul>
<form class="add text-center my-4">
<label class="text-light">Add a new todo...</label>
<input type="text" class="form-control m-auto" name="add" />
</form>
</div>
<script src="sandbox.js"></script>
<script>
$('input').click(function() {
console.log($(this).context.checked);
$(this).parent().toggleClass("selected");
// console.log($(this))
});
</script>
</body>
</html>