collectibles tab large section

This commit is contained in:
ReznoRMichael 2022-01-14 23:38:45 +01:00
parent 64daf2f576
commit 3b840c3294
3 changed files with 46 additions and 13 deletions

View file

@ -8661,26 +8661,43 @@ function GenerateInnerHTML(db) {
for (var section in sections) {
textFill = "";
/* ############################# Tab Switch buttons and <div>s ################################################################### */
/* ############################# Tab Switch buttons and Large Section <div>s for switching ############################## */
/* Important: Ending Tab </div>s are at "End the Tab divs" */
switch (section) {
/* Main % */
case "bosses":
textFill += ["<div class=\"tab-switch-buttons\">", "<button id=\"button-switch-main\" name=\"main\" class=\"button tab-switch\" type=\"button\">Main %</button>", "<button id=\"button-switch-essential\" name=\"essential\" class=\"button tab-switch\" type=\"button\">Essentials %</button>", "<button id=\"button-switch-journal\" name=\"journal\" class=\"button tab-switch\" type=\"button\">Journal</button>", "<button id=\"button-switch-collectibles\" name=\"collectibles\" class=\"button tab-switch\" type=\"button\">Collectibles</button>", "<button id=\"button-switch-secrets\" name=\"secrets\" class=\"button tab-switch\" type=\"button\">Secrets</button>", "<button id=\"button-switch-godhome\" name=\"godhome\" class=\"button tab-switch\" type=\"button\">Godmaster</button>", "<button id=\"button-switch-statistics\" name=\"statistics\" class=\"button tab-switch\" type=\"button\">Statistics</button>", "</div>"].join("\n");
textFill += "<div id=\"tab-main\" class=\"large-section\">";
break;
/* Essentials % */
case "essential":
textFill += "<div id=\"tab-essential\" class=\"large-section\">";
break;
/* Journal */
case "huntersJournal":
textFill += "<div id=\"tab-journal\" class=\"large-section\">";
break;
/* Collectibles */
case "charmNotches":
textFill += "<div id=\"tab-collectibles\" class=\"large-section\">";
break;
/* Statistics */
case "statistics":
textFill += "<div id=\"tab-statistics\" class=\"large-section\">";
break;
/* Godmaster */
case "godhomeStatistics":
textFill += "<div id=\"tab-godhome\" class=\"large-section\">";
break;
@ -9030,16 +9047,18 @@ function GenerateInnerHTML(db) {
switch (section) {
/* ending the tabs */
case "godmaster": // main
case "godmaster": // Main
case "achievements": // essentials
case "achievements": // Essentials
case "huntersJournalOptional": // journal
case "huntersJournalOptional": // Journal
case "statistics": // stats
case "charmNotches": // Collectibles
case "statistics": // Stats
case "hallOfGods":
// godmaster
// Godmaster
finalHTMLFill += "</div>";
break;
}

File diff suppressed because one or more lines are too long

View file

@ -232,10 +232,12 @@ function GenerateInnerHTML(db) {
textFill = "";
/* ############################# Tab Switch buttons and <div>s ################################################################### */
/* ############################# Tab Switch buttons and Large Section <div>s for switching ############################## */
/* Important: Ending Tab </div>s are at "End the Tab divs" */
switch (section) {
/* Main % */
case "bosses":
textFill += [
@ -254,24 +256,35 @@ function GenerateInnerHTML(db) {
break;
/* Essentials % */
case "essential":
textFill += `<div id="tab-essential" class="large-section">`;
break;
/* Journal */
case "huntersJournal":
textFill += `<div id="tab-journal" class="large-section">`;
break;
/* Collectibles */
case "charmNotches":
textFill += `<div id="tab-collectibles" class="large-section">`;
break;
/* Statistics */
case "statistics":
textFill += `<div id="tab-statistics" class="large-section">`;
break;
/* Godmaster */
case "godhomeStatistics":
textFill += `<div id="tab-godhome" class="large-section">`;
@ -646,11 +659,12 @@ function GenerateInnerHTML(db) {
switch (section) {
/* ending the tabs */
case "godmaster": // main
case "achievements": // essentials
case "huntersJournalOptional": // journal
case "statistics": // stats
case "hallOfGods": // godmaster
case "godmaster": // Main
case "achievements": // Essentials
case "huntersJournalOptional": // Journal
case "charmNotches": // Collectibles
case "statistics": // Stats
case "hallOfGods": // Godmaster
finalHTMLFill += `</div>`;