This repository was archived by the owner on Mar 8, 2020. It is now read-only.
File tree 3 files changed +19
-5
lines changed
vehicle-manufacture-manufacturing/client/app/views/dashboard
vehicle-manufacture-vda/client/app/directives/blockchain-view
3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,6 @@ <h5>+ {{ orders.length - 5 }} MORE</h5>
132
132
</ div >
133
133
</ div >
134
134
</ div >
135
- </ div >
136
- </ div>
137
135
< div >
138
136
< div class ="bc-man-overview ">
139
137
< h5 >
142
140
< button class ="btn fade "> Weekly</ button >
143
141
< button class ="btn fade "> Monthly</ button >
144
142
</ h5 >
145
-
143
+
146
144
< div class ="graphs ">
147
145
< img src ="/manufacturer/assets/images/Graph 1.svg " alt ="Cars Produced ">
148
146
< img src ="/manufacturer/assets/images/Graph 2.svg " alt ="Queued Drills ">
Original file line number Diff line number Diff line change 4
4
width : 100% ;
5
5
box-sizing : border-box ;
6
6
margin : 42px 52px ;
7
+ display : flex ;
8
+ flex-direction : column ;
7
9
8
10
h1 {
9
- margin : 0 0 60px 0 ;
10
11
display : flex ;
11
12
justify-content : space-between ;
12
13
Original file line number Diff line number Diff line change 1
1
angular . module ( 'bc-vda' )
2
2
3
- . directive ( 'bcView' , [ function ( ) {
3
+ . directive ( 'bcView' , [ '$window' , function ( $window ) {
4
4
return {
5
5
restrict : 'E' ,
6
6
replace : true ,
@@ -25,6 +25,21 @@ angular.module('bc-vda')
25
25
padding : 30
26
26
} ;
27
27
28
+ function debouncer ( func , timeout ) {
29
+ var timeoutID , timeout = timeout || 200 ;
30
+ return function ( ) {
31
+ var scope = this , args = arguments ;
32
+ clearTimeout ( timeoutID ) ;
33
+ timeoutID = setTimeout ( function ( ) {
34
+ func . apply ( scope , Array . prototype . slice . call ( args ) ) ;
35
+ } , timeout ) ;
36
+ }
37
+ }
38
+
39
+ angular . element ( $window ) . bind ( 'resize' , debouncer ( function ( ) {
40
+ updateChart ( ) ;
41
+ } ) ) ;
42
+
28
43
function updateChart ( ) {
29
44
// calculate width of chain
30
45
You can’t perform that action at this time.
0 commit comments