UI layout adjustments
[newtab.git] / admin.js
index 17fbdbd8172dda354a7ad3a4e4f01d8da0463b23..0c9e0d44660a6ecc8191f41aadf1e1182b52a13b 100644 (file)
--- a/admin.js
+++ b/admin.js
@@ -7,30 +7,24 @@ document.addEventListener("DOMContentLoaded", function() {
        chrome.storage.sync.get(
 {"lists": [
     [
-        ["syncthing", "https://localhost:8384/"],
-        ["todoist", "http://todoist.com/"],
-        ["github", "https://github.com/"],
-        ["gmail", "http://mail.google.com/"],
-        ["drive", "http://drive.google.com/"]
+        ["Github", "https://github.com"],
+        ["Wikipedia", "https://en.wikipedia.org"],
+        ["Gmail", "https://mail.google.com"]
     ],
     [
-        ["unixporn", "http://reddit.com/r/unixporn"],
-        ["news", "http://reddit.com/r/news"],
-        ["funny", "http://reddit.com/r/funny"],
-        ["linux", "http://reddit.com/r/linux"],
-        ["all", "http://reddit.com/r/all"]
+        ["Desmos", "https://www.desmos.com/calculator"],
+        ["Wolfram", "https://wolframalpha.com"],
+        ["Hacker News", "https://news.ycombinator.com"]
     ],
     [
-        ["elementary", "https://elementary.io/"],
-        ["ubuntu", "https://www.ubuntu.com/"],
-        ["fedora", "https://getfedora.org/"],
-        ["mint", "https://linuxmint.com/"],
-        ["arch", "https://www.archlinux.org/"]
+        ["Reddit", "https://www.reddit.com"],
+        ["YouTube", "https://youtube.com"],
+        ["Instagram", "https://instagram.com"]
     ]
 ],
-"l1name": "productivity",
-"l2name": "general",
-"l3name": "distros"},
+"l1name": "General",
+"l2name": "Productivity",
+"l3name": "Social"},
        userListsCallback);
 });
 
@@ -77,7 +71,7 @@ var userListsCallback = function(lists) {
                        li.insertAdjacentHTML("beforeend", "<a href="+siteurl+"> <img src="+img.src+" alt="+extractDomain(siteurl,1)+"/> "+name+"</a>");
                        // ronmurphy end
                        //li.insertAdjacentHTML("beforeend", "<a href="+siteurl+">"+name+"</a>");
-                       li.insertAdjacentHTML("beforeend", "<span id='delete-"+j+"-"+mainlist[i]+"'>-</span>");
+                       li.insertAdjacentHTML("beforeend", "<span id='delete-"+j+"-"+mainlist[i]+"'>&#10799;</span>");
                        ul.appendChild(li);
                }
 
@@ -103,7 +97,7 @@ function listen(li) {
                        save();
                } else {
                        var ul = document.getElementById(r[1]);
-                       ul.insertAdjacentHTML("beforeend", "<div class='inp' id='div-"+listToArray(ul).length.toString()+"'><input style='width:35%' type='text' class='name' value='' placeholder='name'><input style='width:47%' type='text' class='url' value='' placeholder='url' id='form-"+listToArray(ul).length.toString()+"'><span id='input-"+listToArray(ul).length.toString()+"'>s</span></div>");
+                       ul.insertAdjacentHTML("beforeend", "<div class='inp' id='div-"+listToArray(ul).length.toString()+"'><input style='width:35%' type='text' class='name' value='' placeholder='name'><input style='width:47%' type='text' class='url' value='' placeholder='url' id='form-"+listToArray(ul).length.toString()+"'><a id='input-"+listToArray(ul).length.toString()+"'>&#x2714;</a></div>");
                        var inp = document.getElementById("div-"+listToArray(ul).length.toString());
                        var span = document.getElementById("input-"+listToArray(ul).length.toString());
                        var form = document.getElementById("form-"+listToArray(ul).length.toString());