Skip to content

Commit

Permalink
Bugfixes;
Browse files Browse the repository at this point in the history
- Make links to tabs fully work due to tabbing changes
- Add another buggy spell.
  • Loading branch information
QartemisT committed Oct 15, 2023
1 parent 4f5aab7 commit 7e87721
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,10 @@ const load = () => {
Object.values(bosses[instanceID]).map(boss => {
bossXinstance[boss.ID] = instanceID;
elems.map(elem => {
const name = elem.parentElement.querySelector(".instance-" + instanceID).id;
count += 1;
elem.innerHTML += "\
<input class=\"boss-" + boss.ID + "\" id=\"boss-" + count + "-" + boss.ID + "\" type=\"radio\" name=\"instance-" + boss.JournalInstanceID + "\">\
<input class=\"boss-" + boss.ID + "\" id=\"boss-" + count + "-" + boss.ID + "\" type=\"radio\" name=\"" + name + "\">\
<label for=\"boss-" + count + "-" + boss.ID + "\" title=\"Boss ID: " + boss.ID + "\">" + boss.Name_lang + "</label>\
<div class=\"tabbed\">\
<div>" + (boss.Description_lang || "") + "</div>\
Expand Down Expand Up @@ -640,6 +641,7 @@ const load = () => {
25638, // Bugfix: Vault of the Incarnates -> Raszageth the Storm-Eater -> Primality Forces
27288, 27282, 27278, // Bugfix: Amirdrassil, the Dream's Hope -> Torments
28164, 28334, 28344, // Bugfix: Amirdrassil, the Dream's hope -> Gnarlroot -> Tainted Flora
28216, // Bugfix: Throne of the Tides -> Lady Naz'jar -> Elite Guard
].includes(data.ID)
)
) {
Expand Down Expand Up @@ -754,9 +756,10 @@ const load = () => {
});
contents += "</ul>";
elems.map(elem => {
const name = elem.parentElement.querySelector(".boss-" + encounterID).id;
count += 1;
elem.innerHTML += "\
<input id=\"boss-" + count + "-" + encounterID + "-" + storeType + "\" type=\"radio\" name=\"boss-" + encounterID + "\">\
<input id=\"boss-" + count + "-" + encounterID + "-" + storeType + "\" type=\"radio\" name=\"" + name + "\">\
<label for=\"boss-" + count + "-" + encounterID + "-" + storeType + "\">" + storeType + "</label>\
<div>\
" + contents + "\
Expand Down

0 comments on commit 7e87721

Please sign in to comment.