favorites placeholder

This commit is contained in:
SpikeHD 2022-04-20 23:17:50 -07:00
parent 6d21948c37
commit 9b319699da
2 changed files with 9 additions and 2 deletions

View File

@ -151,7 +151,6 @@ async function setBackgroundImage() {
}
async function handleFavoriteInput() {
console.log('onchange')
const ip = document.querySelector('#ip').value
const ipArr = await getFavIps()
@ -179,6 +178,14 @@ async function handleFavoriteList() {
document.createElement('ul')
)
if (ipArr.length < 1) {
const listItem = list.appendChild(
document.createElement('li')
)
listItem.innerHTML = 'No favorites set'
}
for (const ip of ipArr) {
const elm = document.createElement('li')
elm.innerHTML = ip

View File

@ -188,7 +188,7 @@ body {
}
#firstHalf {
border-right: 10px solid #141414;
border-right: 6px solid #141414;
background-position: -340px;
}