mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-16 04:45:34 +00:00
favorites placeholder
This commit is contained in:
parent
6d21948c37
commit
9b319699da
@ -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
|
||||
|
@ -188,7 +188,7 @@ body {
|
||||
}
|
||||
|
||||
#firstHalf {
|
||||
border-right: 10px solid #141414;
|
||||
border-right: 6px solid #141414;
|
||||
background-position: -340px;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user