fixed scroll to tup button

This commit is contained in:
2025-08-18 10:24:08 +00:00
parent f7f2356510
commit a02da47e73
3 changed files with 8 additions and 6 deletions

View File

@ -52,7 +52,7 @@ start_server() {
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
echo -e "${CYAN}╭───────────────────────────────────────────╮${NC}" echo -e "${CYAN}╭───────────────────────────────────────────╮${NC}"
echo -e "${CYAN}${NC} Lum${CYAN}eex${NC} - Version 1.3.1${NC} ${CYAN}${NC}" echo -e "${CYAN}${NC} Lum${CYAN}eex${NC} - Version 1.3.2${NC} ${CYAN}${NC}"
echo -e "${CYAN}├───────────────────────────────────────────┤${NC}" echo -e "${CYAN}├───────────────────────────────────────────┤${NC}"
echo -e "${CYAN}${NC} Source: https://git.djeex.fr/Djeex/lumeex ${CYAN}${NC}" echo -e "${CYAN}${NC} Source: https://git.djeex.fr/Djeex/lumeex ${CYAN}${NC}"
echo -e "${CYAN}${NC} Mirror: https://github.com/Djeex/lumeex ${CYAN}${NC}" echo -e "${CYAN}${NC} Mirror: https://github.com/Djeex/lumeex ${CYAN}${NC}"

View File

@ -143,10 +143,12 @@ const disableRightClickAndDrag = () => {
// Scroll to top button // Scroll to top button
const setupScrollToTopButton = () => { const setupScrollToTopButton = () => {
const scrollToTopButton = document.querySelector('.scroll-to-top'); const scrollBtn = document.getElementById("scrollToTop");
if (!scrollToTopButton) return; window.addEventListener("scroll", () => {
scrollToTopButton.addEventListener('click', () => { scrollBtn.style.display = window.scrollY > 300 ? "block" : "none";
window.scrollTo({ top: 0, behavior: 'smooth' }); });
scrollBtn.addEventListener("click", () => {
window.scrollTo({ top: 0, behavior: "smooth" });
}); });
}; };

View File

@ -23,7 +23,7 @@ SITE_FILE = SRC_DIR / "config/site.yaml"
THEMES_DIR = SRC_DIR / "config/themes" THEMES_DIR = SRC_DIR / "config/themes"
def build(): def build():
build_version = "v1.3.1" build_version = "v1.3.2"
logging.info("\n") logging.info("\n")
logging.info("=" * 24) logging.info("=" * 24)
logging.info(f"🚀 Lumeex builder {build_version}") logging.info(f"🚀 Lumeex builder {build_version}")