File tree 4 files changed +45
-26
lines changed
4 files changed +45
-26
lines changed Original file line number Diff line number Diff line change @@ -684,14 +684,35 @@ input[type=number]::-webkit-outer-spin-button {
684
684
685
685
.sb-button {
686
686
border : 1px solid # 515151 ;
687
+ height : 25px ;
688
+ margin : 0 auto;
687
689
}
688
690
689
- .inputContainer {
690
- position : relative;
691
- width : 100% ;
691
+ .auto-gen {
692
+ height : 33% ;
693
+ border : 1px solid # 515151 ;
694
+ text-align : center;
695
+ background-color : # 262626 ;
696
+ display : flex;
697
+ align-items : center;
698
+ }
699
+
700
+ .auto-gen-tracers {
701
+ bottom : 66% ;
702
+ }
703
+
704
+ .auto-gen-options {
705
+ top : 33% ;
706
+ bottom : 33% ;
707
+ }
708
+
709
+ .auto-gen-generate {
710
+ top : 66% ;
692
711
}
693
712
694
713
.inputs {
695
- position : relative;
696
- display : block;
714
+ display : inline-block;
715
+ border : 0 ;
716
+ background-color : # 505050 ;
717
+ height : 25px ;
697
718
}
Original file line number Diff line number Diff line change @@ -128,29 +128,30 @@ <h3>
128
128
</ section >
129
129
</ div >
130
130
< div class ="sandbox_container hide ">
131
- < div >
132
- < div class ="inputContainer ">
131
+
132
+ < div class ="auto-gen auto-gen-tracers ">
133
+ < button class ='sb-button ' id ="button-2DMatrix "> Create 2DMatrix</ button >
134
+
135
+ </ div >
136
+
137
+ < div class ="auto-gen auto-gen-options ">
133
138
< div >
134
- # of Rows:
135
- < input class ="inputs "id ="numRows " type ="number " value ="5 ">
139
+ # of Rows: < input class ="inputs "id ="numRows " type ="number " value ="5 ">
136
140
</ div >
137
141
138
142
< div >
139
- # of Columns:
140
- < input class ="inputs "id ="numColumns " type ="number " value ="5 ">
143
+ # of Columns: < input class ="inputs "id ="numColumns " type ="number " value ="5 ">
141
144
</ div >
142
145
143
146
< div >
144
- Tracer Name:
145
- < input class ="inputs "id ="tracerName " type ="text " value ="default ">
147
+ Tracer Name: < input class ="inputs "id ="tracerName " type ="text " value ="default ">
146
148
</ div >
147
149
</ div >
148
150
149
- < div >
150
- < button class ='sb-button ' id ="button-2DMatrix "> Create 2DMatrix</ button >
151
+ < div class ="auto-gen auto-gen-generate ">
151
152
< button class ='sb-button ' id ="button-generateJS "> Generate Javascript</ button >
152
153
</ div >
153
- </ div >
154
+
154
155
</ div >
155
156
< div class ="editor_container ">
156
157
< section class ="files_bar ">
Original file line number Diff line number Diff line change @@ -14,17 +14,14 @@ const getNumColumns = () => {
14
14
}
15
15
16
16
const fauxData = ( r , c ) => {
17
- var arr = new Array ( r ) ;
18
- for ( var i = 0 ; i < c ; i ++ ) {
19
- arr [ i ] = new Array ( c ) ;
20
- }
21
-
17
+ var D = [ ] ;
22
18
for ( var i = 0 ; i < r ; i ++ ) {
23
- for ( var j = 0 ; j < c ; j ++ ) {
24
- arr [ i ] [ j ] = 0 ;
25
- }
19
+ D . push ( [ ] ) ;
20
+ for ( var j = 0 ; j < c ; j ++ ) {
21
+ D [ i ] . push ( Math . floor ( Math . random ( ) * 10 + 1 ) ) ;
22
+ }
26
23
}
27
- return arr ;
24
+ return D ;
28
25
}
29
26
30
27
const tableToInputFields = ( ) => {
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ const init = () => {
9
9
} ;
10
10
11
11
module . exports = {
12
- init,
12
+ init
13
13
} ;
You can’t perform that action at this time.
0 commit comments