-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjquery.html
More file actions
98 lines (87 loc) · 3.08 KB
/
Copy pathjquery.html
File metadata and controls
98 lines (87 loc) · 3.08 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jQuery Todo App</title>
<link rel="stylesheet" href="css/styles.css">
<!-- jQuery v3.7.1 CDN -->
<script src="https://code.jquery.com/jquery-3.7.1.min.js"
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
</head>
<body>
<div class="app-container">
<header class="main-header">
<div class="header-content">
<div class="header-text">
<h1>Todo App</h1>
<p class="header-subtitle">in jQuery</p>
</div>
<nav class="navigation">
<a href="index.html" class="nav-link home-link">
Home
</a>
<a href="react.html" class="nav-link react-link">
React Version
</a>
</nav>
</div>
</header>
<main class="main-content">
<div class="todo-app jquery-app">
<div class="app-header">
<h2>My Todo List</h2>
<div class="jquery-badge">jQuery v3.7.1</div>
</div>
<!-- Todo Input Section -->
<div class="todo-input-section">
<div class="input-group">
<input type="text" id="todo-input" class="todo-input" placeholder="Add a new todo..." maxlength="100">
<button id="add-todo-btn" class="btn btn-primary">
<span class="btn-icon">+</span>
Add Todo
</button>
</div>
</div>
<!-- Todo Statistics -->
<div class="todo-stats">
<div class="stat-item">
<span class="stat-label">Total:</span>
<span id="total-count" class="stat-value">0</span>
</div>
<div class="stat-item">
<span class="stat-label">Active:</span>
<span id="active-count" class="stat-value">0</span>
</div>
<div class="stat-item">
<span class="stat-label">Completed:</span>
<span id="completed-count" class="stat-value">0</span>
</div>
</div>
<!-- Todo Filter Buttons -->
<div class="todo-filters">
<button class="filter-btn active" data-filter="all">All</button>
<button class="filter-btn" data-filter="active">Active</button>
<button class="filter-btn" data-filter="completed">Completed</button>
<button class="clear-completed-btn">Clear Completed</button>
</div>
<!-- Todo List -->
<div class="todo-list-container">
<ul id="todo-list" class="todo-list">
<!-- Todos will be dynamically added here -->
</ul>
<div id="empty-state" class="empty-state">
<h3>No todos yet</h3>
<p>Add your first todo above to get started!</p>
</div>
</div>
</div>
</main>
<footer class="main-footer">
<p>© 2025 jQuery Todo App - <a href="index.html">Back to Home</a></p>
</footer>
</div>
<!-- Load jQuery Application -->
<script src="js/jquery-app.js"></script>
</body>
</html>