small change to No Req queries in WynnAtlas, crafted item title now more pleasant in display
This commit is contained in:
parent
f86c65545a
commit
2afd96dc61
3 changed files with 14 additions and 12 deletions
14
display.js
14
display.js
|
@ -577,12 +577,10 @@ function displayExpandedItem(item, parent_id){
|
|||
if (item.get("tier") !== " ") {
|
||||
p_elem.classList.add(item.get("tier"));
|
||||
}
|
||||
if (["potion", "scroll", "food"].includes(item.get("type"))){
|
||||
let b = document.createElement("b");
|
||||
b.textContent = "[" + item.get("charges") + "/" + item.get("charges") + "]";
|
||||
b.classList.add("spaceleft");
|
||||
p_elem.appendChild(b);
|
||||
}
|
||||
if(item.get("tier") === "Crafted") {
|
||||
p_elem.classList.add("smalltitle");
|
||||
p_elem.classList.remove("title");
|
||||
}
|
||||
p_elem.append(document.createElement("br"));
|
||||
let img = document.createElement("img");
|
||||
img.src = "/media/items/generic-" + item.get("type") + ".png";
|
||||
|
@ -773,6 +771,10 @@ function displayExpandedItem(item, parent_id){
|
|||
dura = item.get("duration");
|
||||
dura_elem.textContent = "Duration: "
|
||||
suffix = " sec."
|
||||
let charges = document.createElement("b");
|
||||
charges.textContent = "Charges: " + item.get("charges");
|
||||
charges.classList.add("spaceleft");
|
||||
active_elem.appendChild(charges);
|
||||
}
|
||||
dura_elem.textContent += dura[0]+"-"+dura[1] + suffix;
|
||||
active_elem.append(dura_elem);
|
||||
|
|
10
items.js
10
items.js
|
@ -96,11 +96,11 @@ const special_mappings = {
|
|||
"Sum (Mana Sustain)": new SumQuery(["mr", "ms"]),
|
||||
"Sum (Life Sustain)": new SumQuery(["hpr", "ls"]),
|
||||
"Sum (Health + Health Bonus)": new SumQuery(["hp", "hpBonus"]),
|
||||
"No Req Strength": new NegateQuery("strReq"),
|
||||
"No Req Dexterity": new NegateQuery("dexReq"),
|
||||
"No Req Intelligence": new NegateQuery("intReq"),
|
||||
"No Req Agility": new NegateQuery("agiReq"),
|
||||
"No Req Defense": new NegateQuery("defReq"),
|
||||
"No Strength Req": new NegateQuery("strReq"),
|
||||
"No Dexterity Req": new NegateQuery("dexReq"),
|
||||
"No Intelligence Req": new NegateQuery("intReq"),
|
||||
"No Agility Req": new NegateQuery("agiReq"),
|
||||
"No Defense Req": new NegateQuery("defReq"),
|
||||
};
|
||||
|
||||
let itemFilters = document.getElementById("filter-items");
|
||||
|
|
2
wide.css
2
wide.css
|
@ -28,7 +28,7 @@
|
|||
.container {
|
||||
padding: 2% 4% 4%;
|
||||
display: grid;
|
||||
grid-template-columns: 0.85fr 0.5fr 0.5fr;
|
||||
grid-template-columns: 0.85fr 0.45fr 0.55fr;
|
||||
grid-auto-columns: minmax(200px, auto);
|
||||
gap: 5px;
|
||||
grid-auto-rows: minmax(60px, auto);
|
||||
|
|
Loading…
Add table
Reference in a new issue