Preview Download!
This commit is contained in:
parent
e1b69691da
commit
3a3c4f36dd
Binary file not shown.
|
@ -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>
|
||||
|
|
|
@ -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";
|
||||
});
|
Loading…
Reference in New Issue