Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/accountstatus/accountstatus.es6
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class AccountStatus {
this.financial_assessment_submitted = true;
this.is_mlt = /^malta$/gi.test(response.authorize.landing_company_name);
this.is_mf = /^maltainvest$/gi.test(response.authorize.landing_company_name);
this.is_cr = /^costarica$/gi.test(response.authorize.landing_company_name);
this.is_cr = /^svg|costarica$/gi.test(response.authorize.landing_company_name);
this.has_mt5_account = mt5_account.mt5_login_list.length > 0;
this.is_authenticated = !account_status.get_account_status.prompt_client_to_authenticate;
// Check whether the user has accepted the T&C.
Expand Down
2 changes: 1 addition & 1 deletion src/copytrade/copytrade.es6
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const defaultTraderDetails = (traderApiToken, loginid) => ({

const validate_min_max_stake = (yourCopySettingsData) => {
const { min_trade_stake, max_trade_stake } = yourCopySettingsData;
if (min_trade_stake > max_trade_stake) {
if (+min_trade_stake > +max_trade_stake) {
return false;
}
return true;
Expand Down
1 change: 0 additions & 1 deletion src/images/google-plus.svg

This file was deleted.

4 changes: 1 addition & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<script src="v<version>/lib/jquery/dist/jquery.min.js"></script>
<script src="v<version>/lib/moment/min/moment.min.js"></script>
<script src="v<version>/lib/@binary-com/binary-style/binary.js"></script>
<script src="v<version>/lib/npm-modernizr/modernizr.js"></script>

<link rel="apple-touch-icon" sizes="57x57" href="v<version>/lib/@binary-com/binary-style/src/images/favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="114x114" href="v<version>/lib/@binary-com/binary-style/src/images/favicons/apple-touch-icon-114x114.png">
Expand Down Expand Up @@ -106,9 +107,6 @@ <h1>Welcome to Binary.com Webtrader</h1>
<a href="http://www.youtube.com/user/BinaryTradingVideos" target="_blank" rel="noopener noreferrer">
<img class="responsive" alt="Youtube icon" src="v<version>/images/youtube.svg">
</a>
<a href="https://plus.google.com/106251151552682209951" rel="publisher" target="_blank" rel="noopener noreferrer">
<img class="responsive" alt="Google icon" src="v<version>/images/google-plus.svg">
</a>
<a href="https://www.facebook.com/binarydotcom" target="_blank" rel="noopener noreferrer">
<img class="responsive" alt="Facebook icon" src="v<version>/images/facebook.svg">
</a>
Expand Down
9 changes: 9 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ checkRedirectToken(params_str);
setLanguage(lang);
clearUrlQuerystring(href);

checkWindowSize();

processPageLanguage();

function loadAppId(callback) {
Expand Down Expand Up @@ -107,6 +109,13 @@ function checkRedirectToken(params_str) {
}
}

function checkWindowSize() {
if (isSmallView()) {
window.location.assign(VERSION + 'unsupported_browsers/unsupported_browsers.html');
return;
}
}

function setTime() {
var time = moment.utc().format('YYYY-MM-DD HH:mm:ss') + ' GMT';
$(".time").text(time);
Expand Down
2 changes: 2 additions & 0 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,13 @@ body {
&__regulatory-icons {
display: flex;
align-items: center;
max-width: 400px;

> * {
margin-right: 20px;
}
@media screen and (max-width: 800px) {
max-width: 800px;
margin-top: 50px;
margin-bottom: 30ox;
justify-content: center;
Expand Down
2 changes: 1 addition & 1 deletion src/navigation/navigation.es6
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ const initLang = (root) => {
b: has MLT, MX ==> do nothing
4: company shortcode == japan
a: do nothing and show an error message
5: shortcode = costarica
5: shortcode = svg
a: No currency
I: Do nothing.
b: Fiat currency && Not all crypto currency account
Expand Down
2 changes: 1 addition & 1 deletion src/unsupported_browsers/unsupported_browsers.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="../lib/binary-style/binary.css">
<link rel="stylesheet" type="text/css" href="../lib/@binary-com/binary-style/binary.css">
<link rel="stylesheet" type="text/css" href="unsupported_browsers.css">
<script type="text/javascript" src="../lib/npm-modernizr/modernizr.js"></script>
<script>
Expand Down