invite-register.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  6. <title>BEX邀请注册</title>
  7. <link rel="stylesheet" href="/css/invite.css">
  8. </head>
  9. <body>
  10. <div class="container">
  11. <div class="header">
  12. <img src="/images/logo.png" alt="">
  13. </div>
  14. <div class="content-area">
  15. <div class="banner-section">
  16. <div class="banner-bg">
  17. <img src="/images/Group 470395@3x.png" alt="">
  18. </div>
  19. <div class="banner-content">
  20. <div class="invite-highlight">
  21. <div class="invite-highlight-line">
  22. <img src="/images/bg-left.png" alt="">
  23. </div>
  24. <div class="invite-highlight-text" data-i18n="bannerTitle">邀请您立即注册,独家奖励等你来拿!</div>
  25. <div class="invite-highlight-line">
  26. <img src="/images/bg-right.png" alt="">
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="form-section" id="registerForm">
  32. <div class="form-group">
  33. <div class="input-wrapper">
  34. <input type="email" id="email" placeholder="" required>
  35. <label class="input-label" data-i18n="emailPlaceholder">请输入邮箱</label>
  36. </div>
  37. <span class="error-message" id="emailError"></span>
  38. </div>
  39. <div class="form-group">
  40. <div class="input-wrapper">
  41. <input type="password" id="password" placeholder="" required>
  42. <label class="input-label" data-i18n="passwordPlaceholder">请设置密码</label>
  43. </div>
  44. <span class="error-message" id="passwordError"></span>
  45. <span class="password-rule" data-i18n="passwordRule">8-32位,需包含大小写字母和特殊字符</span>
  46. </div>
  47. <div class="form-group invite-code-group">
  48. <div class="invite-code-label" data-i18n="inviteCodeTitle">邀请码</div>
  49. <div class="invite-code-box">
  50. <div class="invite-code-value" id="inviteCode"></div>
  51. <div class="invite-code-copy" id="copyBtn">
  52. <svg viewBox="0 0 24 24">
  53. <rect x="9" y="9" width="13" height="13" rx="2" ry="2"/>
  54. <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>
  55. </svg>
  56. </div>
  57. </div>
  58. </div>
  59. <button class="btn-primary" id="registerBtn" data-i18n="registerButton">立即注册并下载APP</button>
  60. <div class="agreement-text" data-i18n="agreementText">注册即表示我同意<a href="/privacy-policy.html">《用户协议》</a>及<a href="/privacy-policy.html">《隐私协议》</a></div>
  61. </div>
  62. <div class="form-section verification-section" id="verificationForm" style="display: none;">
  63. <div class="form-group">
  64. <div class="input-wrapper">
  65. <input type="text" id="verificationCode" placeholder="" required maxlength="6">
  66. <label class="input-label" data-i18n="verificationPlaceholder">请输入邮箱验证码</label>
  67. <span class="verification-timer" id="timer"></span>
  68. </div>
  69. <span class="error-message" id="verificationError"></span>
  70. </div>
  71. <button class="btn-primary" id="submitBtn" data-i18n="submitButton">提交验证码</button>
  72. <div class="agreement-text" style="margin-top: 24px;">
  73. <!-- <span data-i18n="resendCode">未收到验证码?</span> -->
  74. <span id="resendBtn" class="resend-code" style="margin-left: 8px;" data-i18n="resendButton">重新发送</span>
  75. </div>
  76. </div>
  77. <div class="features-section">
  78. <div class="features-title" data-i18n="featuresTitle">前沿交易工具,多元交易策略</div>
  79. <div class="features-grid">
  80. <div class="feature-card">
  81. <div class="feature-icon">
  82. <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
  83. <g id="Frame">
  84. <path id="Vector" d="M12 4H5.33333C4.59695 4 4 4.59695 4 5.33333V12C4 12.7364 4.59695 13.3333 5.33333 13.3333H12C12.7364 13.3333 13.3333 12.7364 13.3333 12V5.33333C13.3333 4.59695 12.7364 4 12 4Z" stroke="white" stroke-width="2" stroke-linejoin="round"/>
  85. <path id="Vector_2" d="M12 18.666H5.33333C4.59695 18.666 4 19.2629 4 19.9993V26.666C4 27.4024 4.59695 27.9993 5.33333 27.9993H12C12.7364 27.9993 13.3333 27.4024 13.3333 26.666V19.9993C13.3333 19.2629 12.7364 18.666 12 18.666Z" stroke="white" stroke-width="2" stroke-linejoin="round"/>
  86. <path id="Vector_3" d="M26.667 4H20.0003C19.2639 4 18.667 4.59695 18.667 5.33333V12C18.667 12.7364 19.2639 13.3333 20.0003 13.3333H26.667C27.4034 13.3333 28.0003 12.7364 28.0003 12V5.33333C28.0003 4.59695 27.4034 4 26.667 4Z" stroke="#FD6F23" stroke-width="2" stroke-linejoin="round"/>
  87. <path id="Vector_4" d="M26.667 18.666H20.0003C19.2639 18.666 18.667 19.2629 18.667 19.9993V26.666C18.667 27.4024 19.2639 27.9993 20.0003 27.9993H26.667C27.4034 27.9993 28.0003 27.4024 28.0003 26.666V19.9993C28.0003 19.2629 27.4034 18.666 26.667 18.666Z" stroke="white" stroke-width="2" stroke-linejoin="round"/>
  88. </g>
  89. </svg>
  90. </div>
  91. <div class="feature-name" data-i18n="feature1">分仓管理</div>
  92. </div>
  93. <div class="feature-card">
  94. <div class="feature-icon">
  95. <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
  96. <path d="M3.33334 16C3.33334 22.9956 9.00441 28.6666 16 28.6666V17.3333C16 16.5969 16.5969 16 17.3333 16H28.6667C28.6667 9.00438 22.9956 3.33331 16 3.33331C9.00441 3.33331 3.33334 9.00438 3.33334 16Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  97. <path d="M28 20H20V28H28V20Z" stroke="#FD6F23" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  98. </svg>
  99. </div>
  100. <div class="feature-name" data-i18n="feature2">批量交易</div>
  101. </div>
  102. <div class="feature-card">
  103. <div class="feature-icon">
  104. <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
  105. <path d="M4 4V28H28" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  106. <path d="M9.33334 22.6667L14.6667 12L21.3333 18L28 4" stroke="#FD6F23" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  107. </svg>
  108. </div>
  109. <div class="feature-name" data-i18n="feature3">画线下单</div>
  110. </div>
  111. <div class="feature-card">
  112. <div class="feature-icon">
  113. <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
  114. <path d="M12.6667 13.3333C15.244 13.3333 17.3333 11.244 17.3333 8.66667C17.3333 6.08934 15.244 4 12.6667 4C10.0893 4 8 6.08934 8 8.66667C8 11.244 10.0893 13.3333 12.6667 13.3333Z" stroke="white" stroke-width="2" stroke-linejoin="round"/>
  115. <path d="M24 19.3334V27.3334M20 23.3334H28" stroke="#FD6F23" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  116. <path d="M18 18.6666H12.5333C9.5464 18.6666 8.05293 18.6666 6.91207 19.2479C5.90852 19.7592 5.09262 20.5752 4.5813 21.5787C4 22.7196 4 24.213 4 27.2V28H18" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  117. </svg>
  118. </div>
  119. <div class="feature-name" data-i18n="feature4">跟单下单</div>
  120. </div>
  121. </div>
  122. </div>
  123. <div class="stats-section">
  124. <img src="/images/IMG_7495 1@3x.png" alt="">
  125. <div class="stats-grid">
  126. <div class="stat-item">
  127. <div class="stat-value">30+</div>
  128. <div class="stat-label" data-i18n="stat1">覆盖国家及地区</div>
  129. </div>
  130. <div class="stat-item">
  131. <div class="stat-value">500+</div>
  132. <div class="stat-label" data-i18n="stat2">数字资产</div>
  133. </div>
  134. <div class="stat-item">
  135. <div class="stat-value">6+</div>
  136. <div class="stat-label" data-i18n="stat3">稳定运营6年</div>
  137. </div>
  138. <div class="stat-item">
  139. <div class="stat-value">100W+</div>
  140. <div class="stat-label" data-i18n="stat4">全球用户</div>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="success-overlay" id="successOverlay" style="display: none;">
  146. <div class="success-content">
  147. <div class="success-icon">
  148. <svg viewBox="0 0 24 24">
  149. <path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/>
  150. </svg>
  151. </div>
  152. <div class="success-title" data-i18n="successTitle">注册成功</div>
  153. <div class="success-desc" data-i18n="successDesc">即将跳转到下载页面...</div>
  154. </div>
  155. </div>
  156. <div class="loading-overlay" id="loadingOverlay" style="display: none;">
  157. <div class="loading-content">
  158. <div class="loading-spinner"></div>
  159. <span class="loading-text" data-i18n="loadingText">加载中...</span>
  160. </div>
  161. </div>
  162. <div class="error-overlay" id="errorOverlay" style="display: none;">
  163. <div class="error-content">
  164. <div class="error-icon">!</div>
  165. <span class="error-text" data-i18n="errorText">操作失败,请稍后重试</span>
  166. <button class="error-retry" id="retryBtn" data-i18n="retryBtn">重试</button>
  167. </div>
  168. </div>
  169. </div>
  170. <script>
  171. (function() {
  172. const translations = {
  173. 'zh': {
  174. headerTitle: 'BEX邀请注册',
  175. bannerTitle: '邀请您立即注册,独家奖励等你来拿!',
  176. inviteCodeLabel: '邀请码',
  177. emailPlaceholder: '请输入邮箱',
  178. passwordPlaceholder: '请设置密码',
  179. passwordRule: '8-32位,需包含大小写字母和特殊字符',
  180. inviteCodeTitle: '邀请码',
  181. registerButton: '立即注册并下载APP',
  182. agreementText: '注册即表示我同意<a class="agreement-link" data-url="/privacy-policy.html">《用户协议》</a>及<a class="agreement-link" data-url="/privacy-policy.html">《隐私协议》</a>',
  183. featuresTitle: '前沿交易工具,多元交易策略',
  184. feature1: '分仓管理',
  185. feature2: '批量交易',
  186. feature3: '画线下单',
  187. feature4: '跟单下单',
  188. stat1: '覆盖国家及地区',
  189. stat2: '数字资产',
  190. stat3: '稳定运营6年',
  191. stat4: '全球用户',
  192. verificationPlaceholder: '请输入邮箱验证码',
  193. submitButton: '提交验证码',
  194. resendCode: '未收到验证码?',
  195. resendButton: '重新发送',
  196. successTitle: '注册成功',
  197. successDesc: '即将跳转到下载页面...',
  198. loadingText: '加载中...',
  199. errorText: '操作失败,请稍后重试',
  200. retryBtn: '重试',
  201. footer: 'Copyright 2026 BEX. All rights reserved.'
  202. },
  203. 'en': {
  204. headerTitle: 'BEX Invite Register',
  205. bannerTitle: 'Invite you to register now,Exclusive rewards await!',
  206. inviteCodeLabel: 'Invite Code',
  207. emailPlaceholder: 'Enter email',
  208. passwordPlaceholder: 'Set password',
  209. passwordRule: '8-32 characters, must contain uppercase, lowercase letters and special characters',
  210. inviteCodeTitle: 'Invite Code',
  211. registerButton: 'Register & Download APP',
  212. agreementText: 'By registering, I agree to the <a class="agreement-link" data-url="/privacy-policy.html">User Agreement</a> and <a class="agreement-link" data-url="/privacy-policy.html">Privacy Policy</a>',
  213. featuresTitle: 'Advanced Trading Tools, Multiple Trading Strategies',
  214. feature1: 'Sub-account Management',
  215. feature2: 'Batch Trading',
  216. feature3: 'Chart Trading',
  217. feature4: 'Copy Trading',
  218. stat1: 'Countries & Regions',
  219. stat2: 'Digital Assets',
  220. stat3: '6+ Years Stable',
  221. stat4: 'Global Users',
  222. verificationPlaceholder: 'Enter verification code',
  223. submitButton: 'Submit Code',
  224. resendCode: 'Not received?',
  225. resendButton: 'Resend',
  226. successTitle: 'Registration Successful',
  227. successDesc: 'Redirecting to download page...',
  228. loadingText: 'Loading...',
  229. errorText: 'Operation failed, please try again',
  230. retryBtn: 'Retry',
  231. footer: 'Copyright 2026 BEX. All rights reserved.'
  232. }
  233. };
  234. function getUrlParam(name) {
  235. const urlParams = new URLSearchParams(window.location.search);
  236. return urlParams.get(name);
  237. }
  238. function getCurrentLang() {
  239. const lang = getUrlParam('lang');
  240. if (lang === 'zh' || lang === 'zh-CN' || lang === 'zh-TW' || lang === 'zh-HK') {
  241. return 'zh';
  242. }
  243. return 'en';
  244. }
  245. function applyTranslations(lang) {
  246. const translation = translations[lang] || translations['en'];
  247. const elements = document.querySelectorAll('[data-i18n]');
  248. elements.forEach(element => {
  249. const key = element.dataset.i18n;
  250. if (translation[key]) {
  251. if (element.tagName === 'DIV' && key === 'bannerTitle') {
  252. element.innerHTML = translation[key];
  253. } else if (element.tagName === 'DIV' && key === 'agreementText') {
  254. element.innerHTML = translation[key];
  255. } else {
  256. element.textContent = translation[key];
  257. }
  258. }
  259. });
  260. document.documentElement.lang = lang === 'zh' ? 'zh-CN' : 'en';
  261. }
  262. let countdown = 60;
  263. let timerInterval = null;
  264. function startCountdown() {
  265. countdown = 60;
  266. const timerEl = document.getElementById('timer');
  267. const resendBtn = document.getElementById('resendBtn');
  268. timerEl.textContent = countdown + 's';
  269. timerEl.classList.add('timer-active');
  270. resendBtn.style.display = 'none';
  271. timerInterval = setInterval(() => {
  272. countdown--;
  273. timerEl.textContent = countdown + 's';
  274. if (countdown <= 0) {
  275. clearInterval(timerInterval);
  276. timerEl.textContent = '';
  277. timerEl.classList.remove('timer-active');
  278. resendBtn.style.display = 'inline';
  279. }
  280. }, 1000);
  281. }
  282. function showLoading() {
  283. document.getElementById('loadingOverlay').style.display = 'flex';
  284. }
  285. function hideLoading() {
  286. document.getElementById('loadingOverlay').style.display = 'none';
  287. }
  288. function showError() {
  289. hideLoading();
  290. document.getElementById('errorOverlay').style.display = 'flex';
  291. }
  292. function hideError() {
  293. document.getElementById('errorOverlay').style.display = 'none';
  294. }
  295. function showSuccess() {
  296. hideLoading();
  297. document.getElementById('successOverlay').style.display = 'flex';
  298. // setTimeout(() => {
  299. window.location.href = '/invite-download.html?lang=' + getCurrentLang();
  300. // }, 2000);
  301. }
  302. function switchToVerification() {
  303. document.getElementById('registerForm').style.display = 'none';
  304. document.getElementById('verificationForm').style.display = 'block';
  305. startCountdown();
  306. }
  307. function getInviteCodeFromUrl() {
  308. const urlParams = new URLSearchParams(window.location.search);
  309. return urlParams.get('inviteCode') || '';
  310. }
  311. function initInviteCode() {
  312. const inviteCode = getInviteCodeFromUrl();
  313. document.getElementById('inviteCode').textContent = inviteCode;
  314. }
  315. function showError(elementId, message) {
  316. const errorEl = document.getElementById(elementId);
  317. if (errorEl) {
  318. errorEl.textContent = message;
  319. errorEl.style.display = 'block';
  320. }
  321. }
  322. function hideError(elementId) {
  323. const errorEl = document.getElementById(elementId);
  324. if (errorEl) {
  325. errorEl.textContent = '';
  326. errorEl.style.display = 'none';
  327. }
  328. }
  329. function validatePassword(password) {
  330. const lang = getCurrentLang();
  331. if (!password) {
  332. return { valid: false, message: lang === 'zh' ? '请输入密码' : 'Please enter password' };
  333. }
  334. if (password.length < 8) {
  335. return { valid: false, message: lang === 'zh' ? '密码长度至少8位' : 'Password must be at least 8 characters' };
  336. }
  337. if (password.length > 32) {
  338. return { valid: false, message: lang === 'zh' ? '密码长度不能超过32位' : 'Password cannot exceed 32 characters' };
  339. }
  340. if (!/[a-z]/.test(password)) {
  341. return { valid: false, message: lang === 'zh' ? '密码需包含小写字母' : 'Password must contain lowercase letters' };
  342. }
  343. if (!/[A-Z]/.test(password)) {
  344. return { valid: false, message: lang === 'zh' ? '密码需包含大写字母' : 'Password must contain uppercase letters' };
  345. }
  346. if (!/[!@#$%^&*()_+\-=\[\]{}|;:,.<>?]/.test(password)) {
  347. return { valid: false, message: lang === 'zh' ? '密码需包含特殊字符' : 'Password must contain special characters' };
  348. }
  349. return { valid: true, message: '' };
  350. }
  351. function validateEmail(email) {
  352. const lang = getCurrentLang();
  353. if (!email) {
  354. return { valid: false, message: lang === 'zh' ? '请输入邮箱' : 'Please enter email' };
  355. }
  356. if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) {
  357. return { valid: false, message: lang === 'zh' ? '请输入有效的邮箱地址' : 'Please enter a valid email' };
  358. }
  359. return { valid: true, message: '' };
  360. }
  361. document.getElementById('copyBtn').addEventListener('click', () => {
  362. const inviteCode = document.getElementById('inviteCode').textContent;
  363. navigator.clipboard.writeText(inviteCode).then(() => {
  364. showError('passwordError', getCurrentLang() === 'zh' ? '邀请码已复制' : 'Invite code copied');
  365. setTimeout(() => {
  366. hideError('passwordError');
  367. }, 2000);
  368. }).catch(() => {
  369. showError('passwordError', getCurrentLang() === 'zh' ? '复制失败,请手动复制' : 'Copy failed, please copy manually');
  370. });
  371. });
  372. async function sendVerifyCode(email) {
  373. try {
  374. const response = await fetch('/api/v1/auth/send-code', {
  375. method: 'POST',
  376. headers: {
  377. 'Content-Type': 'application/json'
  378. },
  379. body: JSON.stringify({
  380. target: email,
  381. scene: 'REGISTER'
  382. })
  383. });
  384. const data = await response.json();
  385. if (!response.ok) {
  386. throw new Error(data.message || '发送验证码失败');
  387. }
  388. return data;
  389. } catch (error) {
  390. throw error;
  391. }
  392. }
  393. async function registerUser(email, password, inviteCode, code) {
  394. try {
  395. const response = await fetch('/api/v1/auth/register', {
  396. method: 'POST',
  397. headers: {
  398. 'Content-Type': 'application/json'
  399. },
  400. body: JSON.stringify({
  401. email: email,
  402. password: password,
  403. isWeb: true,
  404. inviteCode: inviteCode,
  405. verifyCode: code,
  406. type: 'email'
  407. })
  408. });
  409. const data = await response.json();
  410. if (!response.ok) {
  411. throw new Error(data.message || '注册失败');
  412. }
  413. if(data.code !== 200) {
  414. throw new Error(data.message || '注册失败');
  415. }
  416. return data;
  417. } catch (error) {
  418. throw error;
  419. }
  420. }
  421. document.getElementById('registerBtn').addEventListener('click', async () => {
  422. const email = document.getElementById('email').value;
  423. const password = document.getElementById('password').value;
  424. hideError('emailError');
  425. hideError('passwordError');
  426. const emailResult = validateEmail(email);
  427. if (!emailResult.valid) {
  428. showError('emailError', emailResult.message);
  429. return;
  430. }
  431. const passwordResult = validatePassword(password);
  432. if (!passwordResult.valid) {
  433. showError('passwordError', passwordResult.message);
  434. return;
  435. }
  436. showLoading();
  437. try {
  438. await sendVerifyCode(email);
  439. hideError('emailError');
  440. hideError('passwordError');
  441. switchToVerification();
  442. } catch (error) {
  443. showError('emailError', getCurrentLang() === 'zh' ? '发送验证码失败:' + error.message : 'Failed to send verification code: ' + error.message);
  444. } finally {
  445. hideLoading();
  446. }
  447. });
  448. document.getElementById('resendBtn').addEventListener('click', async () => {
  449. const email = document.getElementById('email').value;
  450. showLoading();
  451. try {
  452. await sendVerifyCode(email);
  453. hideError('verificationError');
  454. startCountdown();
  455. } catch (error) {
  456. showError('verificationError', getCurrentLang() === 'zh' ? '重新发送失败:' + error.message : 'Failed to resend: ' + error.message);
  457. } finally {
  458. hideLoading();
  459. }
  460. });
  461. document.getElementById('submitBtn').addEventListener('click', async () => {
  462. const email = document.getElementById('email').value;
  463. const password = document.getElementById('password').value;
  464. const inviteCode = document.getElementById('inviteCode').textContent;
  465. const code = document.getElementById('verificationCode').value;
  466. hideError('verificationError');
  467. if (!code || code.length !== 6) {
  468. showError('verificationError', getCurrentLang() === 'zh' ? '请输入6位验证码' : 'Please enter 6-digit verification code');
  469. return;
  470. }
  471. showLoading();
  472. try {
  473. await registerUser(email, password, inviteCode, code);
  474. showSuccess();
  475. } catch (error) {
  476. showError('verificationError', getCurrentLang() === 'zh' ? '注册失败:' + error.message : 'Registration failed: ' + error.message);
  477. } finally {
  478. hideLoading();
  479. }
  480. });
  481. document.getElementById('retryBtn').addEventListener('click', hideError);
  482. document.addEventListener('click', (e) => {
  483. const target = e.target.closest('.agreement-link');
  484. if (target) {
  485. e.preventDefault();
  486. const url = target.dataset.url;
  487. const lang = getCurrentLang();
  488. window.location.href = url + '?lang=' + lang;
  489. }
  490. });
  491. const lang = getCurrentLang();
  492. applyTranslations(lang);
  493. initInviteCode();
  494. })();
  495. </script>
  496. </body>
  497. </html>