From 2d7dd0decabb447da339e5cf7c838eeb2ced3808 Mon Sep 17 00:00:00 2001 From: "duaraghav8@gmail" Date: Thu, 26 May 2016 10:42:03 +0530 Subject: [PATCH] Added scrolling in Files Bar --- css/stylesheet.css | 12 +++++++++++ js/script.js | 50 +++++++++++++++++++++++++++++++++++++++------- 2 files changed, 55 insertions(+), 7 deletions(-) diff --git a/css/stylesheet.css b/css/stylesheet.css index dc7f762..49529eb 100644 --- a/css/stylesheet.css +++ b/css/stylesheet.css @@ -220,6 +220,18 @@ section { height: 30px; } +.files_bar_right_button { + height: 30px; + float: right; + position: relative; +} + +.files_bar_left_button { + height: 30px; + float: left; + position: relative; +} + .files_bar { height: 30px; } diff --git a/js/script.js b/js/script.js index 3193b27..5b97fe3 100644 --- a/js/script.js +++ b/js/script.js @@ -151,22 +151,58 @@ var showAlgorithm = function(category, algorithm) { codeEditor.setValue(''); }; var showFiles = function(category, algorithm, files) { - $('.files_bar').empty(); - var init = false; - for (var file in files) { - (function(file, explanation) { - var $file = $('