-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
85 lines (78 loc) · 2.67 KB
/
index.html
File metadata and controls
85 lines (78 loc) · 2.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Library Management System</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>Library Management System</h1>
<main>
<div class="section">
<h2>Add a Book</h2>
<label for="title">Title:</label>
<input type="text" id="title" placeholder="Enter title" />
<label for="author">Author:</label>
<input type="text" id="author" placeholder="Enter author" />
<label for="isbn">ISBN:</label>
<input type="text" id="isbn" placeholder="Enter ISBN" />
<label for="copies">Copies:</label>
<input type="number" id="copies" placeholder="Enter number of copies" />
<button onclick="addBook()">Add Book</button>
</div>
<div class="section">
<h2>Reserve a Book</h2>
<label for="reserveIsbn">ISBN:</label>
<input type="text" id="reserveIsbn" placeholder="Enter ISBN" />
<label for="reserveBorrower">Borrower:</label>
<input
type="text"
id="reserveBorrower"
placeholder="Enter borrower's name"
/>
<button onclick="reserveBook()">Reserve Book</button>
</div>
<div class="section">
<h2>List Reserved Books</h2>
<label for="reservedBorrower">Borrower:</label>
<input
type="text"
id="reservedBorrower"
placeholder="Enter borrower's name"
/>
<button onclick="listReservedBooks()">List Reserved Books</button>
<ul id="reservedBooks"></ul>
</div>
<div class="section">
<h2>Library Books</h2>
<div id="libraryBooks"></div>
</div>
<div class="section">
<h2>Borrow a Book</h2>
<label for="borrowIsbn">ISBN:</label>
<input type="text" id="borrowIsbn" placeholder="Enter ISBN" />
<label for="borrowerName">Borrower Name:</label>
<input
type="text"
id="borrowerName"
placeholder="Enter borrower's name"
/>
<button onclick="borrowBook()">Borrow Book</button>
</div>
<div class="section">
<h2>Return a Book</h2>
<label for="returnIsbn">ISBN:</label>
<input type="text" id="returnIsbn" placeholder="Enter ISBN" />
<label for="returnBorrower">Borrower Name:</label>
<input
type="text"
id="returnBorrower"
placeholder="Enter borrower's name"
/>
<button onclick="returnBook()">Return Book</button>
</div>
</main>
<script src="script.js"></script>
</body>
</html>