File tree Expand file tree Collapse file tree 4 files changed +45
-26
lines changed Expand file tree Collapse file tree 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 {
684684
685685.sb-button {
686686 border : 1px solid # 515151 ;
687+ height : 25px ;
688+ margin : 0 auto;
687689}
688690
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% ;
692711}
693712
694713.inputs {
695- position : relative;
696- display : block;
714+ display : inline-block;
715+ border : 0 ;
716+ background-color : # 505050 ;
717+ height : 25px ;
697718}
Original file line number Diff line number Diff line change @@ -128,29 +128,30 @@ <h3>
128128 </ section >
129129 </ div >
130130 < 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 ">
133138 < 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 ">
136140 </ div >
137141
138142 < 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 ">
141144 </ div >
142145
143146 < 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 ">
146148 </ div >
147149 </ div >
148150
149- < div >
150- < button class ='sb-button ' id ="button-2DMatrix "> Create 2DMatrix</ button >
151+ < div class ="auto-gen auto-gen-generate ">
151152 < button class ='sb-button ' id ="button-generateJS "> Generate Javascript</ button >
152153 </ div >
153- </ div >
154+
154155 </ div >
155156 < div class ="editor_container ">
156157 < section class ="files_bar ">
Original file line number Diff line number Diff line change @@ -14,17 +14,14 @@ const getNumColumns = () => {
1414}
1515
1616const 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 = [ ] ;
2218 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+ }
2623 }
27- return arr ;
24+ return D ;
2825}
2926
3027const tableToInputFields = ( ) => {
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ const init = () => {
99} ;
1010
1111module . exports = {
12- init,
12+ init
1313} ;
You can’t perform that action at this time.
0 commit comments