-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdiscover(Horror).php
More file actions
388 lines (375 loc) · 20.2 KB
/
discover(Horror).php
File metadata and controls
388 lines (375 loc) · 20.2 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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chapter Threads - Theads of Knowledge</title>
<meta name="title" content="Chapter Threads - Theads of Knowledge">
<meta name="description"
content="Read More And Make Success The Result Of Perfection.">
<link rel="shortcut icon" href="./favicon.svg" type="image/svg+xml">
<link rel="stylesheet" href="read.css">
<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=Philosopher:wght@400;700&family=Poppins:wght@400;500;600&display=swap" rel="stylesheet">
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="preload" as="image" href="./assets/images/hero-banner.png">
<title>Document</title>
<style>
#results {
position: absolute;
top: 100%;
left: 0;
right: 100%;
width: 1141px; /* Adjust width as needed */
max-height: 900px;
overflow-y: auto;
background: #fff;
border: 1px solid #ddd;
border-radius: 0 0 5px 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
z-index: 2;
display: flex;
flex-wrap: wrap;
border: none;
}
#searchBar {
width: 400px;
padding: 10px;
font-size: 16px;
border: 1px solid #ddd;
border-radius: 5px;
}
.result-item {
width: calc(33.33% - 20px); /* Adjust the width as needed */
margin: 10px;
display: inline-block;
cursor: pointer;
}
.book-details {
padding: 10px;
}
.book-details p {
margin: 0;
}
.result-item:hover {
background-color: #f0f0f0;
}
.not-found-message {
padding: 10px;
text-align: center;
font-style: italic;
color: #555;
}
img{
height: 320px;
}
section p{
margin-top: 30px;
}
</style>
</head>
<body>
<header class="header" data-header>
<div class="container">
<a href="#" class="logo">Chapter Threads</a>
<div class="search-wrapper">
<!-- <i class="fas fa-search" style="cursor: pointer; margin-right: 150px;"></i> -->
<input type="text" id="searchBar" placeholder="Search Book or Author..." style="widht: 400px;">
<div id="results"></div>
</div>
<nav class="navbar" data-navbar>
<ul class="navbar-list">
<li class="navbar-item">
<a href="index.php" class="navbar-link" data-nav-link>Home</a>
</li>
<li class="navbar-item">
<a href="#contact" class="navbar-link" data-nav-link>Contact</a>
</li>
<?php
if(isset($_SESSION['Email']))
{
echo '<li class="navbar-item">
<a href="Logout.php" class="navbar-link" data-nav-link>Log Out</a>
</li>';
}
else{
echo'<button class="navbar-link dropdown">
Sign Up
<i class="fa fa-caret-down"></i>
<div class="dropdown-content">
<a href="Login.php">Log-In</a>
<a href="Sign-In.php">Sign up</a>
</div>
</button>';
}
?>
<button class="navbar-link dropdown">
Genre
<i class="fa fa-caret-down"></i>
<div class="dropdown-content scrollable-menu">
<a href="discover(Sci-fi).php">Sci-Fi</a>
<a href="discover(Fantasy).php">Fantasy</a>
<a href="discover(bio).php">Biography</a>
<a href="discover(Horror).php">Horror</a>
<a href="discover(Romance).php">Romance</a>
</div>
</button>
</ul>
</nav>
<button class="nav-toggle-btn" aria-label="toggle menu" data-nav-toggler>
<ion-icon name="menu-outline" aria-hidden="true" class="open"></ion-icon>
<ion-icon name="close-outline" aria-hidden="true" class="close"></ion-icon>
</button>
</div>
</header>
<center>
<br>
</section>
<section class="featured-products">
<div class="product" id="Books">
<a href="Priznor.php"><img src="./Bookimg/Horror/The-Yellow-Wallpaper.jpg" alt="Product 1"></a>
<p>Free</p>
<a href="Priznor.php"><button class="bt">Read Now</button></a>
<br>
<form action="wishlist.php" method="post">
<input type="hidden" name="title" value="The Yellow Wallpaper"> <!-- Replace with the actual title -->
<input type="hidden" name="image" value="./Bookimg/Horror/The-Yellow-Wallpaper.jpg"> <!-- Replace with the actual image path -->
<input type="hidden" name="price" value="Free"> <!-- Replace with the actual price -->
<button class="add-to-cart" onclick="toggleWishlist('button1')"style="border: none; background: none; padding: 0;">
<i id="button1" class="fas fa-heart wishlist-icon add-to-cart" title="Wishlist"> Wishlist</i>
</button>
</form>
</div>
<div class="product" id="Books">
<a href="#"><img src="./Bookimg/Horror/Dracula.jpg" alt="Product 1"></a>
<p>₹325</p>
<a href=""><button class="bt">Buy Now</button></a>
<br>
<form action="wishlist.php" method="post">
<input type="hidden" name="title" value="Dracula"> <!-- Replace with the actual title -->
<input type="hidden" name="image" value="./Bookimg/Horror/Dracula.jpg"> <!-- Replace with the actual image path -->
<input type="hidden" name="price" value="₹325"> <!-- Replace with the actual price -->
<button class="add-to-cart" onclick="toggleWishlist('button2')"style="border: none; background: none; padding: 0;">
<i id="button2" class="fas fa-heart wishlist-icon add-to-cart" title="Wishlist"> Wishlist</i>
</button>
</form>
</div>
<div class="product" id="Books">
<a href="#"><img src="./Bookimg/Horror/The-Shadow-Over-Innsmouth.jpg" alt="Product 1"></a>
<p>₹325</p>
<a href=""><button class="bt">Buy Now</button></a>
<br>
<form action="wishlist.php" method="post">
<input type="hidden" name="title" value="The Shadow Over Innsmouth"> <!-- Replace with the actual title -->
<input type="hidden" name="image" value="./Bookimg/Horror/The-Shadow-Over-Innsmouth.jpg"> <!-- Replace with the actual image path -->
<input type="hidden" name="price" value="₹325"> <!-- Replace with the actual price -->
<button class="add-to-cart" onclick="toggleWishlist('button3')"style="border: none; background: none; padding: 0;">
<i id="button3" class="fas fa-heart wishlist-icon add-to-cart" title="Wishlist"> Wishlist</i>
</button>
</form>
</div>
<div class="product" id="Books">
<a href="#"><img src="./Bookimg/Horror/Collected-Works-of-Poe.jpg" alt="Product 1"></a>
<p>₹325</p>
<a href=""><button class="bt">Buy Now</button></a>
<br>
<form action="wishlist.php" method="post">
<input type="hidden" name="title" value="Collected Works of Poe"> <!-- Replace with the actual title -->
<input type="hidden" name="image" value="./Bookimg/Horror/Collected-Works-of-Poe.jpg"> <!-- Replace with the actual image path -->
<input type="hidden" name="price" value="₹325"> <!-- Replace with the actual price -->
<button class="add-to-cart" onclick="toggleWishlist('button4')"style="border: none; background: none; padding: 0;">
<i id="button4" class="fas fa-heart wishlist-icon add-to-cart" title="Wishlist"> Wishlist</i>
</button>
</form>
</div>
<div class="product" id="Books">
<a href="#"><img src="./Bookimg/Horror/The-Best-Ghost-Stories.jpg" alt="Product 1"></a>
<p>₹325</p>
<a href=""><button class="bt">Buy Now</button></a>
<br>
<form action="wishlist.php" method="post">
<input type="hidden" name="title" value="The Best Ghost Stories"> <!-- Replace with the actual title -->
<input type="hidden" name="image" value="./Bookimg/Horror/The-Best-Ghost-Stories.jpg"> <!-- Replace with the actual image path -->
<input type="hidden" name="price" value="₹325"> <!-- Replace with the actual price -->
<button class="add-to-cart" onclick="toggleWishlist('button5')"style="border: none; background: none; padding: 0;">
<i id="button5" class="fas fa-heart wishlist-icon add-to-cart" title="Wishlist"> Wishlist</i>
</button><br><br>
</form>
</div>
<div class="product" id="Books">
<a href="#"><img src="./Bookimg/Horror/Color-Out-of-Space.jpg" alt="Product 1"></a>
<p>₹325</p>
<a href=""><button class="bt">Buy Now</button></a>
<br>
<form action="wishlist.php" method="post">
<input type="hidden" name="title" value="Color Out Of Space"> <!-- Replace with the actual title -->
<input type="hidden" name="image" value="./Bookimg/Horror/Color-Out-of-Space.jpg"> <!-- Replace with the actual image path -->
<input type="hidden" name="price" value="₹325"> <!-- Replace with the actual price -->
<button class="add-to-cart" onclick="toggleWishlist('button6')"style="border: none; background: none; padding: 0;">
<i id="button6" class="fas fa-heart wishlist-icon add-to-cart" title="Wishlist"> Wishlist</i>
</button>
</form>
</div>
<div class="product" id="Books">
<a href="#"><img src="./Bookimg/Horror/clarimonde.jpg" alt="Product 1"></a>
<p>Free</p>
<a href=""><button class="bt">Read Now</button></a>
<br>
<form action="wishlist.php" method="post">
<input type="hidden" name="title" value="Clarimonde"> <!-- Replace with the actual title -->
<input type="hidden" name="image" value="./Bookimg/Horror/clarimonde.jpg"> <!-- Replace with the actual image path -->
<input type="hidden" name="price" value="Free"> <!-- Replace with the actual price -->
<button class="add-to-cart" onclick="toggleWishlist('button7')"style="border: none; background: none; padding: 0;">
<i id="button7" class="fas fa-heart wishlist-icon add-to-cart" title="Wishlist"> Wishlist</i>
</button>
</form>
</div>
<div class="product" id="Books">
<a href="#"><img src="./Bookimg/Horror/The-Dunwich-Horror.jpg" alt="Product 1"></a>
<p>₹325</p>
<a href=""><button class="bt">Buy Now</button></a>
<br>
<form action="wishlist.php" method="post">
<input type="hidden" name="title" value="The Dunwich Horror"> <!-- Replace with the actual title -->
<input type="hidden" name="image" value="./Bookimg/Horror/The-Dunwich-Horror.jpg"> <!-- Replace with the actual image path -->
<input type="hidden" name="price" value="₹325"> <!-- Replace with the actual price -->
<button class="add-to-cart" onclick="toggleWishlist('button8')"style="border: none; background: none; padding: 0;">
<i id="button8" class="fas fa-heart wishlist-icon add-to-cart" title="Wishlist"> Wishlist</i>
</button>
</form>
</div>
<div class="product" id="Books">
<a href="#"><img src="./Bookimg/Horror/at-the-mountains-of-madness.jpg" alt="Product 1"></a>
<p>₹325</p>
<a href=""><button class="bt">Buy Now</button></a>
<br>
<form action="wishlist.php" method="post">
<input type="hidden" name="title" value="At The Mountains Of Madness"> <!-- Replace with the actual title -->
<input type="hidden" name="image" value="./Bookimg/Horror/at-the-mountains-of-madness.jpg"> <!-- Replace with the actual image path -->
<input type="hidden" name="price" value="₹325"> <!-- Replace with the actual price -->
<button class="add-to-cart" onclick="toggleWishlist('button9')"style="border: none; background: none; padding: 0;">
<i id="button9" class="fas fa-heart wishlist-icon add-to-cart" title="Wishlist"> Wishlist</i>
</button>
</form>
</div>
<div class="product" id="Books">
<a href="#"><img src="./Bookimg/Horror/The-Phantom-of-the-Opera.jpg" alt="Product 1"></a>
<p>₹325</p>
<a href=""><button class="bt">Buy Now</button></a>
<br>
<form action="wishlist.php" method="post">
<input type="hidden" name="title" value="The Phantom Of The Opera"> <!-- Replace with the actual title -->
<input type="hidden" name="image" value="./Bookimg/Horror/The-Phantom-of-the-Opera.jpg"> <!-- Replace with the actual image path -->
<input type="hidden" name="price" value="₹325"> <!-- Replace with the actual price -->
<button class="add-to-cart" onclick="toggleWishlist('button10')"style="border: none; background: none; padding: 0;">
<i id="button10" class="fas fa-heart wishlist-icon add-to-cart" title="Wishlist"> Wishlist</i>
</button>
</form>
</div>
</section>
</center>
<br>
<section class="section contact" id="contact" aria-label="contact">
<div class="container">
<p class="section-subtitle">Contact</p>
<h2 class="h2 section-title has-underline">
Write me anything
<span class="span has-before"></span>
</h2>
<div class="wrapper">
<form action="" class="contact-form">
<input type="text" name="name" placeholder="Your Name" required class="input-field">
<input type="email" name="email_address" placeholder="Your Email" required class="input-field">
<input type="text" name="subject" placeholder="Subject" required class="input-field">
<textarea name="message" placeholder="Your Message" class="input-field"></textarea>
<button type="submit" class="btn btn-primary">Send Now</button>
</form>
<ul class="contact-card">
<li>
<p class="card-title">Address:</p>
<address class="address">
16, Abcxy <br>
Abcxyz, India 999000
</address>
</li>
<li>
<p class="card-title">Phone:</p>
<a href="tel:1234567890" class="card-link">123 456 7890</a>
</li>
<li>
<p class="card-title">Email:</p>
<a href="mailto:ChapterThreads@gmail.com<" class="card-link">chapterthreads@gmail.com</a>
</li>
<li>
<p class="social-list-title h3">Connect book socials</p>
<ul class="social-list">
<li>
<a href="#" class="social-link">
<ion-icon name="logo-facebook"></ion-icon>
</a>
</li>
<li>
<a href="#" class="social-link" style="padding-bottom: 0px; padding-top: 0px; height: 41px;">
<!-- <ion-icon name="logo-twitter"></ion-icon> -->
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-twitter-x" viewBox="0 0 16 16">
<path d="M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"/>
</svg>
</a>
</li>
<li>
<a href="#" class="social-link">
<ion-icon name="logo-linkedin"></ion-icon>
</a>
</li>
<li>
<a href="#" class="social-link">
<ion-icon name="logo-youtube"></ion-icon>
</a>
</li>
<li>
<a href="#" class="social-link">
<ion-icon name="logo-whatsapp"></ion-icon>
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</section>
<script>
// Function to toggle wishlist and handle color
function toggleWishlist(buttonId) {
var icon = document.getElementById(buttonId);
icon.classList.toggle("clicked");
var wishlistButton = document.querySelector('.add-to-cart');
if (icon.classList.contains("clicked")) {
alert("Item added to cart!");
wishlistButton.style.color = '#FF1493';
localStorage.setItem('cartButtonColor', '#FF1493');
} else {
wishlistButton.style.color = ''; // Reset color
localStorage.removeItem('cartButtonColor');
}
}
// On page load, retrieve the color from local storage and set it if it exists
document.addEventListener('DOMContentLoaded', function() {
var savedColor = localStorage.getItem('cartButtonColor');
if (savedColor) {
document.querySelector('.add-to-cart').style.color = savedColor;
}
});
</script>
<script src="./assets/js/script.js" defer></script>
<script src="./assets/js/search(horror).js" defer></script>
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
</body>
</html>