diff --git a/builder.js b/builder.js
index ff1990f..a9742ee 100644
--- a/builder.js
+++ b/builder.js
@@ -3,7 +3,7 @@ const url_tag = location.hash.slice(1);
// console.log(url_tag);
-const BUILD_VERSION = "7.0.7";
+const BUILD_VERSION = "7.0.8";
function setTitle() {
let text;
diff --git a/loadheader.js b/loadheader.js
index 46924d6..49a4539 100644
--- a/loadheader.js
+++ b/loadheader.js
@@ -32,7 +32,7 @@
*/
-let header_icon_map = new Map([
+let header_icon_map_left = new Map([
["index",["builder","WynnBuilder"]],
["crafter",["crafter","WynnCrafter"]],
["items",["searcher","WynnAtlas"]],
@@ -45,7 +45,7 @@ function setHeaders() {
let headerleft = document.getElementById("headerleft");
let headerright = document.getElementById("headerright");
- for (const [name,data] of header_icon_map) {
+ for (const [name,data] of header_icon_map_left) {
let a_elem = document.createElement("a");
let img = document.createElement("img");
let div = document.createElement("div");
@@ -72,6 +72,30 @@ function setHeaders() {
toggle_icon_button.onclick = function() {toggleIcons()};
toggle_icon_button.textContent = "Use Old Icons";
headerright.appendChild(toggle_icon_button);
+
+ let reload_div = document.createElement("div");
+ let reload_button = document.createElement("button");
+ reload_button.classList.add("button");
+ reload_button.style.left = '0px';
+ reload_button.style.top = '0px';
+ reload_button.style.width = '48px';
+ reload_button.style.height = '48px';
+ reload_button.style.padding = '0px';
+ reload_button.onclick = hardReload;
+ let reload_img = document.createElement("img");
+ reload_img.src = "/media/icons/new/reload.png"
+ reload_img.style.width = "100%";
+ let reload_tooltip;
+ reload_tooltip = createTooltip(reload_tooltip, "p", "Reload", reload_button, ["center","reloadtooltip"]);
+ //reload_tooltip.style.position = "relative";
+ reload_tooltip.style.left = "-50%";
+ reload_tooltip.style.top = "70%";
+
+ reload_div.appendChild(reload_button);
+ reload_button.appendChild(reload_img);
+ headerright.appendChild(reload_div);
+
+
console.log("Set Header");
}
diff --git a/media/icons/new/reload.png b/media/icons/new/reload.png
new file mode 100644
index 0000000..356c19e
Binary files /dev/null and b/media/icons/new/reload.png differ
diff --git a/media/icons/old/reload.png b/media/icons/old/reload.png
new file mode 100644
index 0000000..356c19e
Binary files /dev/null and b/media/icons/old/reload.png differ
diff --git a/utils.js b/utils.js
index cb97656..04fda43 100644
--- a/utils.js
+++ b/utils.js
@@ -362,3 +362,14 @@ function toggleButton(button_id) {
}
}
}
+
+/** A utility function that reloads the page forcefully.
+ *
+ */
+async function hardReload() {
+ //https://gist.github.com/rmehner/b9a41d9f659c9b1c3340
+ const dbs = await window.indexedDB.databases();
+ await dbs.forEach(db => { window.indexedDB.deleteDatabase(db.name) });
+
+ location.reload();
+}
\ No newline at end of file
diff --git a/wynnfo/index.html b/wynnfo/index.html
index 2fddca4..49671e8 100644
--- a/wynnfo/index.html
+++ b/wynnfo/index.html
@@ -29,7 +29,8 @@
+
-