-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
67 lines (55 loc) · 2.19 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://cdn.jsdelivr.net/npm/daisyui@3.9.2/dist/full.css"
rel="stylesheet"
type="text/css"
/>
<script src="https://cdn.tailwindcss.com"></script>
<title>Hunting Phone API</title>
</head>
<body class="container mx-auto">
<header>
<h2 class=" text-center text-6xl text-gray-400 mt-4 p-4">Hunting Phone</h2>
</header>
<main class="container mx-auto mt-8">
<!-- Spinner and loader -->
<!-- search result -->
<section class= "text-center p-4 m-4">
<input id="search-field" type="text" class="input font-medium input-bordered w-full max-w-md" placeholder="search..." />
<button onclick="handleSearch()" class="btn btn-accent">Search</button>
<!-- another input field -->
<!-- <input id="search-field2" type="text" placeholder="Type here" class="input input-bordered w-full max-w-xs" />
<button onclick="handleSearch2()" class="btn btn-primary">Search</button> -->
</section>
<div id="loading-spinner" class="text-center my-40 hidden">
<span class="loading loading-dots loading-lg"></span>
</div>
<div id="phone-container" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 justify-center">
</div>
<div id="show-all-container" class="hidden text-center my-8">
<button onclick="handleShowAll()" class="btn btn-accent">Show All</button>
</div>
<!-- Show Details Modal -->
<!-- Open the modal using ID.showModal() method -->
<dialog id="show_details_modal" class="modal modal-bottom sm:modal-middle">
<div class="modal-box">
<h3 id="show-detail-phone-name" class="font-bold text-3xl"></h3>
<div id="show-detail-container">
</div>
<div class="modal-action">
<form method="dialog">
<!-- if there is a button in form, it will close the modal -->
<button class="btn">Close</button>
</form>
</div>
</div>
</dialog>
</main>
<footer></footer>
<script src="js/phone.js"></script>
</body>
</html>