Actually Fixed Buttons!

This commit is contained in:
Squirrel-314 2021-01-14 18:08:14 -05:00
parent 82e3687645
commit ce956ec9e4
2 changed files with 20 additions and 4 deletions

View file

@ -28,9 +28,18 @@
<div class="last" id="back" onclick="last()"> <div class="last" id="back" onclick="last()">
<span class="arrow">&#10229;</span> <span class="arrow">&#10229;</span>
</div> </div>
<div class="text">
<br>
<!-- Use diffrent animation for head --> <!-- Use diffrent animation for head -->
<h1>Vegetable Dash!</h1> <h1>Vegetable Dash!</h1>
</div> </div>
</div>
<div class="block" id="coming-soon">
<div class="text">
<br><br>
<h1>COMING SOON!</h1>
</div>
</div>

11
main.js
View file

@ -5,14 +5,21 @@ if (window.location.href != "https://meetsquirrel.github.io" || "https://meetsqu
} }
function next() { function next() {
if (window.location.href == "https://meetsquirrel.github.io/index.html#vegetable-dash") { if (window.location.href == "https://meetsquirrel.github.io/index.html" || "file:///D:/Documents/GitHub/meetsquirrel.github.io/index.html#meet") {
document.location = "#vegetable-dash"; document.location = "#vegetable-dash";
} }
if (window.location.href == "https://meetsquirrel.github.io/index.html#vegetable-dash") {
document.location = "#coming-soon";
}
} }
function last() { 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") { if (window.location.href == "https://meetsquirrel.github.io/index.html#vegetable-dash") {
document.location = "#meet"; document.location = "#meet";
backButton.style.opacity = "0"; backButton.style.opacity = "0";
} }
if (window.location.href == "https://meetsquirrel.github.io/index.html#coming-soon") {
document.location = "#vegetable-dash";
} }
}
coming-soon