mirror of
https://github.com/yv1ing/MollyBlog.git
synced 2025-09-16 14:53:45 +08:00
fix: Remove blog directory menu
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user