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]+"'>⨯</span>");
ul.appendChild(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()+"'>✔</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());
+++ /dev/null
-document.addEventListener("DOMContentLoaded", function() {
- chrome.storage.sync.get({"bgvalue": "#2E3440"}, bgCallback);
-});
-var bgCallback = function(list) {
-var color = list["bgvalue"];
-console.log(color);
-document.body.style.background = color;
-};
--- /dev/null
+document.addEventListener("DOMContentLoaded", function() {
+ chrome.storage.sync.get({"bgvalue": "#2E3440"}, bgCallback);
+});
+var bgCallback = function(list) {
+var color = list["bgvalue"];
+console.log(color);
+document.body.style.background = color;
+};
+document.addEventListener("DOMContentLoaded", function() {
+ chrome.storage.sync.get({"fgvalue": "#ECEFF4"}, fgCallback);
+});
+var fgCallback = function(list) {
+var color = list["fgvalue"];
+console.log(color);
+document.body.style.color = color;
+};
+++ /dev/null
-document.addEventListener("DOMContentLoaded", function() {
- chrome.storage.sync.get({"fgvalue": "#ECEFF4"}, fgCallback);
-});
-var fgCallback = function(list) {
-var color = list["fgvalue"];
-console.log(color);
-document.body.style.color = color;
-};
<script type="text/javascript" src="sites.js" ></script>
<script type="text/javascript" src="admin.js" ></script>
- <script type="text/javascript" src="bg.js" ></script>
- <script type="text/javascript" src="fg.js" ></script>
+ <script type="text/javascript" src="colours.js" ></script>
<script src="Sortable.min.js"></script>
<link rel="stylesheet" href="style.css">
<body style="padding: 10px; padding-left: 65px; padding-right: 65px;">
<table>
<tr>
- <td>1</td>
+ <td>Column 1</td>
<td><input type="text" id="l1"></td>
+ <input type="checkbox" id="l1show" value="Bike"> I have a bike<br>
</tr>
<tr>
- <td>2</td>
- <td><input type="text" id="l2"></td>
+ <td>Column 2</td>
+ <td><input type="text" id="l2show"></td>
</tr>
<tr>
- <td>3</td>
+ <td>Column 3</td>
<td><input type="text" id="l3"></td>
</tr>
<tr>
<table>
<tr>
<td style="width: 135px;"><button id="save" style="width: 65px;">Save</button><div id="status"></div></td>
- <td style="width: 65px;"><div style="text-align: right;">alorimer<br /><a href="https://github.com/startclean/Chrome-Extension">original</a></div></td>
+ <td style="width: 65px;"><div style="text-align: right;">Made by <a href="https://git.lorimer.id.au/newtab.git">Andrew Lorimer</a></div></td>
</td>
</table>
-
-
<script src="options.js"></script>
</body>
</html>
+img {
+ float: left;
+ margin-top: 1px;
+ padding-right: 3px;
+}
+
#search-form > input#search-box:-webkit-autofill {
-webkit-box-shadow: 0 0 0 1000px #222 inset !important;
-webkit-text-fill-color: #b5b5a4 !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
- max-width: 120px;
+ width: 63px;
+}
+
+.url {
+ width: 100px;
}
.inp {
width: 200px;
+ padding: 10px 0;
}
.inp > input {
}
.users-list > ul > li > span {
- font-weight: normal;
- color: black;
width: 10px;
- height: 32px;
+ height: 25px;
padding: 4px 5px 0 10px;
background: #434C5E;
float: right;
display: none;
cursor: pointer;
+ padding-top: 10px;
}
.users-list > ul > li > span:hover {
background: #BF616A;
}
-.users-list > ul > .inp > span {
- margin-top: 4px;
- font-weight: normal;
- color: black;
+.users-list > ul > .inp > a {
width: 10px;
- padding: 2px 5px 3px 6px;
- background: white;
+ height: 18px;
+ display: inline-block;
+ background: #434C5E;
+ padding: 3px 6px 3px 3px;
cursor: pointer;
}
+.users-list > ul > .inp > a:hover, .users-list > ul > .inp > a:focus {
+ background: #A3BE8C;
+}
+
.users-list > ul > li:hover > span {
display: inline-block;
}
}
.users-list > ul > .title > span {
- background: #A3BE8C;
+ background-color: #434C5E;
+}
+
+.users-list > ul > .title > span:hover {
+ background-color: #A3BE8C !important;
}
.users-list > ul > li > a, .users-list > ul > .title > p {