From 347eb4040d2e052900e217669ae2122b95c1cf71 Mon Sep 17 00:00:00 2001 From: lifehackerhansol Date: Tue, 21 Mar 2023 17:15:50 -0700 Subject: [PATCH] Move version selector to its own include This time, it's an HTML include, and not a relative include. We can make use of the existing captures done for invalidVersion and methodUnavailable by passing it to the include flag. Move all HTML tags into the new HTML include so that it doesn't show on Crowdin, this way translations aren't broken every time something in the HTML tags change. One change will fix all of it. Also, do not show the version selector if JS is not supported on the browser. This can be done with a simple JS to display the script automatically, which will by definition not show the selector when JS isn't enabled as the JS to turn it on can't run. --- _includes/consoleVersionSelect.html | 108 ++++++++++++++++++++++++++++ _pages/en_US/get-started.txt | 103 +------------------------- 2 files changed, 109 insertions(+), 102 deletions(-) create mode 100644 _includes/consoleVersionSelect.html diff --git a/_includes/consoleVersionSelect.html b/_includes/consoleVersionSelect.html new file mode 100644 index 0000000000..351e1dff3e --- /dev/null +++ b/_includes/consoleVersionSelect.html @@ -0,0 +1,108 @@ + + + + + + + + + + diff --git a/_pages/en_US/get-started.txt b/_pages/en_US/get-started.txt index 862a4628aa..6b86afa5d6 100644 --- a/_pages/en_US/get-started.txt +++ b/_pages/en_US/get-started.txt @@ -24,103 +24,6 @@ If you see an unusual menu, STOP - you already have custom firmware! Continue fr #### Section III - Select a Method To find the correct method for your device, please enter the system version you found in Section II. -
-
-..- -
- -
{% capture invalidVersion %} This doesn't seem to be a valid system version. @@ -130,9 +33,7 @@ This doesn't seem to be a valid system version. You currently cannot hack your 3DS on this version using the main methods. If you want to hack your console, you have to use ntrboot. {% endcapture %} - - - +{% include consoleVersionSelect.html invalidVersion=invalidVersion methodUnavailable=methodUnavailable %} --- #### Alternate Methods @@ -144,5 +45,3 @@ Otherwise, methods that work on all versions are available, but require addition 1. [kartdlphax](installing-boot9strap-(kartdlphax)) - requires a second hacked 3DS and a copy of Mario Kart 7 1. [ntrboot](ntrboot) - requires compatible DS flashcart 1. [Installing boot9strap (Hardmod)](installing-boot9strap-(hardmod)) - requires soldering - -