-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
231 lines (209 loc) · 8.51 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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>BTS NFT Explorer</title>
<style>
h1 {
font-size: 2em;
}
h2 {
font-size: 1.6em;
color:#d8b08c; margin-bottom: 8px;
}
#answer{padding-left:2vw; font-size: 1.1em; color: #a7bfb9; text-align:justify;}
a{color:#ffcb9a; text-decoration: none;}
#footer{font-size: 1.0em; color: #d8b08c; text-align: center; background-color: #111}
p {
font-size: 0.7em;
}
html {
box-sizing: border-box;
font-size: 1vw;
}
*, *:before, *:after {
box-sizing: inherit;
}
body {
margin: 0;
background: #444;
font-size: 120%;
background-color: #2b3630;
}
#gameContainer {
width: 80vw;
height: calc(80vw * 0.5625);
margin: auto;
//position: absolute;
left: 10vw;
top: 0;
}
#unityOutputDiv {
padding-left:2vw; font-size: 1.1em; color: #d8b08c; font-size: 1vw; background-color:#222c28;
}
canvas {
width: 100%;
height: 100%;
display: block;
}
/* try to handle mobile dialog */
canvas + * {
z-index: 2;
}
.logo {
display: block;
max-width: 100vw;
max-height: 70vh;
width: 40vw;
}
.progress {
margin: 1.5em;
border: 1px solid white;
width: 50vw;
display: none;
}
.progress .full {
margin: 2px;
background: white;
height: 1em;
transform-origin: top left;
}
#loader {
position: absolute;
left: 10vw;
top: 0;
width: 80vw;
height: calc(80vw * 0.5625);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.spinner,
.spinner:after {
border-radius: 50%;
width: 5em;
height: 5em;
}
.spinner {
margin: 10px;
font-size: 10px;
position: relative;
text-indent: -9999em;
border-top: 1.1em solid rgba(255, 255, 255, 0.2);
border-right: 1.1em solid rgba(255, 255, 255, 0.2);
border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
border-left: 1.1em solid #ffffff;
transform: translateZ(0);
animation: spinner-spin 1.1s infinite linear;
}
@keyframes spinner-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<div id="gameContainer"></div>
<div id="loader">
<img class="logo" src="logo.png">
<div class="spinner"></div>
<div class="progress"><div class="full"></div></div>
</div>
<div style="width: 80vw; margin: auto">
<!-- Below tags are filled with JS. -->
<h2 id="unityOutputTitle" style="color: #a7bfb9;" ></h2>
<textarea id="unityOutputDiv" rows="4" style="width:100%; resize: none; display:none" readonly></textarea>
<!-- FAQs. -->
<h2>What is Bitshares?</h2>
<div id="answer">Bitshares is a Graphene-based DPOS blockchain with <b>BTS</b> as its core utility token. It's like Bitcoin/Ethereum... (to put it mildly) but without the bullshit; better, faster, and cheaper. It has its own on-chain DEX, which eliminates the KYC bureaucracy. Create an account at <a href="https://bitshares.org"><b>bitshares.org</b></a> to stop being a normie.
<i>NOTE: This is not the same as NBS (new bitshares), which is a scam.</i></div>
<h2>What is Mainnet and Testnet?</h2>
<div id="answer">The side of the blockchain used by everyday users, the mainnet, is where all the money moves. The side of the blockchain devoted to testing and development is known as Testnet. As a proof of concept, the NFTs/Assets are currently being retrieved from the testnet. The mainnet mode will be allowed in the app once real NFTs start being released in the mainnet. </div>
<h2>How can I make a Bitshares NFT?</h2>
<div id="answer">Only dark magicians can deploy NFTs with proper formatting at the moment (April 18 2021) (there are no publicly accessible resources to quickly automate the process, but some are coming soon!), but you may ask in the Bitshares NFT group at <b>Telegram:</b> <a href="https://t.me/BitSharesNFTs"><b>t.me/BitSharesNFTs</b></a> to become a <strike>nerd</strike> lord of crypto supremacy.
In fact, once you grasp some fundamental concepts about bitshares and blockchain in general, it's as simple as uploading a json blob using a cli or an online API (And pay the respective transaction fee, which is much lower than you would expect).
</div>
<h2>Is this an official Bitshares app?</h2>
<div id="answer">I'm not a member of the core development team, nor of the UX or marketing teams, or anything like; I'm just "Alguien Alli," a random dweller of the bitshares telegram groups who asks a lot of questions. However, you can't simply delegate all of the work to the core team as if they owed the group something; Therefore, if you believe in the project, you must support it in whatever way you can, whether that means spreading the word, building small projects on it, or even creating memes (this "coin" isn't a joke, though...). </div>
<h2>How can I contact you?</h2>
<div id="answer">I "can" respond if you send a memo to the bitshares account in the footer with an email address. This is to prevent spam/filtering phishing scams. (Ask @XBTSbot in telegram for 1 bts to cover the transfer fee.)
Please keep in mind that I'm not obligated to respond; I'm generally approachable, but I do have a life, so please let me know why you've contacted me.
Thank you for your patience. .</div>
<h2>Are there any other BTS NFT Viewers?</h2>
<div id="answer">Yes, of course, there are other seemingly-human devs out there working on BTS NFT stuff, you can check their viewers if you like.
<br>▪ <b><i>Art-o-Matic: </i></b><a href="http://nft.iamredbar.com/"><b>http://nft.iamredbar.com</b></a>
<br>▪ <b><i>ARTCASA: </i></b><a href="https://artcasa.gallery/"><b>https://artcasa.gallery</b></a>
<br>▪ <b><i>NFTEA Gallery: </i></b><a href="https://www.nftea.gallery"><b>https://www.nftea.gallery</b></a>
</div>
<br>
<!-- Footer -->
<br>
</div>
<div id="footer">
2021 - Eternity, by @AlguienAlli. All rights reserved. Submit memo/funds to Bitshares account <b>"alguien00-nftxp"</b> for inquiries or donations. Thank you so much!
</div>
</body>
<script src="Build/UnityLoader.js"></script>
<script>
var gameInstance = UnityLoader.instantiate("gameContainer", "Build/Build.json", {onProgress: UnityProgress});
function UnityProgress(gameInstance, progress) {
if (!gameInstance.Module) {
return;
}
const loader = document.querySelector("#loader");
if (!gameInstance.progress) {
const progress = document.querySelector("#loader .progress");
progress.style.display = "block";
gameInstance.progress = progress.querySelector(".full");
loader.querySelector(".spinner").style.display = "none";
}
gameInstance.progress.style.transform = `scaleX(${progress})`;
if (progress === 1 && !gameInstance.removeTimeout) {
gameInstance.removeTimeout = setTimeout(function() {
loader.style.display = "none";
}, 2000);
}
}
//Text Output
function GetUnityOutputString(str){
//alert('Text was output to the area below the app frame.');
document.getElementById("unityOutputTitle").textContent = "The App Output is Below:";
document.getElementById("unityOutputDiv").textContent = str;
document.getElementById("unityOutputDiv").style.display = '';
}
//Navigator OS Detect
function GetOS() {
var userAgent = window.navigator.userAgent,
platform = window.navigator.platform.toLowerCase(),
macosPlatforms = ['macintosh', 'macintel', 'macppc', 'mac68k'],
windowsPlatforms = ['win32', 'win64', 'windows', 'wince', 'win16'],
iosPlatforms = ['iphone', 'ipad', 'ipod'],
os = "";//null;
if (macosPlatforms.includes(platform)) {
os = 'Mac';
} else if (iosPlatforms.includes(platform)) {
os = 'iOS';
} else if (windowsPlatforms.includes(platform)) {
os = 'Windows';
} else if (/Android/.test(userAgent)) {
os = 'Android';
} else if (!os && /Linux/.test(platform)) {
os = 'Linux';
}
return os;
}
function GetUserInput(defaultStr)
{
var retstr = window.prompt("Input Asset Symbol (16char max)",defaultStr);
if(!retstr)
retstr = defaultStr;
return retstr;
}
</script>
</html>