2021-06-29 23:23:05 +00:00
|
|
|
import { Modal } from "../../ts/modules/modal.js";
|
|
|
|
import { whichAnimationEvent } from "../../ts/modules/common.js";
|
2021-12-29 22:33:07 +00:00
|
|
|
import { loadBuilds } from "./repo.js";
|
2021-06-29 23:23:05 +00:00
|
|
|
|
|
|
|
interface window extends Window {
|
|
|
|
animationEvent: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare var window: window;
|
|
|
|
|
|
|
|
window.animationEvent = whichAnimationEvent();
|
|
|
|
|
|
|
|
const debModal = new Modal(document.getElementById("modal-deb"));
|
|
|
|
const debButton = document.getElementById("download-deb") as HTMLAnchorElement;
|
|
|
|
debButton.onclick = debModal.toggle;
|
|
|
|
|
2021-06-30 17:25:51 +00:00
|
|
|
const debUnstable = document.getElementById("deb-unstable");
|
2021-06-29 23:23:05 +00:00
|
|
|
const debUnstableButton = document.getElementById("download-deb-unstable") as HTMLAnchorElement;
|
2021-06-30 17:25:51 +00:00
|
|
|
debUnstableButton.onclick = debModal.toggle;
|
2021-06-29 23:23:05 +00:00
|
|
|
|
|
|
|
const stableSect = document.getElementById("sect-stable");
|
2021-12-29 22:33:07 +00:00
|
|
|
export const unstableSect = document.getElementById("sect-unstable");
|
2021-06-29 23:23:05 +00:00
|
|
|
|
|
|
|
const stableButton = document.getElementById("download-stable") as HTMLSpanElement;
|
|
|
|
const unstableButton = document.getElementById("download-unstable") as HTMLSpanElement;
|
|
|
|
|
2021-06-30 00:16:51 +00:00
|
|
|
const dockerUnstable = document.getElementById("docker-unstable");
|
|
|
|
|
2021-06-29 23:23:05 +00:00
|
|
|
stableButton.onclick = () => {
|
2021-06-30 17:25:51 +00:00
|
|
|
debUnstable.classList.add("unfocused");
|
2021-06-30 00:16:51 +00:00
|
|
|
dockerUnstable.classList.add("unfocused");
|
2021-12-30 00:49:43 +00:00
|
|
|
stableButton.classList.add("@high");
|
|
|
|
unstableButton.classList.remove("@high");
|
2021-06-29 23:23:05 +00:00
|
|
|
stableSect.classList.remove("unfocused");
|
|
|
|
unstableSect.classList.add("unfocused");
|
2021-06-30 00:16:51 +00:00
|
|
|
|
2021-06-29 23:23:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unstableButton.onclick = () => {
|
2021-06-30 17:25:51 +00:00
|
|
|
debUnstable.classList.remove("unfocused");
|
2021-06-30 00:16:51 +00:00
|
|
|
dockerUnstable.classList.remove("unfocused");
|
2021-12-30 00:49:43 +00:00
|
|
|
unstableButton.classList.add("@high");
|
|
|
|
stableButton.classList.remove("@high");
|
2021-06-29 23:23:05 +00:00
|
|
|
stableSect.classList.add("unfocused");
|
|
|
|
unstableSect.classList.remove("unfocused");
|
|
|
|
}
|
2021-06-30 00:16:51 +00:00
|
|
|
|
|
|
|
const dockerModal = new Modal(document.getElementById("modal-docker"));
|
|
|
|
const dockerButton = document.getElementById("download-docker") as HTMLSpanElement;
|
|
|
|
const dockerUnstableButton = document.getElementById("download-docker-unstable") as HTMLSpanElement;
|
|
|
|
|
|
|
|
dockerButton.onclick = dockerModal.toggle;
|
|
|
|
dockerUnstableButton.onclick = dockerModal.toggle;
|
|
|
|
|
2021-12-29 22:33:07 +00:00
|
|
|
loadBuilds();
|