profile-site/main.js
2021-01-14 17:46:52 -05:00

18 lines
631 B
JavaScript

let backButton = document.getElementById("back");
if (window.location.href != "https://meetsquirrel.github.io" || "https://meetsquirrel.github.io#meet") {
backButton.style.opacity = "1";
}
function next() {
if (window.location.href == "https://meetsquirrel.github.io/index.html#vegetable-dash") {
document.location = "#vegetable-dash";
}
}
function last() {
if (window.location.href == "https://meetsquirrel.github.io/index.html#vegetable-dash" || "file:///D:/Documents/GitHub/meetsquirrel.github.io/index.html#vegetable-dash") {
document.location = "#meet";
backButton.style.opacity = "0";
}
}