summaryrefslogtreecommitdiff
path: root/static/js/main.js
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2024-03-02 12:00:00 +0200
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2024-03-02 12:00:00 +0200
commit8ee207dc1034eeeb8f48c0c9ca58c6f29df95ae7 (patch)
tree038610a55005e9a638345afe76a7b894459c828e /static/js/main.js
parent2c1b00f3094321ba9fd3121e723823b96dfbc528 (diff)
Massive changes regarding the core templates, static and config backbone
Soon will be abstracted into a Hermit V3 theme that focuses on: - speed - efficiency - modularity - SEO: - good WCAG & - pagespeed metrics - suckless Changes to be committed: modified: config.toml modified: content/posts/code_test.md modified: content/posts/How I made this Blog with Zola.md deleted: sass/_icons.scss modified: sass/_predefined.scss modified: sass/style.scss modified: static/js/main.js modified: templates/404.html modified: templates/index.html modified: templates/macros.html modified: templates/page.html modified: templates/section.html modified: templates/tags/list.html modified: templates/tags/single.html
Diffstat (limited to 'static/js/main.js')
-rw-r--r--static/js/main.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/static/js/main.js b/static/js/main.js
index 012df35..18316e0 100644
--- a/static/js/main.js
+++ b/static/js/main.js
@@ -2,7 +2,7 @@
* Utils
*/
-// Throttle
+// Throttle Helper
const throttle = (callback, limit) => {
let timeoutHandler = null;
return () => {
@@ -23,8 +23,6 @@ const listen = (selector, eventType, callback) => {
}
};
-// FUNCTIONS
-
// Auto Hide Header
const header = document.getElementById('site-header');
let lastScrollPosition = window.scrollY;