From bf29018a608d930c6cc4cb5d3a0c7c0c1a4d7fae Mon Sep 17 00:00:00 2001 From: Incompleteusern <58920010+Incompleteusern@users.noreply.github.com> Date: Mon, 30 Jan 2023 19:55:25 -0700 Subject: [PATCH] Searching Changes (#248) * fix sort keys not clearing * ingredient searching * add dura and charges * modify comment * fix effectiveness formula) * remove comment --- css/{items.css => search.css} | 46 ++-- ingredients/index.html | 174 +++++++++++++++ ingredients_adv/index.html | 87 ++++++++ items/index.html | 12 +- items_adv/index.html | 1 + js/build_utils.js | 2 + js/craft.js | 1 - js/ingredients.js | 163 ++++++++++++++ js/ingredients_adv.js | 54 +++++ js/items.js | 377 ++------------------------------ js/items_adv.js | 383 ++------------------------------- js/query.js | 168 ++++++++++++++- js/search.js | 365 +++++++++++++++++++++++++++++++ js/search_adv.js | 393 ++++++++++++++++++++++++++++++++++ 14 files changed, 1476 insertions(+), 750 deletions(-) rename css/{items.css => search.css} (54%) create mode 100644 ingredients/index.html create mode 100644 ingredients_adv/index.html create mode 100644 js/ingredients.js create mode 100644 js/ingredients_adv.js create mode 100644 js/search.js create mode 100644 js/search_adv.js diff --git a/css/items.css b/css/search.css similarity index 54% rename from css/items.css rename to css/search.css index 862265c..1a8c720 100644 --- a/css/items.css +++ b/css/search.css @@ -16,41 +16,49 @@ /* rarity selectors */ -#rarity-box { +#tier-box { cursor: pointer; width: 58.33%; - text-align: center; } -#rarity-box > div { +#tier-box > div { width: calc(100% / 7); aspect-ratio: 1/1; position: relative; display: inline-block; } -#rarity-box > div > b { +#tier-box > div > b { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } -#rarity-box > div.rarity-selected > b { +#tier-box > div.tier-selected > b { color: black; } -#rarity-normal { color: #FFFFFF; } -#rarity-normal.rarity-selected { background-color: #FFFFFF; } -#rarity-unique { color: #FFFF55; } -#rarity-unique.rarity-selected { background-color: #FFFF55; } -#rarity-set { color: #55FF55; } -#rarity-set.rarity-selected { background-color: #55FF55; } -#rarity-rare { color: #FF55FF; } -#rarity-rare.rarity-selected { background-color: #FF55FF; } -#rarity-legendary { color: #55FFFF; } -#rarity-legendary.rarity-selected { background-color: #55FFFF; } -#rarity-fabled { color: #FF5555; } -#rarity-fabled.rarity-selected { background-color: #FF5555; } -#rarity-mythic { color: #AA00AA; } -#rarity-mythic.rarity-selected { background-color: #AA00AA; } +#tier-normal { color: #FFFFFF; } +#tier-normal.tier-selected { background-color: #FFFFFF; } +#tier-unique { color: #FFFF55; } +#tier-unique.tier-selected { background-color: #FFFF55; } +#tier-set { color: #55FF55; } +#tier-set.tier-selected { background-color: #55FF55; } +#tier-rare { color: #FF55FF; } +#tier-rare.tier-selected { background-color: #FF55FF; } +#tier-legendary { color: #55FFFF; } +#tier-legendary.tier-selected { background-color: #55FFFF; } +#tier-fabled { color: #FF5555; } +#tier-fabled.tier-selected { background-color: #FF5555; } +#tier-mythic { color: #AA00AA; } +#tier-mythic.tier-selected { background-color: #AA00AA; } + +#tier-zero { color: #FFFFFF; } +#tier-zero.tier-selected { background-color: #FFFFFF; } +#tier-one { color: #FFFFBB; } +#tier-one.tier-selected { background-color: #FFFFBB; } +#tier-two { color: #FFFF88; } +#tier-two.tier-selected { background-color: #FFFF88; } +#tier-three { color: #FFFF55; } +#tier-three.tier-selected { background-color: #FFFF55; } /* filters */ .filter-row { diff --git a/ingredients/index.html b/ingredients/index.html new file mode 100644 index 0000000..e9ebec9 --- /dev/null +++ b/ingredients/index.html @@ -0,0 +1,174 @@ + + + + WynnAtlas + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
Name:
+ +

+
+
+
+
+
Types: All   None
+
+

Armouring

+

Tailoring

+

Weaponsmithing

+

Woodworking

+

Jeweling

+

Cooking

+

Alchemism

+

Scribing

+
+

+
+
+
+
+
Stars: All   None
+
+ +
0
1
2
3
+
+

+
+
+
+
+
+
Filters:
+
+
+ + Add Filter +
+
+
+
+
+
Excluded Filters:
+
+
+ + Add Excluded Filter +
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+ +
+
+
+ + + + + + + + + + + + + + + + diff --git a/ingredients_adv/index.html b/ingredients_adv/index.html new file mode 100644 index 0000000..20388df --- /dev/null +++ b/ingredients_adv/index.html @@ -0,0 +1,87 @@ + + + + WynnAtlas + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+
+
+
Filter By:
+ +
+
+
+
+
Sort By:
+ +
+
+
+
+
+
+ +
+
+
+ +
+
+ + + + + + + + + + + + + + + + diff --git a/items/index.html b/items/index.html index 9a713b9..945e176 100644 --- a/items/index.html +++ b/items/index.html @@ -18,7 +18,7 @@ - +