-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
481 lines (415 loc) · 19.7 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
476
477
478
479
480
481
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="UTF-8">
<meta content='maximum-scale=1.0, initial-scale=1.0, width=device-width' name='viewport'>
<title>Home - Market place NFT to IOTEX</title>
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href=".png">
<link rel="icon" type="image/png" sizes="16x16" href=".png">
<link rel="manifest" href="site.webmanifest">
<link href="assets/css/material-dashboard.css?v=2.1.0" rel="stylesheet" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/handlebars.js"></script>
<script type="text/javascript" src="js/buffer.js"></script>
<script type="text/javascript" src="js/config.js?v=1.9.11"></script>
<script type="text/javascript" src="js/misc.js?v=1.9.11"></script>
<script type="text/javascript" src="js/bootstrap.bundle.min.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script src="js/web3.min.js" type="text/javascript"></script>
<script src="assets/js/core/popper.min.js" type="text/javascript"></script>
<script src="assets/js/core/bootstrap-material-design.min.js" type="text/javascript"></script>
<script src="assets/js/plugins/perfect-scrollbar.jquery.min.js"></script>
<script src="assets/js/plugins/chartist.min.js"></script>
<script src="assets/js/plugins/bootstrap-notify.js"></script>
<script type="text/javascript" src="js/cookie.js?v=1.9.11"></script>
<script src="https://cdn.jsdelivr.net/npm/handlebars@latest/dist/handlebars.js"></script>
<script src="assets/js/material-dashboard.js?v=2.1.0" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/iotex-antenna@0.29.1/lib/iotex-antenna.browser.min.js"></script>
<script src="https://unpkg.com/react@17/umd/react.production.min.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js" crossorigin></script>
<script src="dist/clipboard.min.js"></script>
<script>
// compile the template
var template = Handlebars.compile("Handlebars <b>{{doesWhat}}</b>");
// execute the compiled template and print the output to the console
console.log(template({ doesWhat: "rocks!" }));
</script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Roboto+Slab:400,700|Material+Icons" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.1.7/css/fork-awesome.min.css"
integrity="sha256-gsmEoJAws/Kd3CjuOQzLie5Q3yshhvmo7YNtBG7aaEY=" crossorigin="anonymous">
<style type="text/css">
.dark-edition .modal .form-control {
color: #8b92a9;
}
.dark-edition .modal a {
color: #8b92a9;
font-weight: 700;
}
.dark-edition .modal .form-control,
.is-focused .dark-edition .modal .form-control {
background-color: #eee;
padding: 5px;
}
.dark-edition .modal select {
height: 36px !important;
}
.nftListing {
min-width: 300px;
}
.btn-outline {
background-color: transparent !important;
box-shadow: none !important;
-moz-box-shadow: none !important;
-o-box-shadow: none !important;
-webkit-box-shadow: none !important;
}
.btn-clipboard {
background-color: transparent !important;
box-shadow: none !important;
-moz-box-shadow: none !important;
-o-box-shadow: none !important;
-webkit-box-shadow: none !important;
padding: 0 !important;
}
.fa-clipboard,
.fa-external-link {
font-size: 0.8rem !important;
}
.traits-collapse ul li {
border-bottom: 1px solid #8b92a9;
}
.traits-collapse ul li:last-child {
border-bottom: none;
}
.dark-edition .card .card-body .card-description {
color: #8b92a9;
}
.description,
.card-description,
.footer-big p {
color: #8b92a9;
}
.title,
.title a,
.card-title,
.card-title a,
.info-title,
.info-title a,
.footer-brand,
.footer-brand a,
.footer-big h5,
.footer-big h5 a,
.footer-big h4,
.footer-big h4 a,
.media .media-heading,
.media .media-heading a {
color: #8b92a9;
}
body {
color: #8b92a9;
}
.navbar,
.navbar-text a {
color: inherit;
}
</style>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');
</style>
<link href="https://fonts.googleapis.com/css?family=Material+Icons+Round" rel="stylesheet">
<link href="assets/css/style.css" rel="stylesheet" />
</head>
<body>
<script src="js/themeDefault.js"></script>
<!-- SIDEBAR -->
<div class="sidebar">
<div class="logo">
<a href="hhttps://iotexnfts.web.app/" class="simple-text logo-normal">
<img src="assets/img/logoIotex.png" width="125" border="0" />
<div id="IoTeXLogo" class="text-muted" style="display: none; font-size: 0.7em;">
IoTeX
</div>
</a>
</div>
<div class="sidebar-wrapper">
<ul class="nav">
<li class="nav-item active">
<a class="nav-link" href="index.html">
<i class="material-icons-round">home</i>
<p>Home</p>
</a>
</li>
<li class="nav-item" id="marketNavLink">
<a class="nav-link" href="market.html">
<i class="material-icons-round">storefront</i>
<p>NFT Market</p>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="collectibles.html">
<i class="material-icons-round">account_balance_wallet</i>
<p>Your Wallet</p>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="manager.html">
<i class="material-icons-round">collections</i>
<p>Collection Manager</p>
</a>
</li>
</li>
<li class="nav-item" id="bridgeNav">
<a class="nav-link" href="bridge.html">
<i class="material-icons-round">360</i>
<p>NFT Bridge</p>
</a>
</li>
</ul>
<div class="sidebar-divider"></div>
<div class="sidebar-bottom">
<div class="sidebar-text">
<div class="sidebar-text icons">
<span class="navbar-text">
<a href="https://www.reddit.com/r/IoTeX/" target="_blank">
<i class="fa fa-reddit"></i>
</a>
<a href="https://t.me/IoTeXGroup" target="_blank">
<i class="fa fa-telegram"></i>
</a>
<a href="https://www.youtube.com/channel/UCdj3xY3LCktuamvuFusWOZw" target="_blank">
<i class="fa fa-youtube"></i>
</a>
<a href="https://twitter.com/iotex_io" target="_blank">
<i class="fa fa-twitter"></i>
</a>
<a href="https://github.com/iotexproject" target="_blank">
<i class="fa fa-github"></i>
</a>
</a>
</span>
</div>
<div class="sidebar-text rights">
<span>
<i class="material-icons">copyright</i>
TheVanquiser Development d.o.o.<br />All rights reserved.
</span>
</div>
</div>
</div>
</div>
</div>
<!-- SIDEBAR END -->
<div class="main-panel">
<!-- NAV TOGGLER -->
<nav class="navbar navbar-expand-lg navbar-transparent navbar-absolute fixed-top " id="navigation-example">
<div class="container-fluid">
<button class="navbar-toggler" type="button" data-toggle="collapse" aria-controls="navigation-index"
aria-expanded="false" aria-label="Toggle navigation" data-target="#navigation-example">
<span class="sr-only">Toggle navigation</span>
<span class="navbar-toggler-icon icon-bar"></span>
<span class="navbar-toggler-icon icon-bar"></span>
<span class="navbar-toggler-icon icon-bar"></span>
</button>
</div>
</nav>
<!-- NAV TOGGLER END -->
<div class="content">
<!-- HEADER -->
<div class="custom-header">
<div class="custom-header__title"> </div>
<div class="custom-header__dropdowns">
<script>
// fix for initial doubleclick required upon page load
$(document).ready(function () {
$('#chainSelectionDropdown').click();
});
</script>
<div class="dropdown ml-3 mr-3 dropdown--chains">
<button id="chainSelectionDropdown" class="btn btn-info dropdown-toggle" type="button"
id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
IoTeX
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="https://iotexnfts.web.app/index.html"><img
src="assets/img/iotex_logo.svg">IoTeX</a>
<a class="dropdown-item" href="https://iotexnfts.web.app/index.html"><img
src="assets/img/iotex_logo.svg">IoTeX Test Net</a>
<a class="dropdown-item" href="https://iotexnfts.web.app/rinkeby/"><img
src="assets/img/rinkeby_logo.svg">Rinkeby</a>
<a class="dropdown-item" href="https://iotexnfts.web.app/index.html"><img src="">Local Host</a>
</div>
</div>
<div class="theme-toggler">
<label for="themeSwitch" class="theme-options">
<span class="material-icons-round light-mode">
light_mode
</span>
<span class="material-icons-round dark-mode">
dark_mode
</span>
</label>
<input type="checkbox" id="themeSwitch" name="themeSwitch" />
</div>
</div>
</div>
<!-- HEADER END -->
<div class="content__welcome-text">
<p>
Here is home page Nft market place.
</p>
</div>
<div class="container-fluid bridge">
<h1>Home Page</h1>
</div>
<!-- Collectible View -->
<script id="bridged-template" type="text/x-handlebars-template">
<div class="nftListing mb-3">
<div class="card card-profile">
{{#ifNotEquals image ""}}
<img class="card-avatar" loading="lazy" src="{{image}}" alt="{{name}}">
{{/ifNotEquals}}
{{#ifEquals checkOpenSea "Check on OpenSea"}}
<a class="opensea text-muted mt-2" style="font-size: 1.0em; width: 50%; margin: 0 auto;" href="{{opensea}}" target="_blank">{{checkOpenSea}}</a>
{{/ifEquals}}
{{#ifEquals checkOpenSea "Open Details"}}
<a class="opensea text-muted mt-2" style="font-size: 1.0em; width: 50%; margin: 0 auto;" href="{{opensea}}">{{checkOpenSea}}</a>
{{/ifEquals}}
<div class="card-body">
{{#ifNotEquals animation_url ""}}
<a class="btn btn-outline mb-3" data-toggle="collapse" href="#collapseVideo{{erc1155}}{{id}}" role="button" aria-expanded="false" aria-controls="collapseVideo{{erc1155}}{{id}}">
Open Video
</a>
<div class="collapse traits-collapse" id="collapseVideo{{erc1155}}{{id}}">
<ul class="list-group">
<li class="list-group-item">
<video style="width: 100%" src="{{animation_url}}" preload="auto" muted="muted" controls="controls" loop="loop" poster="{{image}}">
Your browser does not support the video tag.
</video>
</li>
</ul>
</div>
{{/ifNotEquals}}
{{#ifNotEquals audio_url ""}}
<audio class="mb-3" style="width: 90%;" controls="controls" preload="auto" loop="loop">
<source src="{{audio_url}}" type="audio/mp3">
Your browser does not support the audio tag.
</audio>
{{/ifNotEquals}}
{{#ifNotEquals interactive_url ""}}
<a class="btn btn-outline mb-3 video-btn-link" style="cursor: pointer;" data-toggle="modal" data-target="#nftInteractiveModal" data-interactive-url="{{interactive_url}}">
<span class="material-icons">
play_circle
</span>
RUN NFT
</a>
{{/ifNotEquals}}
<div class="mb-3">
<span class="badge badge-info">Job ID: {{jobid}}</span>
<span class="badge badge-info">Amount: {{amount}}</span>
</div>
<h5 class="card-title"><a href="{{url}}" target="_blank">{{name}}</a></h5>
{{{collectionName}}}
<p class="card-text text-truncate">{{description}}</p>
<div>
<button class="redeemButton btn btn-outline mb-3" data-token-id="{{id}}" id="redeemButton{{index}}" role="button" aria-expanded="false">Claim</button>
</div>
<a class="traits btn btn-outline" data-toggle="collapse" href="#collapse{{index}}" role="button" aria-expanded="false" aria-controls="collapse{{erc1155}}{{id}}">
Traits
</a>
<div class="collapse traits-collapse" id="collapse{{index}}">
<ul class="list-group">
<li class="list-group-item">
<sub>Source Chain ID</sub><br />
<div>{{srcChainid}}</div>
</li>
<li class="list-group-item">
<sub>Source Collection</sub><br />
<div class="text-truncate">
<button class="btn btn-sm btn-clipboard btn-clipboard{{id}}" data-clipboard-text="{{srcCollection}}" data-toggle="tooltip" data-placement="top" title="Copied">
<i class="fa fa-clipboard"></i>
</button>
<a style="font-size: 1.2rem !important;" href="{{explorer}}{{erc1155}}" target="_blank">{{srcCollection}}</a>
</div>
</li>
<li class="list-group-item">
<sub>Source NFT ID</sub><br />
<div>{{srcId}}</div>
</li>
{{#each attributes}}
<li class="list-group-item">
<sub>{{this.trait_type}}</sub><br />
<div>{{this.value}}</div>
</li>
{{/each}}
</ul>
</div>
</div>
</div>
</div>
</script>
<div class="row" id="bridgedPage" style="display: none;"></div>
<!-- ALERT -->
<div class="modal fade" style="overflow-y: scroll;" id="alertModal" tabindex="-1" role="dialog"
aria-labelledby="alertModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="alertModalLabel">Info</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body modal-non-nft-content">
</div>
<div class="modal-footer">
<div class="buttons-container">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<!-- MODALS END -->
</div>
</div>
</div>
<!-- FOOTER -->
<!-- FOOTER END -->
</body>
<body>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="/__/firebase/8.6.8/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.6.8/firebase-firestore.js"></script>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/8.8.0/firebase-app.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/8.8.0/firebase-analytics.js"></script>
<script>
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
var firebaseConfig = {
apiKey: "AIzaSyAWTFu7Hob2pfQ5oChsptC5N5FOyaVbatI",
authDomain: "iotexnfts.firebaseapp.com",
databaseURL: "https://iotexnfts-default-rtdb.asia-southeast1.firebasedatabase.app",
projectId: "iotexnfts",
storageBucket: "iotexnfts.appspot.com",
messagingSenderId: "945779597798",
appId: "1:945779597798:web:ccebbfa6a5d46d48cbb627",
measurementId: "G-1XF0J2FD24"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
var bigOne = document.getElementById('bigOne');
var dbref = firebase.database().ref().child('text');
dbref.on('value', snap => bigOne.innerText = sanp.val());
</script>
<script src="js/themeSwitch.js"></script>
</body>
</html>