2021-01-15 12:55:14 -05:00
|
|
|
let pageLocation = "meet";
|
2021-01-14 17:46:52 -05:00
|
|
|
let backButton = document.getElementById("back");
|
2021-01-15 12:55:14 -05:00
|
|
|
let nextButton = document.getElementById("next");
|
2021-01-14 14:40:08 -05:00
|
|
|
|
2021-01-14 17:46:52 -05:00
|
|
|
function next() {
|
2021-01-15 12:55:14 -05:00
|
|
|
if (pageLocation === "meet") {
|
2021-01-14 17:46:52 -05:00
|
|
|
document.location = "#vegetable-dash";
|
2021-01-15 12:55:14 -05:00
|
|
|
pageLocation = "vegetable-dash";
|
2021-01-14 17:46:52 -05:00
|
|
|
}
|
2021-01-15 12:55:14 -05:00
|
|
|
else if (pageLocation === "vegetable-dash") {
|
2021-01-14 18:08:14 -05:00
|
|
|
document.location = "#coming-soon";
|
2021-01-15 12:55:14 -05:00
|
|
|
pageLocation = "coming-soon";
|
2021-01-14 18:08:14 -05:00
|
|
|
}
|
2021-01-15 12:55:14 -05:00
|
|
|
buttonVisiblility();
|
2021-01-14 17:46:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
function last() {
|
2021-01-15 12:55:14 -05:00
|
|
|
if (pageLocation === "vegetable-dash") {
|
2021-01-14 17:46:52 -05:00
|
|
|
document.location = "#meet";
|
2021-01-15 12:55:14 -05:00
|
|
|
pageLocation = "meet";
|
2021-01-14 17:46:52 -05:00
|
|
|
}
|
2021-01-15 12:55:14 -05:00
|
|
|
else if (pageLocation === "coming-soon") {
|
2021-01-14 18:08:14 -05:00
|
|
|
document.location = "#vegetable-dash";
|
2021-01-15 12:55:14 -05:00
|
|
|
pageLocation = "vegetable-dash";
|
|
|
|
}
|
|
|
|
buttonVisiblility();
|
|
|
|
}
|
|
|
|
|
|
|
|
function buttonVisiblility() {
|
|
|
|
if (pageLocation != "meet") {
|
|
|
|
backButton.style.opacity = "1";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
backButton.style.opacity = "0";
|
|
|
|
}
|
|
|
|
if (pageLocation != "coming-soon") {
|
|
|
|
nextButton.style.opacity = "1";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
nextButton.style.opacity = "0";
|
2021-01-14 18:08:14 -05:00
|
|
|
}
|
2021-01-14 14:40:08 -05:00
|
|
|
}
|