cios.md: add back buttons script
the buttons at the bottom weren't broken
This commit is contained in:
parent
31327f6f96
commit
2ca70b1c96
1 changed files with 25 additions and 0 deletions
|
@ -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).
|
You can now use homebrew such as [USB Loader GX](usbloadergx) and [WiiFlow](wiiflow).
|
||||||
{: .notice--info}
|
{: .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>
|
Loading…
Reference in a new issue