From 47f889cf928630310a91742b363604d2b37df4b9 Mon Sep 17 00:00:00 2001 From: Christian Brassat Date: Thu, 27 Mar 2014 16:08:12 +0800 Subject: [PATCH] Cleanup --- index.html | 2 +- js/script.js | 101 +++++++++++++++++++++++++++++---------------------- 2 files changed, 58 insertions(+), 45 deletions(-) diff --git a/index.html b/index.html index 8b8aa19..a94623f 100644 --- a/index.html +++ b/index.html @@ -50,7 +50,7 @@ URLs go here, in the following format: Heading Text -http://www.example.com || Title +http://www.example.com || Title || Keybinding Second Heading Text http://www.example.com || Another Title diff --git a/js/script.js b/js/script.js index 8de043a..cd7b439 100644 --- a/js/script.js +++ b/js/script.js @@ -89,18 +89,18 @@ $(document).ready(function() { var line = jQuery.trim(linkArray[i]); // If line is empty, skip - if(!line) - continue; + if(!line) continue; /* If it doesn't contain "://", *\ |* it's not a URL *| \*================================*/ if(/:\/\//.test(line) != true) { - if(count > 1) + if(count > 1) { html = html + ''; - html = html + '

' + line + '