Skip to content

Commit 0ff9d86

Browse files
author
Kevin Nadro
committed
can't spam create the generate overlay
1 parent 4bf07b1 commit 0ff9d86

File tree

3 files changed

+32
-30
lines changed

3 files changed

+32
-30
lines changed

css/stylesheet.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,6 @@ input[type=number]::-webkit-outer-spin-button {
697697

698698
.auto-gen{
699699
height: 34%;
700-
/*border: 1px solid #515151;*/
701700
text-align: center;
702701
background-color: #262626;
703702
display: flex;

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h3>
3232
<div class="top-menu-buttons">
3333
<div class="btn" id="btn_generate">
3434
<div class="wrapper">
35-
<i class="fa fa-pencil-square-o" aria-hidden="true"></i>
35+
<i class='fa fa-pencil' aria-hidden='true'></i>
3636
<span class="btn-text">Generate</span>
3737
</div>
3838
</div>

js/create/index.js

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -26,37 +26,40 @@ const saveModules = () => {
2626

2727
const init = () => {
2828
var moduleWrappers = saveModules();
29+
var check = $('.sandbox_container');
30+
if(!check.length){
31+
util.clearModules();
2932

30-
util.clearModules();
31-
$('.workspace').append("<div class='sandbox_container'>\
32-
<section class='close_bar'>\
33-
<div class='btn' id='btn_close'>\
34-
<div class='wrapper'>\
35-
<i class='fa fa-times' aria-hidden='true'></i>\
33+
$('.workspace').append("<div class='sandbox_container'>\
34+
<section class='close_bar'>\
35+
<div class='btn' id='btn_close'>\
36+
<div class='wrapper'>\
37+
<i class='fa fa-times' aria-hidden='true'></i>\
38+
</div>\
3639
</div>\
37-
</div>\
38-
</section>\
39-
<section class='auto-gen auto-gen-tracers'>\
40-
<button class='sb-button' id='button-2DMatrix'>Create 2DMatrix</button>\
41-
</section>\
42-
<section class='auto-gen auto-gen-options'>\
43-
<div>\
44-
# of Rows: <input class='inputs'id='numRows' type='number' value='5'>\
45-
</div>\
46-
<div>\
47-
# of Columns: <input class='inputs'id='numColumns' type='number' value='5'>\
48-
</div>\
49-
<div>\
50-
Tracer Name: <input class='inputs'id='tracerName' type='text' value='default'>\
51-
</div>\
52-
</section>\
53-
<section class='auto-gen auto-gen-generate'>\
54-
<button class='sb-button' id='button-generateJS'>Generate Javascript</button>\
55-
</section>\
56-
</div>");
57-
array2d.setup();
40+
</section>\
41+
<section class='auto-gen auto-gen-tracers'>\
42+
<button class='sb-button' id='button-2DMatrix'>Create 2DMatrix</button>\
43+
</section>\
44+
<section class='auto-gen auto-gen-options'>\
45+
<div>\
46+
# of Rows: <input class='inputs'id='numRows' type='number' value='5'>\
47+
</div>\
48+
<div>\
49+
# of Columns: <input class='inputs'id='numColumns' type='number' value='5'>\
50+
</div>\
51+
<div>\
52+
Tracer Name: <input class='inputs'id='tracerName' type='text' value='default'>\
53+
</div>\
54+
</section>\
55+
<section class='auto-gen auto-gen-generate'>\
56+
<button class='sb-button' id='button-generateJS'>Generate Javascript</button>\
57+
</section>\
58+
</div>");
59+
array2d.setup();
5860

59-
closeCreate(moduleWrappers);
61+
closeCreate(moduleWrappers);
62+
}
6063
};
6164

6265
module.exports = {

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