mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-14 03:23:46 +01:00
20 lines
759 B
JavaScript
20 lines
759 B
JavaScript
|
// @author rubenwardy
|
||
|
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
window.addEventListener("load", () => {
|
||
|
function check_opt() {
|
||
|
if (document.querySelector("input[name='uploadOpt']:checked").value === "vcs") {
|
||
|
document.getElementById("file_upload").parentElement.classList.add("d-none");
|
||
|
document.getElementById("vcsLabel").parentElement.classList.remove("d-none");
|
||
|
} else {
|
||
|
document.getElementById("file_upload").parentElement.classList.remove("d-none");
|
||
|
document.getElementById("vcsLabel").parentElement.classList.add("d-none");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
document.querySelectorAll("input[name='uploadOpt']").forEach(x => x.addEventListener("change", check_opt));
|
||
|
check_opt();
|
||
|
});
|