mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-08-14 13:11:48 +08:00
favorites placeholder
This commit is contained in:
parent
6d21948c37
commit
9b319699da
@ -151,7 +151,6 @@ async function setBackgroundImage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function handleFavoriteInput() {
|
async function handleFavoriteInput() {
|
||||||
console.log('onchange')
|
|
||||||
const ip = document.querySelector('#ip').value
|
const ip = document.querySelector('#ip').value
|
||||||
const ipArr = await getFavIps()
|
const ipArr = await getFavIps()
|
||||||
|
|
||||||
@ -179,6 +178,14 @@ async function handleFavoriteList() {
|
|||||||
document.createElement('ul')
|
document.createElement('ul')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (ipArr.length < 1) {
|
||||||
|
const listItem = list.appendChild(
|
||||||
|
document.createElement('li')
|
||||||
|
)
|
||||||
|
|
||||||
|
listItem.innerHTML = 'No favorites set'
|
||||||
|
}
|
||||||
|
|
||||||
for (const ip of ipArr) {
|
for (const ip of ipArr) {
|
||||||
const elm = document.createElement('li')
|
const elm = document.createElement('li')
|
||||||
elm.innerHTML = ip
|
elm.innerHTML = ip
|
||||||
|
@ -188,7 +188,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#firstHalf {
|
#firstHalf {
|
||||||
border-right: 10px solid #141414;
|
border-right: 6px solid #141414;
|
||||||
background-position: -340px;
|
background-position: -340px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user