😗修复星港提出的主页js出现错误的问题

This commit is contained in:
2024-08-28 01:47:18 +08:00
parent 421c3f53c8
commit 55a4358cc1
5 changed files with 20 additions and 10 deletions

View File

@ -62,6 +62,7 @@ body {
border-radius: 10px;
border:1px solid var(--border-color);
height: 210px;
transition: border 0.3s;
}
.random-container {
@ -245,7 +246,8 @@ body {
transition: border 0.3s;
}
.card:hover {
.card:hover,
#random-article:hover {
border: 1px solid var(--hover-color);
}

View File

@ -42,7 +42,7 @@ function initialize_fc_lite() {
}
}
fetch(`${UserConfig.private_api_url}all`)
fetch(`${UserConfig.private_api_url}all.json`)
.then(response => response.json())
.then(data => {
localStorage.setItem(cacheKey, JSON.stringify(data));
@ -217,5 +217,5 @@ function whenDOMReady() {
initialize_fc_lite();
}
whenDOMReady()
document.addEventListener("pjax:complete", whenDOMReady)
whenDOMReady();
document.addEventListener("pjax:complete", whenDOMReady);

2
main/fclite.min.css vendored

File diff suppressed because one or more lines are too long

2
main/fclite.min.js vendored

File diff suppressed because one or more lines are too long