-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (45 loc) · 2.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"> -->
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css"
rel="stylesheet">
</head>
<body>
<div class="container mx-auto px-4 py-6">
<p class="font-sans hover:font-serif font-medium text-xl py-4">
Fetch company details from IndiaMart
</p>
<input id="search" class="w-1/3 border border-slate-300 rounded-md py-2 pl-5 pr-3 shadow-sm focus:outline-none focus:ring-1 sm:text-sm" placeholder="Search" type="text" name="search"/>
<input id="city" class="w-1/4 border border-slate-300 rounded-md py-2 pl-5 pr-3 shadow-sm focus:outline-none focus:ring-1 sm:text-sm" placeholder="City" type="text" name="city"/>
<button id="submit" class="w-40 border bg-blue-500 text-white font-bold rounded-md py-2 pl-4 pr-3">Submit</button>
<div id="results" class="py-6">
<p class="font-sans hover:font-serif font-medium py-4">
Results
</p>
<table id="table" class="table-auto border-collapse border border-slate-400">
<thead>
<tr>
<th class="border border-slate-300 font-semibold p-4 text-slate-900 bg-slate-200 text-left">#</th>
<th class="w-1/3 border border-slate-300 font-semibold p-4 text-slate-900 bg-slate-200 text-left">Name</th>
<th class="w-1/4 border border-slate-300 font-semibold p-4 text-slate-900 bg-slate-200 text-left">Address</th>
<th class="w-1/4 border border-slate-300 font-semibold p-4 text-slate-900 bg-slate-200 text-left">City</th>
<th class="w-1/5border border-slate-300 font-semibold p-4 text-slate-900 bg-slate-200 text-left">Phone</th>
</tr>
</thead>
<tbody id="table-body">
</tbody>
</table>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity=
"sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous">
</script>
<script src="js/script.js"></script>
</body>
</html>