mirror of
https://github.com/mon/BemaniPatcher.git
synced 2026-08-01 22:10:41 -07:00
Make categories act like radio buttons
This commit is contained in:
+12
@@ -4,6 +4,18 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>BEMANI DLL Patching Tools</title>
|
<title>BEMANI DLL Patching Tools</title>
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="css/style.css">
|
||||||
|
<script>
|
||||||
|
window.addEventListener('DOMContentLoaded', function() {
|
||||||
|
// implement radio-style behaviour for categories
|
||||||
|
for(const input of document.querySelectorAll(".sectionToggle")) {
|
||||||
|
input.onclick = () => {
|
||||||
|
for(const el of document.querySelectorAll(".sectionToggle")) {
|
||||||
|
if(el != input) el.checked = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Pick a game!</h1>
|
<h1>Pick a game!</h1>
|
||||||
|
|||||||
Reference in New Issue
Block a user