Widget:Guides/PlatformSwitcher: Difference between revisions
No edit summary |
No edit summary |
||
| Line 23: | Line 23: | ||
<script type="module" defer> | <script type="module" defer> | ||
const containers = document.querySelectorAll('.platform-specific'); | const containers = document.querySelectorAll('.platform-specific'); | ||
switch_thing('windows'); | |||
function | function switch_thing(value) { | ||
for (const x of containers) { | for (const x of containers) { | ||
x.style.display = "none" | x.style.display = "none" | ||