Skip to content

Commit a4d4b59

Browse files
committed
Merge pull request binary-com#1114 from negar-binary/negar/add_appstore
negar/add_appstore
2 parents 545e6d3 + 4f9ca52 commit a4d4b59

File tree

3 files changed

+28
-7
lines changed

3 files changed

+28
-7
lines changed

src/javascript/binary/pages/trade/common.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,14 +774,19 @@ function displayTooltip(market, symbol){
774774
'use strict';
775775
var tip = document.getElementById('symbol_tip'),
776776
guide = document.getElementById('guideBtn'),
777-
app = document.getElementById('androidApp');
777+
app = document.getElementById('androidApp'),
778+
appstore = document.getElementById('appstore');
778779
if (market.match(/^volidx/) || symbol.match(/^R/) || market.match(/^random_index/) || market.match(/^random_daily/)){
780+
if (guide) guide.hide();
779781
tip.show();
780782
tip.setAttribute('target', page.url.url_for('/get-started/volidx-markets'));
781783
app.show();
784+
appstore.show();
782785
} else {
783786
app.hide();
787+
appstore.hide();
784788
tip.hide();
789+
if (guide) guide.show();
785790
}
786791
if (market.match(/^otc_index/) || symbol.match(/^OTC_/) || market.match(/otc_stock/) || markets.by_symbol(symbol).submarket.name.match(/otc_stock/)){
787792
tip.show();

src/sass/pages/android_app.scss

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,35 @@
1-
#androidApp {
1+
#app-container {
2+
text-align: center;
3+
}
4+
5+
#androidApp, #appstore {
26
width: 100px;
37
height: 30px;
48
display: inline-block;
5-
background: url("../images/pages/trade/google-play-badge.png") no-repeat;
6-
background-size: 100px 30px;
79
position: relative;
810
}
911

12+
#appstore {
13+
background: url("../images/pages/applications/appstore.svg") 0 0/100px 30px no-repeat;
14+
margin-left: 10px;
15+
}
16+
17+
#androidApp {
18+
background: url("../images/pages/trade/google-play-badge.png") 0 0/100px 30px no-repeat;
19+
}
20+
1021
/* trading page */
1122
#trading_socket_container {
12-
#androidApp {
23+
#androidApp, #appstore {
1324
float: if($LANGUAGE_DIRECTION == ltr, right, left);
1425
}
1526
@media (max-width: 768px) {
1627
#androidApp {
28+
margin-left: 10px;
29+
}
30+
#appstore, #androidApp {
1731
margin: 0 auto;
1832
padding-bottom: 10px;
19-
display: block;
2033
float: none;
2134
}
2235
}

src/templates/toolkit/bet/static.html.tt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
<div id="loading_container" class="overlay_container">
44
</div>
55
<div id="guideBtn"></div>
6-
<a href="https://goo.gl/5KmSsU" target="_blank" id="androidApp"></a>
6+
<div id="app-container">
7+
<a href="https://itunes.apple.com/app/apple-store/id1091187567?pt=117911266&ct=trading_page&mt=8" target="_blank" id="appstore"></a>
8+
<a href="https://goo.gl/5KmSsU" target="_blank" id="androidApp"></a>
9+
</div>
710
<div class="row" id="contract_symbol_container">
811
<div id="contract_markets_container">
912
<select id="contract_markets"></select>

0 commit comments

Comments
 (0)