No more index page

This commit is contained in:
NightScript 2020-07-22 12:44:28 -07:00 committed by GitHub
parent 6e5c82fd37
commit 3be6b228b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,13 +2,45 @@
title: "Dumping Wii/GameCube games" title: "Dumping Wii/GameCube games"
--- ---
Want to legally dump a GameCube or a Wii game and play it on your Wii? With this tutorial we will explain how to do it. Want to dump a GameCube or a Wii disk? There are two ways of doing so, depending on the tools you have available with you.
Please choose how you want to dump the disc. <button class="tablinks btn btn--large btn--primary" id="defaultOpen" onclick="openTab(event, 'cleanrip')">To the SD card/USB drive</button>
{: .notice--warning} <button class="tablinks btn btn--large btn--info" onclick="openTab(event, 'network')">To a PC over the network</button>
[I want to dump it to the SD card/USB device](cleanrip) {% capture cleanripInstructions %}
{: .notice--info} ### Cleanrip guide
{% include_relative cleanrip.md %}
{% endcapture %}
[I want to dump it directly to my PC over a network](dump-smb) {% capture networkInstructions %}
{: .notice--info} ### Dumping a game over a local network
{% include_relative dump-smb.md %}
{% endcapture %}
<div id="cleanrip" class="blanktabcontent">{{ cleanripInstructions | markdownify }}</div>
<div id="network" class="blanktabcontent">{{ networkInstructions | markdownify }}</div>
<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>