Theme Files Update

This commit is contained in:
GitHub Action 2023-08-19 07:24:17 +00:00
parent dd0cc8f02d
commit 680dbbd43f
15 changed files with 69 additions and 20 deletions

View file

@ -99,16 +99,4 @@ if (header !== null) {
toggleMobileMenu();
}
}, 250));
}
// Scroll to Top button Toggle
//
const scroll = document.querySelector(".scroll-up"), rootElement = document.documentElement;
function handleScroll() {
if (rootElement.scrollTop / (rootElement.scrollHeight - rootElement.clientHeight) > 0.4) {
scroll.classList.remove("hide");scroll.classList.add("show");
} else {
scroll.classList.add("hide");scroll.classList.remove("show");
}
}
document.addEventListener("scroll", handleScroll);
}

View file

@ -0,0 +1,17 @@
MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']],
displayMath: [['$$','$$'], ['\\[', '\\]']],
processEscapes: true,
processEnvironments: true
},
options: {
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
enableMenu: false
}
};
window.addEventListener('load', (event) => {
document.querySelectorAll("mjx-container").forEach(function(x){
x.parentElement.classList += 'has-jax'})
});

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
const scroll=document.querySelector(".scroll-up"),rootElement=document.documentElement;function handleScroll(){rootElement.scrollTop/(rootElement.scrollHeight-rootElement.clientHeight)>.4?(scroll.classList.remove("hide"),scroll.classList.add("show")):(scroll.classList.add("hide"),scroll.classList.remove("show"))}document.addEventListener("scroll",handleScroll);