From 8a6fb17ab14ec2268f3c7bec6c22cedaab50e2f2 Mon Sep 17 00:00:00 2001 From: "duaraghav8@gmail" Date: Sat, 11 Jun 2016 16:57:24 +0530 Subject: [PATCH 1/4] Search Feature - Initial Commit --- css/stylesheet.css | 15 ++ gulpfile.babel.js | 1 + index.html | 1 + js/dom/enable_search.js | 32 +++++ js/dom/index.js | 4 +- js/index.js | 3 + public/algorithm_visualizer.css | 15 ++ public/algorithm_visualizer.js | 191 ++++++++++++++----------- public/algorithm_visualizer.js.map | 2 +- public/algorithm_visualizer.min.css | 2 +- public/algorithm_visualizer.min.js | 6 +- public/algorithm_visualizer.min.js.map | 2 +- 12 files changed, 187 insertions(+), 87 deletions(-) create mode 100644 js/dom/enable_search.js diff --git a/css/stylesheet.css b/css/stylesheet.css index e2395dd8..5b968e14 100644 --- a/css/stylesheet.css +++ b/css/stylesheet.css @@ -180,6 +180,21 @@ nav h3 { box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.48), inset 0 -2px 2px rgba(0, 0, 0, 0.36); } +input.search_bar { + box-sizing: border-box; + background: rgba(0, 0, 0, .10); + border: none; + border-bottom: 2px solid rgb(38, 38, 38); + width: 100%; + height: 30px; + color: white; + padding-left: 10px; +} + +input.search_bar:focus { + outline: none; +} + .workspace { position: absolute; top: 30px; diff --git a/gulpfile.babel.js b/gulpfile.babel.js index e9ed12ab..e24eaa4d 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -16,6 +16,7 @@ import babelify from 'babelify'; import source from 'vinyl-source-stream'; import buffer from 'vinyl-buffer'; import pkg from './package.json'; +if (Number (process.version.match (/^v(\d+\.\d+)/) [1]) <= 0.10) var Promise = require ('es6-promise').Promise; const appName = 'algorithm_visualizer'; const appEntryPoint = './js/index.js'; diff --git a/index.html b/index.html index 6903d1e0..117f5a7d 100644 --- a/index.html +++ b/index.html @@ -61,6 +61,7 @@

+