Skip to content

Commit e062262

Browse files
chore: minor updates
1 parent 81ff1eb commit e062262

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

assets/js/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async function handleSubmit(event) {
1313
},
1414
})
1515
.then((response) => {
16-
status.innerHTML = "Thanks for your submission!";
16+
status.innerHTML = "Your message has been sent.";
1717
document.querySelector(".alert_style").style.display = "block";
1818

1919
// hide alert after 3 seconds
@@ -23,7 +23,7 @@ async function handleSubmit(event) {
2323
form.reset();
2424
})
2525
.catch((error) => {
26-
status.innerHTML = "Oops! There was a problem submitting your form";
26+
status.innerHTML = "Oops! There was a problem delivering your message, please contact via other means.";
2727
document.querySelector(".alert_style").style.display = "block";
2828

2929
// hide alert after 3 seconds
@@ -126,7 +126,7 @@ function scrollActive() {
126126
sections.forEach((current) => {
127127
const sectionHeight = current.offsetHeight;
128128
const sectionTop = current.offsetTop - 50;
129-
sectionId = current.getAttribute("id");
129+
let sectionId = current.getAttribute("id");
130130

131131
if (scrollY > sectionTop && scrollY <= sectionTop + sectionHeight) {
132132
document

0 commit comments

Comments
 (0)