-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
357 lines (259 loc) · 9.01 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
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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css">
<style>
.searchResults {
visibility: hidden;
position: absolute;
top:60%;
left: 0;
right: 0;
}
.loadingIndicator {
visibility: hidden;
}
.whoisBody {
height: 45rem;
overflow-x: hidden;
overflow-y: scroll;
word-wrap: break-word;
white-space: pre-line;
}
.nav-item {
height: 4rem;
line-height: 3;
}
.form-control {
outline: 0;
box-shadow: none;
}
#searchInput:focus {
border-color: #fff;
outline: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}
#orderItems {
display: none;
}
#orderForm {
display: none;
}
.btn {
outline: 0;
box-shadow: none;
}
.btn:focus,
.btn:active{
box-shadow:none !important;
outline:0px !important;
}
.btn-available {
color: #007bff;
}
.btn-available:hover {
background: #007bff;
color: #fff;
}
.btn-unavailable {
color: #343a40;
}
.btn-unavailable:hover {
background: #343a40;
color: #fff;
}
.w-5 {
width: 8rem;
}
.no-gutters {
margin-right: 0;
margin-left: 0;
> .col,
> [class*="col-"] {
padding-right: 0;
padding-left: 0;
}
}
html, body {
margin: 0;
height: 100%;
}
</style>
<title>Search domain</title>
</head>
<body class="bg-primary">
<nav class="navbar navbar-expand-lg navbar-light bg-light p-0 fixed-top">
<a class="navbar-brand" href="#">Navbar</a>
<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>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="#">Support</a>
</li>
<li class="nav-item">
<a class="nav-link orderLink" href="#">Go to shopping cart</a>
</li>
</ul>
</div>
</nav>
<div class="container-fluid h-100 d-flex p-3">
<div class="container align-self-center p-0">
<h1 class="text-light text-center display-4 font-weight-bold d-none d-lg-block">All Top Level Domains - One registrar</h1>
<h3 class="text-light text-center font-weight-light d-none d-lg-block">Search and register in over 1000 Top Level Domains</h3>
<h3 class="text-light text-center font-weight-bold d-md-none">All Top Level Domains - One registrar</h1>
<h6 class="text-light text-center font-weight-light d-md-none">Search and register in over 1000 Top Level Domains</h3>
<form id="searchForm">
<div class="input-group bg-white">
<input type="text" class="form-control form-control-lg" id="searchInput" placeholder="Search domains">
<div class="input-group-append">
<button class="btn btn-light text-primary ladda-button" type="submit">Search</button>
</div>
</div>
</form>
<a href="#" class="text-white float-right advancedSettings">Show advanced options</a>
<br>
<h3 class="text-white pt-4 text-center loadingIndicator"><i class='fas fa-circle-notch fa-spin'></i> Loading</h3>
</div>
</div>
<div class="container searchResults bg-white rounded p-3 align-self-center">
<h3>Search results: <span class="text-primary">All</span></h3>
<br>
<p>All domains includes: <span class="text-primary">TEXT</span></p>
<ul id="domainList" class="list-group mx-auto w-100">
</ul>
</div>
</div>
<div class="modal fade" tabindex="-1" role="dialog" id="orderModal">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Order form</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<table class="table table-bordered">
<thead>
<tr>
<th>Domain</th>
<th class="w-25 text-right">Remove</th>
</tr>
</thead>
<tbody id="orderItems">
</tbody>
<tbody id="noItems">
<tr>
<td>No domains has been added</td>
<td></td>
</tr>
</tbody>
</table>
<form id="orderForm" action="order.php" method="get" enctype="multipart/form-data">
<div class="form-group">
<label>Your name</label>
<input type="text" class="form-control" name="Name" placeholder="Name">
</div>
<div class="form-group">
<label>Your email</label>
<input type="text" class="form-control" name="email" placeholder="Email">
</div>
<div class="form-group">
<label>Your phonenumber</label>
<input type="text" class="form-control" name="telephone" placeholder="Phonenumber">
</div>
<button type="submit" class="btn btn-primary float-right">Submit</button>
</form>
</div>
</div>
</div>
</div>
<div class="modal fade" tabindex="-1" role="dialog" id="myModal">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="whoisTitle">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body whoisBody">
<p class="whoisData"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" tabindex="-1" role="dialog" id="advancedSettings">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Advanced options</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h6>Export search results:</h6>
<ul class="list-group mx-auto w-100 d-flex">
<li class='list-group-item d-flex align-items-center'>Download as a CSV: <button class="btn btn-primary csv-button ml-auto" disabled>Download</button></li>
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="js/csv.js"></script>
<script src="js/domainlist.js"></script>
<script src="js/loading.js"></script>
<script src="js/order.js"></script>
<script src="js/resultsanimations.js"></script>
<script src="js/whois.js"></script>
<script>
$( document ).ready(function() {
//Configuration
var url = "api.php?action=config";
$.get( url, function( data ) {
config = JSON.parse(data);
if(config['disableAdvancedSettings']) {
$('.advancedSettings').hide();
}
});
requestArray = [];
$(document).on('submit', '#searchForm', function(event) {
$.each(requestArray, function(idx, jqXHR) {
jqXHR.abort();
});
$(".csv-button").attr("disabled", "disabled");
event.preventDefault();
hideResultsanimation();
StartedLoadingTimer();
startSearch();
console.log('Form submission cancelled.');
return false;
});
});
</script>
</body>
</html>