Skip to content

Commit 7a55695

Browse files
author
Kevin Nadro
committed
sandbox container show
a way to make sure the sandbox container shows up when inside the sandbox tracers and when you aren’t in it
1 parent ec6d55a commit 7a55695

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

css/stylesheet.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,17 @@ section {
256256

257257
.editor_container {
258258
left: 50%;
259-
display: none;
260259
}
261260

262261
.module_container {
263262
overflow: hidden;
264263
border: none;
265264
}
266265

266+
.hide{
267+
display: none;
268+
}
269+
267270
.tab_container {
268271
top: 30px;
269272
background: #242424;

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ <h3>
127127
</div>
128128
</section>
129129
</div>
130-
<div class="sandbox_container">
130+
<div class="sandbox_container hide">
131131
<div>
132132
<div class="inputContainer">
133133
<div>

js/dom/show_algorithm.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ module.exports = (category, algorithm, data, requestedFile) => {
2525
algorithm_name = categoryObj.list[algorithm];
2626
}
2727

28+
if(category_name === 'Sandbox'){
29+
$('.editor_container').addClass('hide');
30+
$('.sandbox_container').removeClass('hide');
31+
}else{
32+
$('.editor_container').removeClass('hide');
33+
$('.sandbox_container').addClass('hide');
34+
}
35+
2836
$('.sidemenu button').removeClass('active');
2937
$menu.addClass('active');
3038

@@ -45,4 +53,4 @@ module.exports = (category, algorithm, data, requestedFile) => {
4553

4654
showDescription(data);
4755
addFiles(category, algorithm, files, requestedFile);
48-
};
56+
};

js/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ $(() => {
4040

4141
// load modules to the global scope so they can be evaled
4242
extend(true, window, modules);
43-
extend(true, window, Sandbox);
4443

4544
Server.loadCategories().then((data) => {
4645
app.setCategories(data);

0 commit comments

Comments
 (0)