-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (66 loc) · 2.88 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
71
72
73
74
75
76
77
78
79
80
81
<!-- note:
modified my P01 todo-list code for this (2b: jQuery) project.
it's not an exact copy of P01 w jQuery instead of JS obv.;
wanted to mess about & see what I could do differently. -->
<!DOCTYPE html>
<!--the HTML's language-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--note to self; fixed bug "key 'width-device-width' is not recognized and ignored" by...-->
<!-- ...deleting the space between 'width=device-width,' & 'initial-scale=1'-->
<meta name="viewport" content="width=device-width,initial-scale=1">
<!--links to font-awesome's (a component library)
icons (for the buttons!)-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.0/css/all.min.css"
integrity="sha512-10/jx2EXwxxWqCLX/hHth/vu2KY3jCF70dCQB8TSgNjbCVAC/8vai53GfMDrO2Emgwccf2pJqxct9ehpzG+MTw=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<!--links to google fonts-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100&display=swap" rel="stylesheet">
<!--links to (my) external CSS file-->
<link rel="stylesheet" href="2b.css">
<title>jQuery To Do List</title>
</head>
<body>
<header>
<h1>What ought to get done?</h1>
</header>
<div class="container">
<h2> Welcome. </h2>
<h3> Type and hit enter to get started. </h3>
<button id="togglebtn">what to-do? (hide/show on click)</button>
<p>
you can mark an item as complete by clicking the checkmark,
</br > and delete an item by clicking the skull.
</p>
<input type="text" class="todo-input" id="todo-input-id" placeholder="type & press enter to add a new item...">
<button id="what">
<i class="fa-solid fa-question"></i>
</button>
<button id="clear" onclick="clearAll()">
<i class="fa-solid fa-moon"></i>
</button>
<div class="todo-container">
<ul id="list">
<li></li>
</ul>
</div>
</div>
</br>
<footer>
<h3>May 2022.</h3>
</footer>
<!--links to jQuery CDN-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<!--links to "sweetalert" alert message styling CDN-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.2/sweetalert.min.js"
integrity="sha512-AA1Bzp5Q0K1KanKKmvN/4d3IRKVlv9PYgwFPvm32nPO6QS8yH1HO7LbgB1pgiOxPtfeg5zEn2ba64MUcqJx6CA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!--links to my external JS file
where the jQuery code will be-->
<script src="./2b.js" type="text/javascript"></script>
</body>
</html>