Skip to content

Commit

Permalink
progress-table: Turn into an allow list
Browse files Browse the repository at this point in the history
  • Loading branch information
NightScript370 authored and lifehackerhansol committed Apr 1, 2024
1 parent a84ff8c commit b28118f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
20 changes: 8 additions & 12 deletions assets/js/_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,18 +179,7 @@ $(document).ready(function() {
/* hacks-guide change end */

/* hacks-guide change start: add progress table */
var sidebar_shown = true;
var sidebar_hidden_pages = ["404", "bootmiirecover", "bricks", "cios", "donations", "dump-games", "dump-wads", "faq",
"gcbackupmanager", "gcsaves", "hackmii", "homebrew-dolphin", "modmii", "nintendont",
"priiloader-usage", "recovery-mode", "riiconnect24", "riivolution", "site-navigation",
"syscheck", "themes-vwii", "themes", "update", "usb-loaders", "wiibackupmanager",
"wiiconnect24", "wiigsc", "wiimmfi", "yawmme"];

for(var i = 0; i < sidebar_hidden_pages.length; i++){
if(window.location.href.indexOf(sidebar_hidden_pages[i]) > -1) {
sidebar_shown = false;
}
}
var sidebar_shown = false;

var devices = {
"hbc": "0",
Expand Down Expand Up @@ -219,15 +208,22 @@ $(document).ready(function() {
for(var device in devices){
if(window.location.href.indexOf("/" + device) > -1) {
localStorage.setItem('device', devices[device]);
sidebar_shown = true;
}
}

for(var method in methods){
if(window.location.href.indexOf("/" + method) > -1) {
localStorage.setItem('method', methods[method]);
sidebar_shown = true;
}
}

if(window.location.href.indexOf("/" + "get-started") > -1) {
localStorage.setItem('method', methods[method]);
sidebar_shown = true;
}

var device, method;
if(!(method = localStorage.getItem('method'))){
sidebar_shown = false;
Expand Down
2 changes: 1 addition & 1 deletion assets/js/main.min.js

Large diffs are not rendered by default.

0 comments on commit b28118f

Please sign in to comment.