Preview Download!

This commit is contained in:
ItzLightyHD 2022-07-23 13:12:55 +02:00
parent e1b69691da
commit 3a3c4f36dd
No known key found for this signature in database
GPG Key ID: DEFAE1C838F14470
3 changed files with 8 additions and 0 deletions

Binary file not shown.

View File

@ -465,6 +465,9 @@
<p class="lead" id="alpha-preview-generated-text"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal" id="preview-download">
Download
</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal" id="preview-gen-ok">
Ok
</button>

View File

@ -175,6 +175,7 @@ let alphaPreviewUsernameModal = new Modal(document.getElementById("alphapreviewu
let alphaPreviewUsername = (document.getElementById("alpha-preview-username")! as HTMLInputElement);
let alphaPreviewKeyGenButton = document.getElementById("preview-generate-key")!;
let alphaPreviewGeneratedText = document.getElementById("alpha-preview-generated-text")!;
let alphaPreviewDownloadButton = document.getElementById("preview-download")!;
const socket = new WebSocket("wss://ws.plenusbot.xyz:8443");
socket.onopen = () => {
@ -218,4 +219,8 @@ alphaPreviewButton.addEventListener("click", () => {
accessToken: discordAccessToken,
userID: JSON.parse(discordUserData).id
}));
});
alphaPreviewDownloadButton.addEventListener("click", () => {
window.location.href = "https://github.com/ApexieCommunity/Website/raw/main/downloads/Alpha 1.2.6_10.zip";
});