From c91f76b197a8b1f0ff4fa243c9b56deac748ea16 Mon Sep 17 00:00:00 2001 From: Neil Brommer Date: Sat, 9 Dec 2017 19:57:20 -0800 Subject: [PATCH] Switch to using IndexedDB from LocalStorage Automatically imports from old LocalStorage data --- js/main.js | 187 ++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 162 insertions(+), 25 deletions(-) diff --git a/js/main.js b/js/main.js index 629cc68..e929d8a 100644 --- a/js/main.js +++ b/js/main.js @@ -1,3 +1,6 @@ +// use this when making changes so that there is no need to parse the page +var bookmarkList; + $(document).ready(function () { calcBackground(); loadBookmarks(); @@ -14,7 +17,7 @@ $(document).ready(function () { var combo = $("#newBookmarkGroup"); var data = getList(); for (var i = 0; i < data.length; i++) { - combo.append($("").attr({ "value": i }).text(data[i].title)); + combo.append($("