From a25bf356c9beb7ab1fea485a38cee05964b9953e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 10 Nov 2017 15:13:45 +0000 Subject: [PATCH] Remove search, maybe add later --- content/search.md | 5 ----- static/src/js/index.js | 1 - static/src/js/search.js | 18 ------------------ static/src/scss/style.scss | 8 -------- 4 files changed, 32 deletions(-) delete mode 100644 content/search.md delete mode 100644 static/src/js/search.js diff --git a/content/search.md b/content/search.md deleted file mode 100644 index 3c08d42..0000000 --- a/content/search.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: Search -linkTitle: 🔎 -layout: search ---- diff --git a/static/src/js/index.js b/static/src/js/index.js index d51907f..f81b52a 100644 --- a/static/src/js/index.js +++ b/static/src/js/index.js @@ -6,7 +6,6 @@ require('bootstrap'); // Install alpha things require('lightgallery/dist/js/lightgallery'); require('lg-thumbnail/dist/lg-thumbnail'); -require('./search'); $('.image').each(function () { // setup div-image hybrids diff --git a/static/src/js/search.js b/static/src/js/search.js deleted file mode 100644 index 58a8354..0000000 --- a/static/src/js/search.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -$(document).ready(function() { - var FADE_SETTINGS = { - duration: 400 - }; - - $('input#search').keyup(function() { - var filter = new RegExp($(this).val(), 'gi'); - $('div.search-results > div').each(function() { - if ($(this).text().search(filter) === -1) { - $(this).fadeOut(FADE_SETTINGS); - } else { - $(this).fadeIn(FADE_SETTINGS); - } - }); - }); -}); diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss index 67130a3..71920f9 100644 --- a/static/src/scss/style.scss +++ b/static/src/scss/style.scss @@ -83,14 +83,6 @@ code { } } -.search-input-container { - margin: 20px 40px; - - input { - text-align: center; - } -} - table td { vertical-align: middle; }