Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
79 lines (72 loc) · 2.4 KB
/
Copy pathindex.html
File metadata and controls
79 lines (72 loc) · 2.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Book Library</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Header Section -->
<header>
<h1>My Book Library</h1>
<p class="subtitle">PhillyCoderDojo - Session 17: JavaScript & DOM</p>
</header>
<main>
<!-- Add Book Form -->
<section class="form-section">
<h2>Add a New Book</h2>
<form id="bookForm">
<div class="form-group">
<label for="titleInput">Book Title:</label>
<input
type="text"
id="titleInput"
placeholder="Enter book title..."
required
>
</div>
<div class="form-group">
<label for="authorInput">Author:</label>
<input
type="text"
id="authorInput"
placeholder="Enter author name..."
required
>
</div>
<button type="submit" class="btn-add">Add Book</button>
</form>
</section>
<!-- Search Section -->
<section class="search-section">
<input
type="text"
id="searchInput"
placeholder="Search books..."
>
</section>
<!-- Stats Section -->
<section class="stats-section">
<p>Total Books: <span id="bookCount">0</span></p>
</section>
<!-- Book List -->
<section class="books-section">
<h2>My Books</h2>
<div id="bookList">
<!-- Books will be dynamically inserted here by JavaScript -->
</div>
</section>
<!-- Empty State Message -->
<div id="emptyMessage" class="empty-message" style="display: none;">
<p>No books yet! Add your first book above.</p>
</div>
</main>
<footer>
<p>Built with JavaScript at PhillyCoderDojo</p>
<p>Session 17 - Learning DOM Manipulation</p>
</footer>
<!-- JavaScript file - loaded at the end for better performance -->
<script src="script.js"></script>
</body>
</html>