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

Commit a9847d1

Browse files
authored
Merge pull request #3631 from pavel-latyshou-binary/mtd-langbar
Pavel/show langbar
2 parents 8e085b2 + c73334b commit a9847d1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/indexPage/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import BotLanding from './react-components/bot-landing';
1616
const today = new Date().getTime();
1717
const expirationDate = today + 1000 * 60 * 60 * 24 * 21;
1818

19-
const elements = ['#notification-banner', '#main', '#footer', '#header', '#topbar'];
19+
const elements = ['#notification-banner', '#main', '#footer', '#header'];
2020
const temp = getStorage('movetoderiv');
2121
const renderBanner = () => {
2222
ReactDOM.render(<BotLanding />, document.getElementById('movetoderiv'));
@@ -62,13 +62,13 @@ const loginCheck = () => {
6262
if (endpoint()) return;
6363
moveToDeriv();
6464
loadLang();
65+
$('.show-on-load').show();
6566
if (temp) {
6667
if (getTokenList().length) {
6768
window.location.pathname = `${window.location.pathname.replace(/\/+$/, '')}/bot.html`;
6869
document.getElementById('bot-main').classList.remove('hidden');
6970
} else {
7071
oauthLogin(() => {
71-
$('.show-on-load').show();
7272
$('.barspinner').hide();
7373
renderElements();
7474
GTM.init();

static/css/_landing.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ $header-color : #333333;
6363
}
6464

6565
.hero {
66-
margin-top: -110px;
66+
margin-top: -105px;
6767
@include for-size(mobile) {
6868
margin-top: unset;
6969
}

templates/index.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
<body>
1919
<div id="bot-main" class="hidden" style="width: 100%; position: relative; height: 100%;">
2020
{{> ../templates/partials/loading }}
21-
<div id="movetoderiv"></div>
2221
<div id="topbar">
2322
<div class="wrapper show-on-load">
2423
{{> ../templates/partials/language }}
2524
</div>
2625
</div>
26+
<div id="movetoderiv"></div>
2727
<div id="header">
2828
<div class="wrapper">
2929
<div class="logo-wrapper">

0 commit comments

Comments
 (0)