-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
175 lines (168 loc) · 5.14 KB
/
example.html
File metadata and controls
175 lines (168 loc) · 5.14 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html>
<head>
<title>Library Catalog</title>
<link rel="stylesheet" href="example.css" />
</head>
<body>
<h1>Library Catalog</h1>
<form method="POST" action="/submit">
<input type="text" name="text" placeholder="Enter text">
<input type="email" name="email" placeholder="Enter email">
<input type="password" name="password" placeholder="Enter password">
<input type="number" name="number" placeholder="Enter number">
<input type="checkbox" name="checkbox" value="1"> Checkbox
<input type="radio" name="radio" value="1"> Radio 1
<input type="radio" name="radio" value="2"> Radio 2
<input type="file" name="file">
<input type="button" name="button" value="Button">
<input type="submit" name="submit" value="Submit">
<input type="reset" name="reset" value="Reset">
</form>
<!-- Search form -->
<form action="https://fake-endpoint.com/post" method="post">
<input type="text" name="search" placeholder="Search books..." />
<button type="submit">Search</button>
</form>
<!-- Books table -->
<table border="1">
<tr>
<th>Title</th>
<th>Author</th>
<th>Year</th>
<th>Availability</th>
<th>Actions</th>
</tr>
<tr>
<td style="color: red">1984</td>
<td>George Orwell</td>
<td>1949</td>
<td>Loaned</td>
<td>
<button>Return Book</button>
<button disabled>Loan Book</button>
<a href="#modal1" class="button-link">Remove Book</a>
</td>
</tr>
<tr>
<td>To Kill a Mockingbird</td>
<td>Harper Lee</td>
<td>1960</td>
<td>Available</td>
<td>
<button disabled>Return Book</button>
<button>Loan Book</button>
<a href="#modal1" class="button-link">Remove Book</a>
</td>
</tr>
<tr>
<td>One Hundred Years of Solitude</td>
<td>Gabriel García Márquez</td>
<td>1967</td>
<td>Available</td>
<td>
<button disabled>Return Book</button>
<button>Loan Book</button>
<a href="#modal1" class="button-link">Remove Book</a>
</td>
</tr>
<tr>
<td style="color: red">The Great Gatsby</td>
<td>F. Scott Fitzgerald</td>
<td>1925</td>
<td>Loaned</td>
<td>
<button>Return Book</button>
<button disabled>Loan Book</button>
<a href="#modal1" class="button-link">Remove Book</a>
</td>
</tr>
<tr>
<td>Moby Dick</td>
<td>Herman Melville</td>
<td>1851</td>
<td>Available</td>
<td>
<button disabled>Return Book</button>
<button>Loan Book</button>
<a href="#modal1" class="button-link">Remove Book</a>
</td>
</tr>
<tr>
<td style="color: red">Pride and Prejudice</td>
<td>Jane Austen</td>
<td>1813</td>
<td style="color: red">Loaned</td>
<td>
<button>Return Book</button>
<button disabled>Loan Book</button>
<a href="#modal1" class="button-link">Remove Book</a>
</td>
</tr>
<tr>
<td style="color: red">War and Peace</td>
<td>Leo Tolstoy</td>
<td>1869</td>
<td>Loaned</td>
<td>
<button>Return Book</button>
<button disabled>Loan Book</button>
<a href="#modal1" class="button-link">Remove Book</a>
</td>
</tr>
<tr>
<td style="color: red">Crime and Punishment</td>
<td>Fyodor Dostoevsky</td>
<td>1866</td>
<td>Loaned</td>
<td>
<button>Return Book</button>
<button disabled>Loan Book</button>
<a href="#modal1" class="button-link">Remove Book</a>
</td>
</tr>
<tr>
<td>The Catcher in the Rye</td>
<td>J.D. Salinger</td>
<td>1951</td>
<td>Available</td>
<td>
<button disabled>Return Book</button>
<button>Loan Book</button>
<a href="#modal1" class="button-link">Remove Book</a>
</td>
</tr>
<tr>
<td>Animal Farm</td>
<td>George Orwell</td>
<td>1945</td>
<td>Available</td>
<td>
<button disabled>Return Book</button>
<button>Loan Book</button>
<a href="#modal1" class="button-link">Remove Book</a>
</td>
</tr>
</table>
<!-- Statistics -->
<div class="statistics">
<h2>Statistics</h2>
<p>Number of books in library: 100</p>
<p>Number of books on loan: <span class="loaned-count">30</span></p>
</div>
<form action="https://fake-endpoint.com/add_book" method="get">
<p>
<button type="submit">Add new book</button>
</p>
</form>
<!-- Modal Section -->
<div id="modal1" class="modal">
<div class="modal-content">
<a href="#" class="close">×</a>
<p>Are you sure you want to remove this book?</p>
<!-- Placeholder for actual action -->
<a href="#" class="button-link">Confirm</a>
</div>
</div>
</body>
</html>