From 5d8f1f5a95cdb7c4bef0b205488ef71c5fe0af9d Mon Sep 17 00:00:00 2001 From: Neil Brommer Date: Mon, 11 Dec 2017 17:40:07 -0800 Subject: [PATCH] Implement adding bookmarks --- index.html | 48 +++++++++---------- js/main.js | 132 ++++++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 135 insertions(+), 45 deletions(-) diff --git a/index.html b/index.html index 2f6a286..c98aa91 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,7 @@ - + @@ -48,30 +48,32 @@ - diff --git a/js/main.js b/js/main.js index 8f6adf7..0cb5380 100644 --- a/js/main.js +++ b/js/main.js @@ -1,5 +1,6 @@ // use this when making changes so that there is no need to parse the page var bookmarkList; +var dbVersion; $(document).ready(function () { calcBackground(); @@ -15,18 +16,20 @@ $(document).ready(function () { $("#newBookmarkModal").on("shown.bs.modal", function () { var combo = $("#newBookmarkGroup"); - var data = getList(); - for (var i = 0; i < data.length; i++) { - combo.append($("