-
Notifications
You must be signed in to change notification settings - Fork 0
/
bamboo-coupon.html
383 lines (339 loc) · 24.9 KB
/
bamboo-coupon.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
<!DOCTYPE html>
<!-- Last Published: Wed Oct 09 2024 13:40:27 GMT+0000 (Coordinated Universal Time) -->
<html data-wf-domain="da-age.webflow.io" data-wf-page="6706760a688edaf346835e9e" data-wf-site="6421898f81ec56cd303380ec">
<head>
<meta charset="utf-8"/>
<title>Bamboo_coupon</title>
<meta content="Snap & Reward: Point-to-Click Adventure! Get ready for an exciting journey where every photo you take earns you points towards fantastic rewards." name="description"/>
<meta content="Bamboo_coupon" property="og:title"/>
<meta content="Snap & Reward: Point-to-Click Adventure! Get ready for an exciting journey where every photo you take earns you points towards fantastic rewards." property="og:description"/>
<meta content="Bamboo_coupon" property="twitter:title"/>
<meta content="Snap & Reward: Point-to-Click Adventure! Get ready for an exciting journey where every photo you take earns you points towards fantastic rewards." property="twitter:description"/>
<meta property="og:type" content="website"/>
<meta content="summary_large_image" name="twitter:card"/>
<meta content="width=device-width, initial-scale=1" name="viewport"/>
<link href="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/css/da-age.webflow.37002bcd6.css" rel="stylesheet" type="text/css"/>
<link href="https://fonts.googleapis.com" rel="preconnect"/>
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin="anonymous"/>
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js" type="text/javascript"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script>
<script src="./Scripts/jQuery/jquery.min.js"></script>
<script src="./Scripts/web3/web3.min.js"></script>
<script type="text/javascript">
WebFont.load({
google: {
families: ["Open Sans:300,300italic,400,400italic,600,600italic,700,700italic,800,800italic", "Inter:regular,500,600,700", "Noto Serif:regular,italic,700,700italic"]
}
});
</script>
<script type="text/javascript">
!function(o, c) {
var n = c.documentElement
, t = " w-mod-";
n.className += t + "js",
("ontouchstart"in o || o.DocumentTouch && c instanceof DocumentTouch) && (n.className += t + "touch")
}(window, document);
</script>
<link href="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/6421899081ec5689f3338133_Favicon%2032.png" rel="shortcut icon" type="image/x-icon"/>
<link href="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/6421899081ec56c095338132_Favicon%20256.png" rel="apple-touch-icon"/>
<link rel="alternate" hreflang="en" href="https://www.da-age.io">
<link rel="alternate" hreflang="zh" href="https://zh.da-age.io">
<link rel="alternate" hreflang="th" href="https://th.da-age.io">
<link rel="alternate" hreflang="id" href="https://id.da-age.io">
<script type="text/javascript" src="https://cdn.weglot.com/weglot.min.js"></script>
<script>
Weglot.initialize({
api_key: 'wg_fec8c057afeab8ee9b278e80d67c74d42'
});
</script>
</head>
<body>
<div data-collapse="small" data-animation="default" data-duration="400" data-easing="ease" data-easing2="ease" role="banner" class="nav-bar w-nav">
<div class="nav-container w-container">
<div class="logo-div">
<a href="/" class="nav-logo w-inline-block">
<img src="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/642d5a98952aaf152d2447d9_DAAGE_sss_sss.png" width="187" alt="" class="logo"/>
</a>
</div>
<nav role="navigation" class="nav-content w-nav-menu">
<div class="nav-menu">
<a href="https://www.da-age.io/#About" class="nav-link w-nav-link">About</a>
<a href="https://www.da-age.io/#Physcial-location" class="nav-link w-nav-link">RWA Location</a>
<a href="https://www.da-age.io/#Introduction" class="nav-link w-nav-link">RWA</a>
<a href="https://www.da-age.io/golden-ticket" target="_blank" class="nav-link w-nav-link">Golden Tickets</a>
<a href="https://mint.da-age.io/whitelist-registration.html" target="_blank" class="nav-link w-nav-link">Whitelist Registration</a>
</div>
<div class="nav-social-links">
<a href="#" class="social-link-block w-inline-block">
<img src="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/660c13c5a541e341ef416303_icon.png" loading="lazy" width="33" alt="" class="image-16"/>
</a>
<a href="#" class="social-link-block w-inline-block">
<img src="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/660311d84bbe6e9dca32542c_Eo_circle_green_checkmark.svg.png" loading="lazy" width="33" sizes="(max-width: 767px) 100vw, (max-width: 991px) 20px, (max-width: 1279px) 2vw, (max-width: 1439px) 20px, 1vw" alt="" srcset="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/660311d84bbe6e9dca32542c_Eo_circle_green_checkmark.svg-p-500.png 500w, https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/660311d84bbe6e9dca32542c_Eo_circle_green_checkmark.svg-p-800.png 800w, https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/660311d84bbe6e9dca32542c_Eo_circle_green_checkmark.svg-p-1080.png 1080w, https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/660311d84bbe6e9dca32542c_Eo_circle_green_checkmark.svg-p-1600.png 1600w, https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/660311d84bbe6e9dca32542c_Eo_circle_green_checkmark.svg-p-2000.png 2000w, https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/660311d84bbe6e9dca32542c_Eo_circle_green_checkmark.svg.png 2048w" class="coneected-icon">
</a>
</div>
<div class="nav-cta-button-container">
<a href="javascript:void(0);" id="connect-wallet" class="nav-link button w-nav-link">Connect Wallet</a>
</div>
</nav>
<div class="menu-button w-nav-button">
<img src="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/6421899081ec56e8c933813c_White%20Mobile%20Menu.svg" loading="lazy" width="24" alt="" class="menu-icon"/>
</div>
</div>
</div>
<div class="fn-section-413">
<div class="fn-container-grid-17-copy">
<div id="w-node-_7663433d-53e7-6fb3-eae2-a8f4850890b4-46835e9e" class="fn-column-center-8">
<h2 class="fn-heading-37">
Congratulations! <br/>
You Win! <br/>Bamboo Prize!
</h2>
</div>
<div id="w-node-_1ec19006-d30f-b56a-30e8-d17e70a122fe-46835e9e" class="fn-features-card-with-image-4">
<div class="div-block-40">
<img sizes="(max-width: 479px) 100vw, (max-width: 767px) 96vw, (max-width: 1279px) 7vw, (max-width: 1439px) 8vw, 12vw" srcset="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/670642f7dd4b35e158d581bc_bamboo_logo-p-500.png 500w, https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/670642f7dd4b35e158d581bc_bamboo_logo.png 692w" src="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/670642f7dd4b35e158d581bc_bamboo_logo.png" loading="lazy" alt="" class="fn-features-card-image-4"/>
</div>
<div class="fn-container-grid-20">
<div id="w-node-_8b8dbf3e-0f6d-b33f-322f-83b72788a289-46835e9e" class="fn-faq-classic-wrapper-3">
<div class="fn-faq-item-toggle-2">
<div class="fn-faq-intro-2">
<img src="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/6421899081ec56aba433812e_Roadmap%20Shape%201.svg" loading="lazy" id="w-node-_805a75fa-0e2a-6a84-58c1-e22b01b1cd7d-46835e9e" alt=""/>
<div class="fn-heading-5-no-margin-2-copy">Do you want extra golden ticket?</div>
<div id="w-node-_8b8dbf3e-0f6d-b33f-322f-83b72788a28e-46835e9e" class="fn-faq-arrow-down-2 w-embed">
<svg width="30" height="30" viewBox="0 0 30 30" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path d="M30 15C30 18.9782 28.4196 22.7936 25.6066 25.6066C22.7936 28.4196 18.9782 30 15 30C11.0218 30 7.20644 28.4196 4.3934 25.6066C1.58035 22.7936 0 18.9782 0 15C0 11.0218 1.58035 7.20644 4.3934 4.3934C7.20644 1.58035 11.0218 0 15 0C18.9782 0 22.7936 1.58035 25.6066 4.3934C28.4196 7.20644 30 11.0218 30 15ZM15.9375 8.4375C15.9375 8.18886 15.8387 7.9504 15.6629 7.77459C15.4871 7.59877 15.2486 7.5 15 7.5C14.7514 7.5 14.5129 7.59877 14.3371 7.77459C14.1613 7.9504 14.0625 8.18886 14.0625 8.4375L14.0625 19.2994L10.0387 15.2738C9.86271 15.0977 9.62395 14.9988 9.375 14.9988C9.12605 14.9988 8.88729 15.0977 8.71125 15.2738C8.53521 15.4498 8.43632 15.6885 8.43632 15.9375C8.43632 16.1865 8.53521 16.4252 8.71125 16.6012L14.3363 22.2262C14.4233 22.3136 14.5268 22.3828 14.6407 22.4301C14.7546 22.4773 14.8767 22.5017 15 22.5017C15.1233 22.5017 15.2454 22.4773 15.3593 22.4301C15.4732 22.3828 15.5767 22.3136 15.6637 22.2262L21.2887 16.6012C21.4648 16.4252 21.5637 16.1865 21.5637 15.9375C21.5637 15.6885 21.4648 15.4498 21.2887 15.2738C21.1127 15.0977 20.874 14.9988 20.625 14.9988C20.376 14.9988 20.1373 15.0977 19.9613 15.2738L15.9375 19.2994L15.9375 8.4375Z" fill="currentColor"/>
</svg>
</div>
</div>
<div class="spacer-s-8"></div>
<div class="fn-paragraph-no-margin-9">
<img src="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/650d593e3974d3d8edf82e92_goldenticket.png" loading="lazy" sizes="(max-width: 479px) 100vw, (max-width: 767px) 86vw, (max-width: 991px) 169.5546875px, (max-width: 1279px) 17.6875px, (max-width: 1439px) 3vw, 11vw" srcset="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/650d593e3974d3d8edf82e92_goldenticket-p-500.png 500w, https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/650d593e3974d3d8edf82e92_goldenticket-p-800.png 800w, https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/650d593e3974d3d8edf82e92_goldenticket-p-1080.png 1080w, https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/650d593e3974d3d8edf82e92_goldenticket-p-1600.png 1600w, https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/650d593e3974d3d8edf82e92_goldenticket.png 1900w" alt="" class="image-28"/>
<p class="paragraph-41">Upload pictures of the restaurant environment or food! You will receive an extra golden ticket!</p>
<div class="w-form">
<form id="wf-form-bamboo-form" name="wf-form-bamboo-form" data-name="bamboo form" method="get" data-wf-page-id="6706760a688edaf346835e9e" data-wf-element-id="67205ddf-9e5b-49fd-7a2a-e8eb875f6878">
<label for="Name" class="field-label">Bamboo restaurant pictures</label>
<input class="text-field-3 w-input" maxlength="256" name="Name" data-name="Name" placeholder="Name" type="text" id="Name" required=""/>
<input class="text-field-4 w-input" maxlength="256" name="Wallet-Address" data-name="Wallet Address" placeholder="Wallet Address" type="text" id="Wallet-Address" required=""/>
<div class="w-file-upload">
<div class="w-file-upload-default">
<input class="w-file-upload-input" accept="" name="file" data-name="File" aria-hidden="true" type="file" id="file" tabindex="-1"/>
<label for="file" role="button" tabindex="0" class="w-file-upload-label">
<div class="w-icon-file-upload-icon"></div>
<div class="w-inline-block">Upload File</div>
</label>
<div class="text-block-36 w-file-upload-info">Max file size 10MB.</div>
</div>
<div tabindex="-1" class="w-file-upload-uploading w-hidden">
<div class="w-file-upload-uploading-btn">
<svg class="w-icon-file-upload-uploading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" aria-hidden="true">
<path fill="currentColor" opacity=".2" d="M15 30a15 15 0 1 1 0-30 15 15 0 0 1 0 30zm0-3a12 12 0 1 0 0-24 12 12 0 0 0 0 24z"></path>
<path fill="currentColor" opacity=".75" d="M0 15A15 15 0 0 1 15 0v3A12 12 0 0 0 3 15H0z">
<animateTransform attributeName="transform" attributeType="XML" dur="0.6s" from="0 15 15" repeatCount="indefinite" to="360 15 15" type="rotate"></animateTransform>
</path>
</svg>
<div class="w-inline-block">Uploading...</div>
</div>
</div>
<div tabindex="-1" class="w-file-upload-success w-hidden">
<div class="w-file-upload-file">
<div class="w-file-upload-file-name">fileuploaded.jpg</div>
<div aria-label="Remove file" role="button" tabindex="0" class="w-file-remove-link">
<div class="w-icon-file-upload-remove"></div>
</div>
</div>
</div>
<div tabindex="-1" class="w-file-upload-error w-hidden">
<div class="w-file-upload-error-msg" data-w-size-error="Upload failed. Max size for files is 10 MB." data-w-type-error="Upload failed. Invalid file type." data-w-generic-error="Upload failed. Something went wrong. Please retry.">Upload failed. Max size for files is 10 MB.</div>
</div>
</div>
<input type="submit" data-wait="Please wait..." class="button w-button" value="Submit"/>
</form>
<div class="success-message-5 w-form-done">
<div>Thank you! Your submission has been received!</div>
</div>
<div class="error-message-5 w-form-fail">
<div>Oops! Something went wrong while submitting the form.</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="fn-features-card-column-4">
<div class="fn-heading-36">*After arriving at the store, please show this page to the staff for verification (the screenshot is invalid)</div>
<img src="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/670640f885f16a427e542513_552634c277359603e3e2a57622b0415d.JPG" loading="lazy" sizes="(max-width: 479px) 100vw, (max-width: 767px) 93vw, (max-width: 991px) 5vw, (max-width: 1279px) 6vw, (max-width: 1439px) 7vw, 12vw" srcset="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/670640f885f16a427e542513_552634c277359603e3e2a57622b0415d-p-500.jpg 500w, https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/670640f885f16a427e542513_552634c277359603e3e2a57622b0415d-p-800.jpg 800w, https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/670640f885f16a427e542513_552634c277359603e3e2a57622b0415d.JPG 904w" alt="" class="image-28"/>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="footer-container w-container">
<div class="w-layout-grid footer-grid">
<div class="footer-main-box">
<a data-ix="logo" href="/" class="footer-logo w-nav-brand">
<img src="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/642d5a98952aaf152d2447d9_DAAGE_sss_sss.png" width="218" alt="" class="logo"/>
</a>
<p class="paragraph large grey">
Own your digital assets in the age of decentralization - with DA AGE<br/>(Starting from 2023)
</p>
</div>
<div class="_2-grid _2-on-mobile">
<div class="footer-links-container">
<a href="/" class="footer-link">Home</a>
<a href="https://www.da-age.io/#Introduction" class="footer-link">RWA</a>
<a href="https://www.da-age.io/#Physcial-location" class="footer-link">RWA Physical Location</a>
<a href="https://www.da-age.io/#Roadmap" class="footer-link">Roadmap</a>
<a href="https://www.da-age.io/golden-ticket" class="footer-link">Golden Tickets</a>
<a href="https://mint.da-age.io/whitelist-registration.html" target="_blank" class="footer-link">Whitelist Registtration</a>
</div>
</div>
<div class="footer-social-links">
<a href="https://twitter.com/DA_AGE_EN" class="footer-social-link-block w-inline-block">
<img src="https://cdn.prod.website-files.com/6421898f81ec56cd303380ec/6421899081ec566e73338124_Grey%20Twitter%20Icon.svg" loading="lazy" width="33" alt="Twitter Icon" class="social-icon"/>
</a>
</div>
</div>
</div>
</div>
<script src="https://d3e54v103j8qbb.cloudfront.net/js/jquery-3.5.1.min.dc5e7f18c8.js?site=6421898f81ec56cd303380ec" type="text/javascript" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="./Content/Styles/js/3ee216adc.js" type="text/javascript"></script>
</body>
</html>
<script type="text/javascript">
var abi = [{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}];
var contract = '0x439536FBaae0D36A3bafbe3e20aF7a96881BcF98';
var network = "main"; // network type
var net_data_map = {
testnet: {
chainId: "0x13881",
chainName: "Polygon Mumbai",
nativeCurrency: {
name: "MATIC",
symbol: "MATIC",
decimals: 18
},
rpcUrls: ["https://rpc.ankr.com/polygon_mumbai"],
blockExplorerUrls: ["https://mumbai.polygonscan.com/"]
},
main: {
chainId: "0x89",
chainName: "Polygon Mainnet",
nativeCurrency: {
name: "MATIC",
symbol: "MATIC",
decimals: 18
},
rpcUrls: ["https://polygon-mainnet.infura.io/v3/2af986a42abb45b5bd2c4495a3e0f6dd"],
blockExplorerUrls: ["https://polygonscan.com/"]
}
}
const provider = window.ethereum || window.web3 || (window.bitkeep && window.bitkeep.ethereum);
var web3 = new Web3(provider);
var gasMultiple = 1.1;//1.5;
var gasMultiple1 = 1.1;//1.3;
var isConnect = window.localStorage.getItem("selectedWallet");
var walletPlaceholderText = "Connect Wallet";
var wallet = new Proxy({ address: walletPlaceholderText }, {
set(obj, prop, value) {
if (prop === "address") {
if (value && value != walletPlaceholderText) {
$("#connect-wallet").html(`${value.slice(0, 5)}...${value.slice(-5, value.length)}`);
} else {
$("#connect-wallet").html(walletPlaceholderText);
location.reload(true);
}
}
if (prop == "chainId") {
if (value !== net_data_map[network].chainId) {
if (["0x1", "0x2", "0x3", "0x4", "0x5"].includes(net_data_map[network].chainId)) {
// add ethereum chain switch
window.ethereum.request({
method: "wallet_switchEthereumChain",
"params": [
{
"chainId": net_data_map[network].chainId,
}
]
})
} else {
window.ethereum.request({
method: 'wallet_addEthereumChain',
params: [net_data_map[network], wallet.address]
})
.then((result) => { })
.catch((error) => { })
}
}
}
obj[prop] = value
}
});
var mintBtn = new Proxy({ disable: false }, {
set(obj, prop, value) {
obj[prop] = value
}
});
provider.on("accountsChanged", (accounts) => {
wallet.address = accounts[0] || walletPlaceholderText;
})
provider.on('disconnect', (error) => {
wallet.address = walletPlaceholderText
});
provider.on('chainChanged', (chainId) => {
wallet.chainId = chainId;
connectWallet(provider)
});
function connectWallet(provider) {
provider.enable().then(async (accounts) => {
wallet.address = accounts[0];
wallet.chainId = provider.chainId;
window.localStorage.setItem("selectedWallet", "INJECTED")
//check
var type = await queryCheckMember(wallet.address);
if (result > 0) {
document.querySelector('input[name="Wallet-Address"]').value = wallet.address;
} else {
console.log("address not Member");
window.location.href = './snap-reward-point-to-click-adventure.html';
}
}).catch(error => {
console.log(error);
});
}
async function queryCheckMember(address){
try {
var memberContract = new web3.eth.Contract(abi, contract);
result = await memberContract.methods.balanceOf(address).call();
console.log(" member result = ",result)
return result;
} catch (err) {
console.log(err);
}
return result;
}
$(function(){
if (isConnect) {
connectWallet(provider);
};
$("#connect-wallet").on("click",()=> {
connectWallet(provider);
});
})
</script>