-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
475 lines (386 loc) · 15.9 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
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
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!--<meta name="viewport" content="width=device-width, initial-scale=1">-->
<script src="js/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
<script src="js/popper.min.js" crossorigin="anonymous"></script>
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/bootstrap.min.js" crossorigin="anonymous"></script>
<script src='https://www.google.com/recaptcha/api.js'></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<title>Mainnet Lightning Network Stores</title>
<script src="js/main.js"></script>
<script src="js/addStoreForm.js"></script>
<!-- Favicons taken from Font Awesome (license https://fontawesome.com/license) , converted to png -->
<link rel="icon" href="https://i.imgur.com/8r1JLso.png" size="16x16" type="image/png">
<link rel="icon" href="https://i.imgur.com/XvNM1sl.png" size="32x32" type="image/png">
<link rel="apple-touch-icon" href="https://i.imgur.com/YgUbpWp.png" sizes="180x180" type="image/png">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-74119866-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-74119866-1');
</script>
<script>
function showListOptions() {
document.getElementById("sectors").classList.toggle("show");
}
function showListOptionsDelivery() {
document.getElementById("deliveries").classList.toggle("show");
}
function showListOptionsSorting() {
document.getElementById("sorting").classList.toggle("show");
}
function showListOptionsNew() {
document.getElementById("new").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function (event) {
if (!event.target.matches('button')) {
var dropdowns = document.getElementsByClassName("dropdown-menu");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
<style>
.panel {
margin-top: 1em;
}
.dropdown {
margin-right: 1em;
}
/* .text-muted {margin-bottom: 1px; } */
i.fa.fa-arrow-up:hover {
cursor: pointer;
color: rgb(255, 61, 61);
}
i.fa.fa-arrow-down:hover {
cursor: pointer;
color: rgb(55, 55, 255);
}
font:hover {
cursor: pointer;
color: rgb(165, 165, 165);
}
.progress-value {
position:absolute;
right:0;
left:0;
}
.fas.fa-ban{
opacity: 0.15;
font-size: smaller;
}
.fas.fa-ban:hover{
opacity: 1;
font-size:medium;
color: tomato;
}
.fas.fa-edit{
opacity: 0.4;
color:darkgray;
font-size: medium;
}
.fas.fa-edit:hover{
opacity: 1;
font-size: medium;
color: black
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="/stats">Statistics</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-item nav-link active" href="#">Mainnet
<span class="sr-only">(current)</span>
</a>
<a class="nav-item nav-link" href="/wallets">Lightning wallets</a>
<a class="nav-item nav-link" href="/testnet">Testnet</a>
<a class="nav-item nav-link" href="/donations">Donation addresses</a>
<a class="nav-item nav-link" href="/services">Services</a>
<a class="nav-item nav-link" href="/about">About</a>
</div>
</div>
</nav>
<div class="container">
<div class="text-center" id="banner">
<h1 id="title">
<i class="fa fa-bolt"></i> Mainnet lightning network stores
<i class="fa fa-bolt"></i>
</h1>
</div>
<hr>
<div class="alert alert-info" role="alert" style="text-align:center">
<p>Official twitter <a href='https://twitter.com/bitcoinLNS'>@bitcoinLNS</a> launched. New and trending stores will be automatically tweeted.</p>
<!-- <p><a href="/stats"> Check out the new stats page!</a></p> -->
</div>
<hr>
<div class="btn-group">
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="Sector" aria-haspopup="true"
aria-expanded="false" onclick="showListOptions()">
Sector: all
</button>
<div id="sectors" class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">technology</a>
<a class="dropdown-item" href="#">security</a>
<a class="dropdown-item" href="#">clothing</a>
<a class="dropdown-item" href="#">exchange</a>
<a class="dropdown-item" href="#">food</a>
<a class="dropdown-item" href="#">games&casino</a>
<a class="dropdown-item" href="#">adult</a>
<a class="dropdown-item" href="#">art</a>
<a class="dropdown-item" href="#">drugs&supplements</a>
<a class="dropdown-item" href="#">cryptocurrency merchandise</a>
<a class="dropdown-item" href="#">other</a>
<a class="dropdown-item" href="#">all</a>
</div>
</div>
<br>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="DeliveryDropdownButton" data-toggle="Sector" aria-haspopup="true"
aria-expanded="false" onclick="showListOptionsDelivery()">
Digital goods: all
</button>
<div id="deliveries" class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">yes</a>
<a class="dropdown-item" href="#">no, goods shipped</a>
<a class="dropdown-item" href="#">no, goods only in-store</a>
<a class="dropdown-item" href="#">all</a>
</div>
<button type="button" id="delivery_popover" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="bottom" data-content="Digital goods can be immediately sent to you via internet like an e-book, music file, currency, online-services, etc.">
?
</button>
<script> $("#delivery_popover").popover()</script>
</div>
<br>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="NewDropdownButton" data-toggle="Sector" aria-haspopup="true"
aria-expanded="false" onclick="showListOptionsNew()">
New/Trendy: all
</button>
<div id="new" class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">new or trendy</a>
<a class="dropdown-item" href="#">new</a>
<a class="dropdown-item" href="#">trendy</a>
<a class="dropdown-item" href="#">new & trendy</a>
<a class="dropdown-item" href="#">all</a>
</div>
<button type="button" class="btn btn-secondary" id="new_popover" data-toggle="popover" data-placement="bottom" data-container="body" data-content="A store is new if it was added to this repository less than one week ago">
?
</button>
<script> $("#new_popover").popover()</script>
</div>
<br>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="SortingDropdownButton" data-toggle="Sector" aria-haspopup="true"
aria-expanded="false" onclick="showListOptionsSorting()">
Sort: best
</button>
<div id="sorting" class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">best</a>
<a class="dropdown-item" href="#">trending</a>
<a class="dropdown-item" href="#">newest</a>
<a class="dropdown-item" href="#">controversial</a>
<!-- <a class="dropdown-item" href="#">worst</a> -->
</div>
<!--<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="top" data-html="true" title="A small store is a store that sells five goods or less or has an Alexa traffic rank worse than 1MM">-->
<!--?-->
<!--</button>-->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addNewStoreModal">
Instantly add new Store!
</button>
</div>
<br>
</div>
<!-- end div.btn-group -->
<div id="main-content">
</div>
<h1 class="text-info">Coming Soon?</h1>
<br>
<div id="soon-content">
</div>
<!-- <h5>Know a store not listed here?
<a href="https://github.com/lightningnetworkstores/lightningnetworkstores.github.io">Add it to the git repository</a> or send an email to [email protected]</h5>
<h5>For other lightning network resources visit
<a href="https://lnroute.com/">LNroute</a> or
<a href="http://lopp.net/bitcoin.html">Lopp.net</a>
</h5> -->
</div>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">New message</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label id="label1" for="recipient-name" class="col-form-label">Votes:</label>
<div class="input-group mb-3">
<input id="amountbox" type="text" class="form-control" id="recipient-name">
<div class="input-group-append">
<button id="getinvoicebutton" type="button" class="btn btn-primary">Get invoice</button>
</div>
</div>
</div>
<div class="form-group">
<label for="message-text" class="col-form-label">Invoice (<a href='https://1ml.com/node/03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f'>our node</a>):</label>
<textarea id="invoicearea" class="form-control" id="message-text"></textarea>
</div>
</form>
<div id="qrcodediv"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button id="checkpaymentbutton" type="button" class="btn btn-primary">Check payment</button>
</div>
</div>
</div>
</div>
<div id="progress_bars" style="display:none">
<div class="container">
<h5 class="progress-label"> Trending score: </h5>
<div class="progress" style="text-align:center">
<span class="progress-value" id="trending"></span>
<div class="progress-bar bg-info" role="progressbar" style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"
id="blue_bar"></div>
</div>
<p></p>
<h5 class="progress-label"> Split score (satoshis): </h5>
<div class="progress" style="text-align:center">
<span class="progress-value" id="upvote-number"></span>
<div class="progress-bar bg-success" role="progressbar" style="width: 1%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"
id="green_bar"></div>
</div>
<p></p>
<div class="progress" style="text-align:center">
<span class="progress-value" id="downvote-number"></span>
<div class="progress-bar bg-danger" role="progressbar" style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"
id="red_bar"></div>
</div>
<br><br>
</div>
</div>
<div class="modal fade" id="addNewStoreModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel2">Automatically add new store!</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="formModal">
<form id="formTeste" action=#/filledform>
<div class="form-group row">
<label class="col-sm-2 col-form-label">Name*</label>
<div class="col-sm-10">
<input class="form-control" id="nameInput" placeholder="LightningNetworkStores" name="name" required>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">URL*</label>
<div class="col-sm-10">
<input class="form-control" id="urlInput" placeholder="http://lightningnetworkstores.com" name="URL" required>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">Description*</label>
<div class="col-sm-10">
<input class="form-control" id="descriptionInput" placeholder="Repository of lightning stores." name="description" required>
</div>
</div>
<div class="form-group row">
<label class="col-sm-2 col-form-label">URI</label>
<div class="col-sm-10">
<input class="form-control" id="uriInput" placeholder="nodeID@IP:port" name="URI">
</div>
</div>
<div class="form-group">
<label for="exampleFormControlSelect1">Sector (optional)</label>
<select class="form-control" id="sectorDropdown" name="sector">
<option selected>choose...</option>
<option>technology</option>
<option>security</option>
<option>clothing</option>
<option>exchange</option>
<option>food</option>
<option>games&casino</option>
<option>adult</option>
<option>art</option>
<option>drugs&supplements</option>
<option>cryptocurrency merchandise</option>
<option>other</option>
</select>
</div>
<div class="form-group">
<label for="exampleFormControlSelect2">Digital goods (optional)</label>
<select class="form-control" id="goodDropdown" name="digitalGoods">
<option selected>choose...</option>
<option>yes</option>
<option>no, goods shipped</option>
<option>no, goods only in-store</option>
</select>
</div>
<div class="col-auto">
<div class="form-check mb-2">
<input class="form-check-input" type="checkbox" id="comingSoon" name="comingSoonCheckmark">
<label class="form-check-label" for="autoSizingCheck">
Coming soon?
</label>
</div>
</div>
<div class="form-group">
<label >Contributor code (optional)</label>
<div class="col-sm-10">
<input class="form-control" type="password" id="contributorInput" placeholder="******" name="contributor">
</div>
</div>
<div class="col-auto">
<div class="form-check mb-2">
<input class="form-check-input" type="checkbox" id="terms" required>
<label class="form-check-label" for="autoSizingCheck2">
*I agree that the store may be removed later if it disables lightning payments.
</label>
</div>
</div>
<div class="g-recaptcha" data-sitekey="6LddfGMUAAAAAG75Ke0N_iVtWh1QwwGFlByKpoMj"></div>
<br>
<a>Amount due (if not a contributor): 1000 Satoshis</a>
<br>
<!-- add 'g-recaptcha' to class list to add captcha funcionality-->
<button id='submissionButton' class="btn btn-primary mb-2"> Add Store </button>
<br>
<a id="formAnswer"> </a>
</form>
<textarea id="invoiceareaForStore" class="form-control" id="message-text" style="display:none"></textarea>
<img id="qrcodeAddStore" src="" style="display:none" alt="qr code">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="finalButtonFormModal" style="display:none">Fill&Press 'Add Store'</button>
</div>
</div>
</div>
</div>
</body>
</html>