From 06bd3f7af89fcecf3ba4f1b17416e5cd1185545a Mon Sep 17 00:00:00 2001 From: Lazy Hippopotamus Date: Fri, 7 Jul 2023 17:04:36 -0400 Subject: [PATCH] make TCAS_sc1 --- _layouts/default.html | 12 ++++++------ main.js | 8 ++++++++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index d876812..ff80e33 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -145,10 +145,10 @@ Others: About us Contact us --> -
About Us
-
Intro to Judaism
-
Humanism
-
Jewish Culture & History
+
About Us
+
Intro to Judaism
+
Humanism
+
Jewish Culture & History
@@ -156,8 +156,8 @@ @kosheriraq1
@kosherwales
-
Membership
-
Contact Us
+
Membership
+
Contact Us
diff --git a/main.js b/main.js index 1a6059e..1986276 100644 --- a/main.js +++ b/main.js @@ -1,5 +1,13 @@ var startX = 0; +if (window.location.hash == "#TCAS_sc1") { + document.getElementById("outer").scrollTo({ + top: document.getElementById("content").getBoundingClientRect().top, + left: 0, + behavior: "smooth" + }); +} + window.ontouchstart = (evt) => { startX = evt.touches[0].clientX; }