make TCAS_sc1

This commit is contained in:
Lazy Hippopotamus
2023-07-07 17:04:36 -04:00
parent 5a3df2f9c3
commit 06bd3f7af8
2 changed files with 14 additions and 6 deletions

View File

@@ -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;
}