summaryrefslogtreecommitdiff
path: root/www/scripts/scroll.js
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2026-06-26 12:06:38 +0800
committeraltaf-creator <dev@altafcreator.com>2026-06-26 12:06:38 +0800
commit3abcae19fefd11bbfba6cbf696b342ea72da6992 (patch)
tree37fe730ff6b1475ea24eb0f04df200ef923461c7 /www/scripts/scroll.js
parent1b14996290f228a329d83c164e50c27364cc0a22 (diff)
major changes to /about/, event reflections, project reflections, video reflectionsHEADmaster
Diffstat (limited to 'www/scripts/scroll.js')
-rw-r--r--www/scripts/scroll.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/www/scripts/scroll.js b/www/scripts/scroll.js
index d7ab5da..6a61015 100644
--- a/www/scripts/scroll.js
+++ b/www/scripts/scroll.js
@@ -11,9 +11,13 @@ nodeBigSize = "25px";
nodeDefaultSize = "16px";
function progress() {
- const sections = document.getElementsByTagName("section");
+ const sections = [...document.getElementsByTagName("section")].filter(e => {
+ return e.getAttribute("data-excluded") == null;
+ });
const nodes = document.getElementsByClassName("node");
+ console.log(sections);
+
if (nodes[0]) {
for (var i = 0; i < sections.length; i++) {
if (isInViewport(sections[i])) {