-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
206 lines (162 loc) · 7.4 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Search Utility - Search</title>
<link rel="stylesheet" href="bootstrap-4.3.1-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="css/custom.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="css/animate.css">
</head>
<body>
<div id="overlay" style="display: none;">
<div id="loader"></div>
<div id="text">
<h6>Caching translated strings...</h6>
</div>
</div>
<div class="main1">
<!-- Navbar -->
<nav class="navbar navbar-expand-lg sticky-top navbar-light text-center" style="background-color: #f4f6fa">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="#">
<h3 id="title">
SEARCH UTILITY
</h3>
</a>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active ">
<a class="nav-link pill1" style="color: #000080" href="#">Search
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item active ">
<a class="nav-link pill1" style="color: #000080" href="add.html">Add
<span class="sr-only">(current)</span>
</a>
</li>
</ul>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col d-flex justify-content-end">
<p class="pt-4 mx-4">Search Options: </p>
<div class="form-check form-check-inline mt-2">
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="localSearchInlineRadio" value="option1">
<label class="form-check-label" for="inlineRadio1">Local Search</label>
</div>
<div class="form-check form-check-inline mt-2">
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="APISearchInlineRadio" value="option2">
<label class="form-check-label" for="inlineRadio2">API Search</label>
</div>
</div>
</div>
</div>
<hr>
<!-- Container to search data Locally -->
<div class="container" id="containerLocalStorage">
<div class="row my-3">
<div class="col mx-2 pt-3">
<div class="input-group">
<input type="search" placeholder="Search Locally" id="localStorageSearchInput" class="form-control" aria-label="Text input with segmented dropdown button">
<div class="input-group-append">
<button type="button" class="btn btn-outline-success" id="localStorageSearchButton">Search</button>
</div>
</div>
</div>
<div class="col d-flex justify-content-end">
</div>
</div>
<div class="table-responsive mb-5">
<table class="table table-bordered responsive-table table-striped" id="localStorageSearchTable">
<thead class="thead thead-dark">
<tr>
<th scope="col">
CODE
</th>
<th scope="col">
ENGLISH
</th>
<th scope="col">
DESCRIPTION
</th>
</tr>
</thead>
<tbody class="table-hover">
</tbody>
<tfoot>
<tr>
<td class="text-muted" colspan="3" style="text-align: center; background-color: #f4f6fa;">
Local Data
</td>
</tr>
</tfoot>
</table>
</div>
</div>
<!-- Container to search data from API -->
<div class="container" id="containerAPI" style="display: none">
<!-- Row with search bar -->
<div class="row my-3">
<div class="col mx-2 pt-3">
<div class="input-group">
<input type="search" placeholder="Search in API" id="searchInput" class="form-control" aria-label="Text input with segmented dropdown button">
<div class="input-group-append">
<button type="button" class="btn btn-outline-success" id="submitButton">Search</button>
</div>
</div>
</div>
<div class="col d-flex justify-content-end">
</div>
</div>
<!-- Table -->
<div class="table-responsive mb-5">
<table class="table table-bordered responsive-table table-striped" id="mainTable">
<thead class="thead thead-dark">
<tr>
<th scope="col">
CODE
</th>
<th scope="col">
ENGLISH
</th>
<th scope="col">
DESCRIPTION
</th>
</tr>
</thead>
<tbody class="table-hover">
</tbody>
<tfoot >
<tr>
<td style=" text-align:center; background-color:#f4f6fa; " class=" text-muted text-center" colspan=" 3 ">API Data</td>
</tr>
</tfoot>
</table>
</div>
<div class="text-center isolate" id="preloader" style="display: none;">
<div class="spinner-border spinner-border-md text-success" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
<nav class="navbar fixed-bottom" style="background-color: #f4f6fa;">
<div class="container">
<a class="navbar-brand" style="color: #000080;" href="#">© 2019 - Persol Systems</a>
</div>
</nav>
</div>
<script src="js/jquery/dist/jquery.min.js"></script>
<script src="bootstrap-4.3.1-dist/js/bootstrap.min.js"></script>
<script src="./js/utils/data.js"></script>
<script src="js/script1.js"></script>
</body>
</html>
<!-- d-flex justify-content-center -->