Widget:Guides/PlatformSwitcher: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 20: | Line 20: | ||
</fieldset> | </fieldset> | ||
</form> | </form> | ||
<script type="module"> | |||
const containers = document.querySelectorAll('.platform-specific'); | |||
function hide_everything() { | |||
containers.forEach(x => x.style.display = "none"; | |||
} | |||
</script> |
Revision as of 23:25, 6 December 2024
<form>
<fieldset> <legend>Select your operating system:</legend>
<label> <input type="radio" name="platform" value="windows" checked /> Windows </label>
<label> <input type="radio" name="platform" value="macos" /> macOS </label>
<label> <input type="radio" name="platform" value="linux" /> Linux </label>
<label> <input type="radio" name="platform" value="haiku" /> Haiku </label> </fieldset>
</form>
<script type="module"> const containers = document.querySelectorAll('.platform-specific');
function hide_everything() {
containers.forEach(x => x.style.display = "none";
} </script>