-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
758 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
document.addEventListener('DOMContentLoaded', async function () { | ||
|
||
// required.js | ||
adjustScreenSize(610); // might not change the top image for on mobile | ||
await init(); | ||
adjustScreenSize(610); // ensure change of top image | ||
headerShadow(); | ||
|
||
window.addEventListener('resize', () => { | ||
adjustScreenSize(570); | ||
}); | ||
window.addEventListener("scroll", headerShadow); | ||
|
||
// add the button events | ||
document.querySelectorAll(".downloadListItem").forEach((item) => { | ||
item.addEventListener('click', function() { | ||
|
||
if (item === document.querySelector(".downloadList").children.item(0)) { | ||
document.querySelector(".downloadContentList").style.transform = `translateX(0)`; // could just leave it empty but this makes it look nicer in inspect element :D | ||
|
||
} else if (item === document.querySelector(".downloadList").children.item(1)) { | ||
document.querySelector(".downloadContentList").style.transform = `translateX(-100%)`; | ||
|
||
} else if (item === document.querySelector(".downloadList").children.item(2)) { | ||
document.querySelector(".downloadContentList").style.transform = `translateX(-200%)`; | ||
|
||
} else { | ||
console.error("Uh oh, it seems the html is modified!"); | ||
} | ||
|
||
document.querySelector(".downloadListItemSelected").classList.remove("downloadListItemSelected"); | ||
item.classList.add("downloadListItemSelected"); | ||
}) | ||
}); | ||
|
||
await fetch('/stats.json').then(response => response.json()).then(jsonData => { | ||
|
||
document.getElementById("githubBuildNumber").textContent = "#" + jsonData.devbuilds; | ||
document.getElementById("githubBuildNumber").href = jsonData.build_link; | ||
|
||
document.getElementById("githubBuildDate").textContent = new Date(jsonData.build_date).toLocaleDateString(); | ||
document.getElementById("githubBuildDate").href = jsonData.build_link; | ||
|
||
document.getElementById("githubUserContainer").href = "https://github.com/" + jsonData.commiter_name | ||
document.getElementById("githubAvatar").src = jsonData.commiter_avatar; | ||
document.getElementById("githubUsername").textContent = jsonData.commiter_name; | ||
|
||
setTimeout(function() { | ||
document.getElementById("infoContainer").classList.remove("skeletonLoading") | ||
document.querySelectorAll(".infoSub").forEach(( element) => element.style.opacity = "1"); | ||
}, 200); | ||
}); | ||
}); | ||
|
||
|
Oops, something went wrong.