Skip to content

Commit

Permalink
Deploying to gh-pages from @ f1b0b97 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Aug 31, 2024
1 parent f34df39 commit bed6dda
Showing 1 changed file with 29 additions and 25 deletions.
54 changes: 29 additions & 25 deletions prime-vault.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,41 +152,45 @@ <h3>Vaulted</h3>
{
div.innerHTML = "";
}
let names = [];
for (const [item, state] of Object.entries(items))
{
let name = dict[ExportWarframes[item]?.name] ?? dict[ExportWeapons[item]?.name] ?? dict[ExportSentinels[item]?.name];
const name = dict[ExportWarframes[item]?.name] ?? dict[ExportWeapons[item]?.name] ?? dict[ExportSentinels[item]?.name];
if (name)
{
name = name.split("<ARCHWING>").join("");

const li = document.createElement("li");
li.textContent = name + " ";
{
const a = document.createElement("a");
a.textContent = "(Wiki)";
a.href = "https://warframe.fandom.com/wiki/" + encodeURIComponent(name);
a.target = "_blank";
li.appendChild(a);
}
{
const span = document.createElement("span");
span.textContent = " ";
li.appendChild(span);
}
{
const a = document.createElement("a");
a.textContent = "(omni.wf)";
a.href = "/#q=" + encodeURIComponent(name);
a.target = "_blank";
li.appendChild(a);
}
state_to_elm[state].appendChild(li);
names.push([ name.split("<ARCHWING>").join("").trim(), state ]);
}
else
{
console.info("discarding", item);
}
}
names = names.sort((a, b) => a[0].localeCompare(b[0]));
for (const [name, state] of names)
{
const li = document.createElement("li");
li.textContent = name + " ";
{
const a = document.createElement("a");
a.textContent = "(Wiki)";
a.href = "https://warframe.fandom.com/wiki/" + encodeURIComponent(name);
a.target = "_blank";
li.appendChild(a);
}
{
const span = document.createElement("span");
span.textContent = " ";
li.appendChild(span);
}
{
const a = document.createElement("a");
a.textContent = "(omni.wf)";
a.href = "/#q=" + encodeURIComponent(name);
a.target = "_blank";
li.appendChild(a);
}
state_to_elm[state].appendChild(li);
}
}
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
Expand Down

0 comments on commit bed6dda

Please sign in to comment.