diff --git a/css/stylesheet.css b/css/stylesheet.css index 3795aed7b29512210f932df1c2833920b7c66886..5de9e78069b61622e88d6eb096d755cc1d1be9aa 100644 --- a/css/stylesheet.css +++ b/css/stylesheet.css @@ -256,7 +256,6 @@ section { .editor_container { left: 50%; - display: none; } .module_container { @@ -264,6 +263,10 @@ section { border: none; } +.hide{ + display: none; +} + .tab_container { top: 30px; background: #242424; diff --git a/index.html b/index.html index 6718ebea3313029c06b4ae9fddb0baefeebfa46d..5d478f092d3ddd2df9a3188847e5c061b030528d 100644 --- a/index.html +++ b/index.html @@ -127,7 +127,7 @@ -
+
diff --git a/js/dom/show_algorithm.js b/js/dom/show_algorithm.js index 54474f1e8ffafbe1ba11853b330bb92d585b64c9..9272e656689f5189540e7a418a3c0ef0e63595fa 100644 --- a/js/dom/show_algorithm.js +++ b/js/dom/show_algorithm.js @@ -25,6 +25,14 @@ module.exports = (category, algorithm, data, requestedFile) => { 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'); $menu.addClass('active'); @@ -45,4 +53,4 @@ module.exports = (category, algorithm, data, requestedFile) => { showDescription(data); addFiles(category, algorithm, files, requestedFile); -}; \ No newline at end of file +}; diff --git a/js/index.js b/js/index.js index a5d711bdc6f1ced4de2538412a433e776a8f168a..3da725c692a738c10672d80e3baad1297cf39c34 100644 --- a/js/index.js +++ b/js/index.js @@ -40,7 +40,6 @@ $(() => { // load modules to the global scope so they can be evaled extend(true, window, modules); - extend(true, window, Sandbox); Server.loadCategories().then((data) => { app.setCategories(data);