diff --git a/builder/index.html b/builder/index.html index d65f59f..9c72506 100644 --- a/builder/index.html +++ b/builder/index.html @@ -1,2 +1,2 @@ - WynnBuilder
Join the discord today to suggest new features, submit bug reports, and hangout/talk to devs!

Equipments

Ability Tree

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Level:
Assign: 0
Original: 0
Assign: 0
Original: 0
Assign: 0
Original: 0
Assign: 0
Original: 0
Assign: 0
Original: 0
Active boosts
Earth
Thunder
Water
Fire
Air
Curse (Active)
Concentration (Passive)
Detailed
Summary
Input a weapon to see abilities!
+ WynnBuilder
Join the discord today to suggest new features, submit bug reports, and hangout/talk to devs!

Equipments

Ability Tree

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Level:
Assign: 0
Original: 0
Assign: 0
Original: 0
Assign: 0
Original: 0
Assign: 0
Original: 0
Assign: 0
Original: 0
Active boosts
Earth
Thunder
Water
Fire
Air
Curse (Active)
Concentration (Passive)
Detailed
Summary
Input a weapon to see abilities!
diff --git a/builder/index_full.html b/builder/index_full.html index 5fa94d0..a333e50 100644 --- a/builder/index_full.html +++ b/builder/index_full.html @@ -36,7 +36,50 @@
WB DiscordWB Discord -
+ +
Join the discord today to suggest new features, submit bug reports, and hangout/talk to devs!
diff --git a/crafter/index.html b/crafter/index.html index 29b3d84..d59ba03 100644 --- a/crafter/index.html +++ b/crafter/index.html @@ -31,7 +31,50 @@
WB DiscordWB Discord
-
+ +
diff --git a/custom/index.html b/custom/index.html index 1d425e7..8bc453b 100644 --- a/custom/index.html +++ b/custom/index.html @@ -33,7 +33,50 @@
WB DiscordWB Discord
-
+ +
diff --git a/items/index.html b/items/index.html index 183b479..0cd8af9 100644 --- a/items/index.html +++ b/items/index.html @@ -31,7 +31,50 @@
WB DiscordWB Discord
-
+ +
diff --git a/js/builder.js b/js/builder.js index 6293e4d..d343db9 100644 --- a/js/builder.js +++ b/js/builder.js @@ -130,26 +130,6 @@ function toggleButton(button_id) { } } -// Toggles display of a certain element, given the ID. -function toggle_tab(tab) { - if (document.querySelector("#"+tab).style.display == "none") { - document.querySelector("#"+tab).style.display = ""; - } else { - document.querySelector("#"+tab).style.display = "none"; - } -} - -// Toggle display of a certain tab, in a group of tabs, given the target tab ID, and a list of associated tabs. -// Also sets visual display of an element with ID of target + "-btn" to selected. -function show_tab(target, tabs) { - //hide all tabs, then show the tab of the div clicked and highlight the correct button - for (const i in tabs) { - document.querySelector("#" + tabs[i]).style.display = "none"; - document.getElementById(tabs[i] + "-btn").classList.remove("selected-btn"); - } - document.querySelector("#" + target).style.display = ""; - document.getElementById(target + "-btn").classList.add("selected-btn"); -} // autocomplete initialize function init_autocomplete() { diff --git a/js/utils.js b/js/utils.js index a73f37f..66094f0 100644 --- a/js/utils.js +++ b/js/utils.js @@ -961,3 +961,40 @@ function make_SCC_graph(root_node, nodes) { } return sccs; } + + +// Toggles display of a certain element, given the ID. +function toggle_tab(tab) { + let elem = document.getElementById(tab); + if (elem.style.display == "none") { + elem.style.display = ""; + } else { + elem.style.display = "none"; + } +} + +// Toggle display of a certain tab, in a group of tabs, given the target tab ID, and a list of associated tabs. +// Also sets visual display of an element with ID of target + "-btn" to selected. +function show_tab(target, tabs) { + //hide all tabs, then show the tab of the div clicked and highlight the correct button + for (const i in tabs) { + document.getElementById(tabs[i]).style.display = "none"; + document.getElementById(tabs[i] + "-btn").classList.remove("selected-btn"); + } + document.getElementById(target).style.display = ""; + document.getElementById(target + "-btn").classList.add("selected-btn"); +} + +// mobile navbar appearance control +let scrollPos = 0 +if (screen.width < 992) { + document.addEventListener('scroll', (e) => { + if (document.documentElement.scrollTop - scrollPos > 20) { + document.getElementById("mobile-navbar").style.display = "none"; + document.getElementById("mobile-navbar-dropdown").style.display = "none"; + } else if (document.documentElement.scrollTop - scrollPos < -50 || scrollPos < 70) { + document.getElementById("mobile-navbar").style.display = ""; + } + scrollPos = document.documentElement.scrollTop; + }); +} \ No newline at end of file diff --git a/map/index.html b/map/index.html index bf82637..564ffa3 100644 --- a/map/index.html +++ b/map/index.html @@ -45,8 +45,51 @@
WB DiscordWB Discord
+ -
+
diff --git a/wynnfo/index.html b/wynnfo/index.html index 9bd721e..850716d 100644 --- a/wynnfo/index.html +++ b/wynnfo/index.html @@ -31,7 +31,50 @@
WB DiscordWB Discord
-
+ +
Welcome!

This page is the main page for Wynnfo. Wynnfo is Wynnbuilder's page for all sorts of Wynncraft-related literature, including code documenation, game mechanic novels, and other literature! Browse at your leisure below.