File tree Expand file tree Collapse file tree 3 files changed +29
-2
lines changed Expand file tree Collapse file tree 3 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -358,3 +358,21 @@ Blockly.Toolbox.TreeNode.prototype.onClick_ = function(_e) {
358
358
}
359
359
this . updateRow ( ) ;
360
360
} ;
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
+ } ;
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import View from './View';
5
5
import '../../common/binary-ui/dropdown' ;
6
6
import Elevio from '../../common/elevio' ;
7
7
import GTM from '../../common/gtm' ;
8
+ import { isProduction } from '../../common/utils/tools' ;
8
9
9
10
$ . ajaxSetup ( {
10
11
cache : false ,
@@ -14,7 +15,7 @@ $.ajaxSetup({
14
15
window . _trackJs = {
15
16
token : '346262e7ffef497d85874322fff3bbf8' ,
16
17
application : 'binary-bot' ,
17
- enabled : window . location . hostname !== 'localhost' ,
18
+ enabled : isProduction ( ) ,
18
19
console : {
19
20
display : false ,
20
21
} ,
Original file line number Diff line number Diff line change @@ -59,9 +59,14 @@ $disabled-color: #F2F2F2;
59
59
font-size : 11px ;
60
60
color : lightgray ;
61
61
}
62
+ #current-trade-status {
63
+ margin-top : 3.5em ;
64
+ }
62
65
.stage {
63
66
display : inline-block ;
64
67
margin : 0 8.68% 0 8.68% ;
68
+ vertical-align : top ;
69
+ max-width : 120px ;
65
70
.stage-tooltip .triangle {
66
71
margin-top : 0.7em ;
67
72
margin-left : 50% ;
@@ -75,11 +80,13 @@ $disabled-color: #F2F2F2;
75
80
}
76
81
.stage-tooltip.top {
77
82
margin-bottom : 0.5em ;
83
+ margin-top : -2.5em ;
84
+ position : absolute ;
78
85
}
79
86
.stage-tooltip p {
80
87
font-size : 11px ;
81
88
text-align : center ;
82
- margin-top : -0.9 em ;
89
+ margin-top : -0.91 em ;
83
90
padding : 0.5em ;
84
91
border-radius : 0.5em ;
85
92
background-color : #fef1cf ;
@@ -101,6 +108,7 @@ $disabled-color: #F2F2F2;
101
108
.stage-label {
102
109
text-align : center ;
103
110
font-size : 11px ;
111
+ min-height : 24px ;
104
112
}
105
113
.circle-wrapper {
106
114
width : $static-circle-diameter ;
You can’t perform that action at this time.
0 commit comments