Skip to content

Commit e9169b7

Browse files
authored
Update index.html
1 parent edb485a commit e9169b7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

index.html

+8-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h1>Welcome to GetByeBye</h1>
4343
<p>Protect your digital privacy. Learn how to detect and remove stalkerware from your phone.</p>
4444

4545
<button class="btn" id="scrollToForm">Get Updates</button>
46-
<a href="quiz.html" class="btn" style="text-decoration: none;">Take the "Am I Being Tracked?" Quiz</a>
46+
<a href="quiz.html" style="text-decoration: none; color: #0f0;" class="btn" style="text-decoration: none;">Take the "Am I Being Tracked?" Quiz</a>
4747

4848
<div id="email-form" style="margin-top: 40px;">
4949
<h2 style="color:#0f0;">Stay Updated</h2>
@@ -57,7 +57,13 @@ <h2 style="color:#0f0;">Stay Updated</h2>
5757

5858
<script>
5959
document.getElementById("scrollToForm").addEventListener("click", function() {
60-
document.getElementById("email-form").scrollIntoView({ behavior: "smooth", block: "center" });
60+
const formElement = document.getElementById("email-form");
61+
if (formElement) {
62+
formElement.scrollIntoView({ behavior: "smooth", block: "start" });
63+
} else {
64+
console.error("Element #email-form not found");
65+
}
66+
});
6167
});
6268
});
6369
</script>

0 commit comments

Comments
 (0)