fix: Remove blog directory menu

This commit is contained in:
2025-01-01 16:42:26 +08:00
parent 9fa05423e6
commit de0c34053b
3 changed files with 17 additions and 44 deletions

View File

@@ -87,17 +87,6 @@ tr, th, td {
left: 30px;
}
#toc-box-menu {
margin-top: 20px;
display: none;
color: var(--primary-color);
}
.toc-box-menu-item {
cursor: pointer;
margin-right: 10px;
}
#toc-title {
color: var(--primary-color);
}
@@ -157,4 +146,14 @@ tr, th, td {
.image-preview-img {
max-width: 90%;
max-height: 90%;
}
.back-to-top-wrap {
width: 36px;
height: 36px;
position: fixed;
top: 0;
right: 60px;
z-index: 999;
cursor: pointer;
}

View File

@@ -28,25 +28,6 @@ Array.from(tList, v => {
});
});
const tocMenu = document.getElementById('toc-box-menu');
window.addEventListener('scroll', (event) => {
const scrollFromTop = window.scrollY || document.documentElement.scrollTop;
if (scrollFromTop >= 100) {
tocMenu.style.display = 'block';
} else {
tocMenu.style.display = 'none';
}
})
function goto(path) {
window.location.href = path;
}
function back() {
window.history.back();
}
function backToTop() {
window.scrollTo({
top: 0,