Skip to content

Commit 68da455

Browse files
authored
Merge branch 'dev' into dev
2 parents 2d4bd0c + d4d8587 commit 68da455

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

src/botPage/view/blockly/customBlockly.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,3 +358,21 @@ Blockly.Toolbox.TreeNode.prototype.onClick_ = function(_e) {
358358
}
359359
this.updateRow();
360360
};
361+
362+
/**
363+
* Preload all the audio files so that they play quickly when asked for.
364+
* @package
365+
*/
366+
Blockly.WorkspaceAudio.prototype.preload = function() {
367+
for (var name in this.SOUNDS_) {
368+
var sound = this.SOUNDS_[name];
369+
sound.volume = 0.01;
370+
sound.play().catch(function() {});
371+
sound.pause();
372+
// iOS can only process one sound at a time. Trying to load more than one
373+
// corrupts the earlier ones. Just load one and leave the others uncached.
374+
if (goog.userAgent.IPAD || goog.userAgent.IPHONE) {
375+
break;
376+
}
377+
}
378+
};

src/botPage/view/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import View from './View';
55
import '../../common/binary-ui/dropdown';
66
import Elevio from '../../common/elevio';
77
import GTM from '../../common/gtm';
8+
import { isProduction } from '../../common/utils/tools';
89

910
$.ajaxSetup({
1011
cache: false,
@@ -14,7 +15,7 @@ $.ajaxSetup({
1415
window._trackJs = {
1516
token : '346262e7ffef497d85874322fff3bbf8',
1617
application: 'binary-bot',
17-
enabled : window.location.hostname !== 'localhost',
18+
enabled : isProduction(),
1819
console : {
1920
display: false,
2021
},

static/css/_panel.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,14 @@ $disabled-color: #F2F2F2;
5959
font-size: 11px;
6060
color: lightgray;
6161
}
62+
#current-trade-status{
63+
margin-top: 3.5em;
64+
}
6265
.stage {
6366
display: inline-block;
6467
margin: 0 8.68% 0 8.68%;
68+
vertical-align: top;
69+
max-width: 120px;
6570
.stage-tooltip .triangle {
6671
margin-top: 0.7em;
6772
margin-left: 50%;
@@ -75,11 +80,13 @@ $disabled-color: #F2F2F2;
7580
}
7681
.stage-tooltip.top {
7782
margin-bottom: 0.5em;
83+
margin-top: -2.5em;
84+
position: absolute;
7885
}
7986
.stage-tooltip p {
8087
font-size: 11px;
8188
text-align: center;
82-
margin-top: -0.9em;
89+
margin-top: -0.91em;
8390
padding: 0.5em;
8491
border-radius: 0.5em;
8592
background-color: #fef1cf;
@@ -101,6 +108,7 @@ $disabled-color: #F2F2F2;
101108
.stage-label {
102109
text-align: center;
103110
font-size: 11px;
111+
min-height: 24px;
104112
}
105113
.circle-wrapper {
106114
width: $static-circle-diameter;

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