Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
download files
Browse files Browse the repository at this point in the history
  • Loading branch information
InfinityLoop1 committed Oct 29, 2024
1 parent 55333e6 commit 3f7cd95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/js/playGame.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ function makeFullscreen() {
document.addEventListener('DOMContentLoaded', function (e) {
document.getElementById("gameFrame").src = "files/" + searchParam + "/index.html";
document.getElementById("sourceViewLink").href = "files/" + searchParam + "/index.html";
document.getElementById("downloadFilesLink").href = "https://download-directory.github.io/?url=https%3A%2F%2Fgithub.com%2FLupineVault%2FLupineVault%2Ftree%2Fmain%2Fgames%2Ffiles%2F" + searchParam;
});
2 changes: 2 additions & 0 deletions games/play.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
<div id="bottomMenu">
<span id="corner-menu"><a href="select.html"><span class="material-symbols-rounded">arrow_back</span></a><a href="../index.html"><span class="material-symbols-rounded">home</span></a></span>
<a id="sourceViewLink">Open in source view</a>
<a id="downloadFilesLink">Download game files as .zip</a>
</div>
<script src="../assets/js/global.js"></script>
<script src="../assets/js/playGame.js"></script>
</body>

Expand Down

0 comments on commit 3f7cd95

Please sign in to comment.