Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit b3a1c5d

Browse files
committed
fix: for binary bot load issue
1 parent 2105ac1 commit b3a1c5d

File tree

6 files changed

+5
-10
lines changed

6 files changed

+5
-10
lines changed

src/indexPage/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const sevenDays = 7;
2121
const oneMinute = 60;
2222
const oneDay = 24;
2323

24-
export const elements = ['#notification-banner', '#main', '#footer', '#header', '#topbar'];
2524
// eslint-disable-next-line one-var
2625
export const bannerToken = getStorage('setDueDateForBanner');
2726

@@ -81,7 +80,6 @@ export const renderBanner = () => {
8180
if (window.location.pathname.indexOf('/bot') === -1 || window.location.pathname === '/movetoderiv.html') {
8281
getComponent();
8382
render(Component, document.getElementById(dynamicRoutePathanme));
84-
elements.map(elem => document.querySelector(elem).classList.add('hidden'));
8583
document.getElementById(dynamicRoutePathanme).classList.remove('hidden');
8684
document.getElementById('bot-main').classList.remove('hidden');
8785
document.getElementById('topbar').classList.remove('hidden');
@@ -115,10 +113,8 @@ const renderElements = () => {
115113
'href',
116114
createUrl({ subdomain: 'shop', path: 'collections/strategies', isNonBotPage: true })
117115
);
118-
elements.map(elem => document.querySelector(elem).classList.remove('hidden'));
119116
document.getElementById(dynamicRoutePathanme).classList.add('hidden');
120117
}
121-
document.getElementById('bot-main').classList.remove('hidden');
122118
setTimeout(() => {
123119
$('.barspinner').hide();
124120
}, 2000);

src/indexPage/react-components/bot-landing/Hero.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react'
22
import { translate } from '../../../common/i18n';
3-
import { generateURL } from '../../../common/utils/tools'
43

54
const Hero = () => (
65
<section className="hero">

static/css/_landing.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ $header-color : #333333;
2626
margin: 0 auto;
2727
max-width: 1400px;
2828
}
29-
3029
.hero {
3130
background: $hero-BG url(../image/BG-1.webp) no-repeat;
3231
background-size: cover;

static/css/bot.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ body {
2929
max-width: 100%;
3030
max-height: 100%;
3131
font-size: 1em;
32+
background: $hero-BG url(../image/BG-1.webp) no-repeat !important;
33+
background-size: cover !important;
3234
}
3335

3436
#server-status .online {

templates/index.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@
2727
<div id="movetoderiv"></div>
2828
<div id="bot-landing"></div>
2929

30-
<div id="header">
30+
<div id="header" class="hidden">
3131
<div class="wrapper">
3232
<div class="logo-wrapper">
3333
<div id="binary-logo"></div>
3434
{{> ../templates/partials/bbot-to-deriv-banner }}
3535
</div>
3636
</div>
3737
</div>
38-
<div id="notification-banner"></div>
38+
<div id="notification-banner" class="hidden"></div>
3939
<div id="bot-landing-alert-popup" class="bot-landing-alert bot-landing-alert-popup"></div>
40-
<div id="main">
40+
<div id="main" class="hidden">
4141
<div>
4242
<div class="content show-on-load">
4343
<h1 class="center" data-i18n-text="Binary Bot"></h1>

templates/partials/language.mustache

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
</li>
1515
<li class="en">English</li>
1616
<li class="fr">Français</li>
17-
<li class="id">Indonesia</li>
1817
<li class="pl">Polish</li>
1918
<li class="pt">Português</li>
2019
<li class="ru">Русский</li>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy