提交 6de1d289 编写于 作者: K Kevin Nadro

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
上级 653cce5a
...@@ -256,7 +256,6 @@ section { ...@@ -256,7 +256,6 @@ section {
.editor_container { .editor_container {
left: 50%; left: 50%;
display: none;
} }
.module_container { .module_container {
...@@ -264,6 +263,10 @@ section { ...@@ -264,6 +263,10 @@ section {
border: none; border: none;
} }
.hide{
display: none;
}
.tab_container { .tab_container {
top: 30px; top: 30px;
background: #242424; background: #242424;
......
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
</div> </div>
</section> </section>
</div> </div>
<div class="sandbox_container"> <div class="sandbox_container hide">
<div> <div>
<div class="inputContainer"> <div class="inputContainer">
<div> <div>
......
...@@ -25,6 +25,14 @@ module.exports = (category, algorithm, data, requestedFile) => { ...@@ -25,6 +25,14 @@ module.exports = (category, algorithm, data, requestedFile) => {
algorithm_name = categoryObj.list[algorithm]; algorithm_name = categoryObj.list[algorithm];
} }
if(category_name === 'Sandbox'){
$('.editor_container').addClass('hide');
$('.sandbox_container').removeClass('hide');
}else{
$('.editor_container').removeClass('hide');
$('.sandbox_container').addClass('hide');
}
$('.sidemenu button').removeClass('active'); $('.sidemenu button').removeClass('active');
$menu.addClass('active'); $menu.addClass('active');
...@@ -45,4 +53,4 @@ module.exports = (category, algorithm, data, requestedFile) => { ...@@ -45,4 +53,4 @@ module.exports = (category, algorithm, data, requestedFile) => {
showDescription(data); showDescription(data);
addFiles(category, algorithm, files, requestedFile); addFiles(category, algorithm, files, requestedFile);
}; };
\ No newline at end of file
...@@ -40,7 +40,6 @@ $(() => { ...@@ -40,7 +40,6 @@ $(() => {
// load modules to the global scope so they can be evaled // load modules to the global scope so they can be evaled
extend(true, window, modules); extend(true, window, modules);
extend(true, window, Sandbox);
Server.loadCategories().then((data) => { Server.loadCategories().then((data) => {
app.setCategories(data); app.setCategories(data);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册