-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
306 lines (246 loc) · 9.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
<!DOCTYPE html>
<html>
<head>
<title>Network State Genesis</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8" />
<style>
html {
background: url(www/images/earth-background-resized.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
body {
margin: 0;
color: white;
font-family: monospace;
font-size: 1.1em;
}
.wrapper {
width: 600px;
max-width: 80vw;
margin: 80px auto; /* TODO: align middle */
padding: 20px;
background: rgba(0,0,0,0.85);
box-shadow: 0px 0px 30px 10px #ffffff;
}
.space {
display: inline-block;
width: 5px;
}
a {
color: white;
text-decoration: none;
transition: all 1000ms ease-out;
border-bottom: 2px solid white;
}
header a:hover {
color: yellow;
border-bottom: 2px solid yellow;
}
.clearfix:after {
content: " ";
visibility: hidden;
display: block;
height: 0;
clear: both;
}
h3 {
margin-bottom: 0;
font-weight: bold;
font-size: 1.5em;
}
h3 + p {
margin-top: 0;
}
.btc {
font-family: monospace;
font-size: 1.4em;
width: 410px;
padding: 8px;
max-width: calc(100vw - 128px);
}
li {
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
}
.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
height: 0;
}
.videoWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.blockOverflow {
overflow-y: hidden;
max-height:75vh;
}
.salesinfo {
max-height: 0;
overflow: hidden;
}
.salesinfo.open {
max-height: 999999px;
}
</style>
<link rel="stylesheet" href="styles.css">
<meta property="og:title" content="Network State Genesis"/>
<meta property="og:image" content="https://genesis.re/preview.jpg""/>
<meta property="og:site_name" content="Network State Genesis - Passport NFT"/>
<meta property="og:description" content="Architecting a New World. Operating System for the Planet(s)"/>
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@genesisdotre">
<meta name="twitter:creator" content="@marsXrobertson">
<meta name="twitter:title" content="Network State Genesis - Passport NFT">
<meta name="twitter:description" content="Architecting a New World. Operating System for the Planet(s)">
<meta name="twitter:image" content="https://genesis.re/preview.jpg">
</head>
<body id="body">
<div class="wrapper">
<h1 style="margin-bottom: 10px; font-size: 25px">Network State Genesis - Passport NFT</h1>
<p>Multiplanetary<br><br>Extraterrestrial<br><br>Intergalactic<br><br>Hyperdimensional<br><br>From the future 💫</p>
<img src="Network-State-Genesis-PASSPORT-LATEST.jpg" style="max-width: 100%; border: 1px solid white;">
<h3 style="margin-bottom: 10px; font-size: 20px">Mission vision manifesto</h3>
<p>Check our <a href="Network-State-Genesis-WHITEPAPER-compressed.pdf">founding document</a> (2021)</p>
<p>Check our <a href="Network-State-Genesis-WHITEPAPER-V2.pdf">V2 update</a> (2024)</p>
<h3 style="margin-bottom: 10px; margin-top:35px; font-size: 20px">Benefits</h3>
<p>Join us and shape the future of (multi)planetary governance.</p>
<p>Become a citizen of the Network State Genesis.</p>
<p>Become a member of the <a href="https://PlanetaryCouncil.org">Planetary Council</a>.</p>
<p>Receive the physical passport in the 1st batch, currently we are digital only.</p>
<p>Each purchase automatically increases the price, clear incentive to act now.</p>
<h3 style="margin-bottom: 10px; margin-top:35px; font-size: 20px">We are live on Ethereum mainnet</h3>
<p>Please send ETH to the following address on the Ethereum mainnet:</p>
<br>
<div
style="display: flex; align-items: center; gap: 8px; padding: 10px; border: 2px solid white; border-radius: 5px; font-size: 0.9em;"
>
<code
id="full-address"
style="cursor: pointer; user-select: all;"
onclick="selectAddress()"
>
<span id="display-address">0x3EF61d...eB8d</span>
</code>
<button
onclick="copyAddress()"
style="background-color: #333; color: white; padding: 4px 8px; border-radius: 4px; border: none; font-size: 0.8em; cursor: pointer; margin-left: auto;"
>
Copy
</button>
</div>
<br>
<br>
<br>
<img src="qrcode-ethaddress.png" height="200">
<br>
<p>Current price: <span id="loadingBar">.....</span> <span id="currentPrice"></span></p>
<p>Warning about warning, it is safe to proceed:</p>
<img src="metamask-warning.png" style="max-width: 100%; height: auto;">
<p>For more technical info read more in the <a href="https://basex.notion.site/Network-State-Genesis-04647a9c605747f2bf5a320ab1a1bafa?pvs=4">docs</a>.</p>
<h3 style="margin-bottom: 10px; margin-top:35px; font-size: 20px">Connect with us</h3>
<img src="marsrobertson.jpg" height="90" style="float:left; margin-right: 15px">
<div style="line-height: 1.6em;">
Twitter: <a href="https://twitter.com/marsXRobertson">@marsXRobertson</a>, <a href="https://twitter.com/genesisdotre">@genesisdotre</a>, <a href="https://twitter.com/PlanetCouncil">@PlanetCouncil</a><br>
Telegram: <a href="https://https://t.me/marsXR">@marsXR</a>, <a href="https://https://t.me/marsDAOx">@marsDAOx</a>, <a href="https://https://t.me/PlanetaryCouncil">@PlanetaryCouncil</a><br>
Calendly: <a href="https://calendly.com/marsxr/basex">calendly.com/marsxr/basex</a> <span style="font-family: Arial, Helvetica, sans-serif;">☎️</span>
</div>
<div class="clearfix"></div>
</div> <!-- wrapper ends-->
</div>
<script src="https://genesis.re/cmdctrl/cmdctrl.js"></script>
<script src="https://cdn.ethers.io/lib/ethers-5.4.umd.min.js" type="text/javascript"></script>
<script>
const fullAddress = "0x3EF61d25b2Bf303DE52efdd5e50698BED8f9eB8d";
const displayAddress = document.getElementById("display-address");
// Initialize display based on current window width
function updateAddressDisplay() {
if (window.innerWidth <= 480) {
displayAddress.innerText = "0x3EF61d...eB8d";
} else {
displayAddress.innerText = fullAddress;
}
}
function copyAddress() {
navigator.clipboard.writeText(fullAddress).then(() => {
alert("Address copied to clipboard!");
});
}
function selectAddress() {
const range = document.createRange();
range.selectNode(document.getElementById("full-address"));
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
}
// Set display on load and update on resize
updateAddressDisplay();
window.addEventListener("resize", updateAddressDisplay);
</script>
<script>
GENESIS_ADDRESS = "0x3ef61d25b2bf303de52efdd5e50698bed8f9eb8d";
GENESIS_ABI_SIMPLIFIED = [{
"inputs": [],
"name": "currentPrice",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}];
let priceLoadedSuccessfully = false;
async function getCurrentPrice() {
try {
const network = "homestead";
const provider = ethers.getDefaultProvider(network, {
infura: "b002d089dde541d88fd64753f4b10ea5",
});
let GENESIS = new ethers.Contract(GENESIS_ADDRESS, GENESIS_ABI_SIMPLIFIED, provider);
let currentPrice = ethers.utils.formatEther(await GENESIS.currentPrice());
if(priceLoadedSuccessfully) { // aready after timeout, do not want to confuse the user with changing prices
return;
}
document.getElementById("currentPrice").textContent = ("" + currentPrice + " ETH");
document.getElementById('loadingBar').style.display = 'none';
priceLoadedSuccessfully = true;
} catch(err) {
console.log(err);
}
}
getCurrentPrice();
let loadingBarElement = document.getElementById('loadingBar');
let dotCount = 0;
function updateLoadingBar() {
let loadingText = '';
for (let i = 0; i < dotCount; i++) {
loadingText += '.';
}
loadingBarElement.textContent = loadingText;
dotCount++;
dotCount = (dotCount > 5) ? 0 : dotCount;
setTimeout(updateLoadingBar, 250);
}
updateLoadingBar();
setTimeout(() => {
if (!priceLoadedSuccessfully) {
document.getElementById('loadingBar').style.display = 'none';
document.getElementById("currentPrice").textContent = "0.075 ETH";
priceLoadedSuccessfully = true;
}
}, 10000); // 10 seconds, if price not loaded, just guess the amount
</script>
<!-- <script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script> -->
</body>
</html>