From 0c94a705725df57504b4ce43cf51e0fb3fa5ec21 Mon Sep 17 00:00:00 2001 From: Gabriel Dunne Date: Fri, 22 Mar 2013 20:31:27 -0700 Subject: [PATCH] Cleanup --- public/js/script.js | 4 ++-- routes/index.js | 4 +++- views/index.ejs | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/public/js/script.js b/public/js/script.js index f7d0c79..e31c6ea 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -1,8 +1,6 @@ $(document).ready(function() { - $(document.body).append('
'); - $(document.body).append('
'); $('#scrim').click(function() { $('#subcontent').fadeOut(100, function() { scrim(0); @@ -21,7 +19,9 @@ $(document).ready(function() { var thumbs_url = $(elem).attr('data-thumbs-url'); link.click(function() { + scrim(1, function() { + $('#subcontent .container').empty(); var offset = 150; diff --git a/routes/index.js b/routes/index.js index 9b0c0be..9a2243d 100644 --- a/routes/index.js +++ b/routes/index.js @@ -1,11 +1,13 @@ var fs = require("fs") , prelinger = require('../prelinger.json'); +var LIMIT = false; + exports.index = function(req, res) { var count = 10; var clips = []; for( var i = 0; i < prelinger.clips.length; i++) { - count--; if (count == 0) { break; } + if (LIMIT) { count--; if (count == 0) { break; } } var clip = prelinger.clips[i]; var ext = clip.thumbnail_filename.split('.')[1]; if (ext == 'gif') { diff --git a/views/index.ejs b/views/index.ejs index f7f7702..3fc4457 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -16,5 +16,7 @@ <% } %> +
+
-- 2.34.1