cios.md: add back buttons script

the buttons at the bottom weren't broken
This commit is contained in:
Naim2000 2023-07-19 14:11:27 -05:00
parent 31327f6f96
commit 2ca70b1c96

View file

@ -148,3 +148,28 @@ We have many other tutorials that you might like.
You can now use homebrew such as [USB Loader GX](usbloadergx) and [WiiFlow](wiiflow).
{: .notice--info}
<script>
let tabcontent = document.getElementsByClassName("blanktabcontent");
let tablinks = document.getElementsByClassName("tablinks");
function openTab(evt, tabName) {
let element;
for (element of tabcontent) {
element.style.display = "none";
}
for (element of tablinks) {
element.className = element.className.replace("btn--primary", "btn--info");
if (!element.className.includes('btn--info'))
element.className += " btn--info";
}
document.getElementById(tabName).style.display = "block";
evt.currentTarget.className = evt.currentTarget.className.replace("btn--info", "btn--primary");
}
// Get the element with id="defaultOpen" and click on it
document.getElementById("defaultOpen").click();
</script>