Skip to content

Commit d8755f0

Browse files
author
Kevin Nadro
committed
fixing broken code
- working prototype - need to fix the vertical split bar to have the divider between workspace and sandbox container work together
1 parent 34fb410 commit d8755f0

File tree

4 files changed

+45
-26
lines changed

4 files changed

+45
-26
lines changed

css/stylesheet.css

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

index.html

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff 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">

js/create/array2d.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,14 @@ const getNumColumns = () => {
1414
}
1515

1616
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 = [];
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

3027
const tableToInputFields = () => {

js/create/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ const init = () => {
99
};
1010

1111
module.exports = {
12-
init,
12+
init
1313
};

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