aboutsummaryrefslogtreecommitdiffstats
path: root/searcher
diff options
context:
space:
mode:
authoralyx <alyx@aleteoryx.me>2022-06-02 00:26:49 +0000
committerAleteoryx <alyx@aleteoryx.me>2022-06-02 00:26:49 +0000
commitc1e64bf0ccdaeb1b676f1a53967b0d0448e1ca44 (patch)
tree923762a989184bb6a13054d0ca668c85c53db94e /searcher
parentb1ec23e3579b1528e6e7eb12f5c9f89793b5390e (diff)
downloadRRCUtils-c1e64bf0ccdaeb1b676f1a53967b0d0448e1ca44.tar.gz
RRCUtils-c1e64bf0ccdaeb1b676f1a53967b0d0448e1ca44.tar.bz2
RRCUtils-c1e64bf0ccdaeb1b676f1a53967b0d0448e1ca44.zip
basic PWA things, fixed the searcher again
Diffstat (limited to 'searcher')
-rw-r--r--searcher/index.html4
-rw-r--r--searcher/script.js4
2 files changed, 5 insertions, 3 deletions
diff --git a/searcher/index.html b/searcher/index.html
index f6ae0a1..e02fabb 100644
--- a/searcher/index.html
+++ b/searcher/index.html
@@ -6,6 +6,8 @@
<meta name="description" content="A simple utility to help you work out what chips do.">
<meta name="author" content="@✨Aleteoryx✨#1027">
<title>CV2 Chip Searcher</title>
+ <link rel="manifest" href="/pwathings/manifest.json" />
+
<link crossorigin href="style.css" rel="stylesheet" type="text/css" />
<link crossorigin href="/lib/chips.css" rel="stylesheet" type="text/css" />
@@ -88,7 +90,7 @@
</div>
<hr/>
<div id="resultslist"></div>
- <p id="grapherlink">Also check out <a href="/grapher">The graphing tool</a>!</p>
+ <!--<p id="grapherlink">Also check out <a href="/grapher">The graphing tool</a>!</p>-->
<p>Maintained by <a href="https://rec.net/user/winrg" target="_blank" rel="noopener noreferrer">@winrg</a>/<code>@✨Aleteoryx, Keeper of Names✨#1027</code></p>
<details id="helpbox">
<summary>?</summary>
diff --git a/searcher/script.js b/searcher/script.js
index d80cd8f..e8ffec3 100644
--- a/searcher/script.js
+++ b/searcher/script.js
@@ -52,7 +52,7 @@ window.addEventListener("load", async (e) => {
const form = document.getElementById("form");
const suggestions = document.getElementById("paletteSearch");
- if (isNested) document.getElementById("grapherlink").remove();
+ //if (isNested) document.getElementById("grapherlink").remove();
if (localStorage.length) {
form.depr.checked = localStorage.getItem("depr");
@@ -156,7 +156,7 @@ window.addEventListener("load", async (e) => {
//console.log(content2.nodes)
content = content.map(el => {
- if ((form.depr.checked || el.DeprecationStage == 0) && (form.beta.checked || !el.IsBetaChip)) {
+ if ((form.depr.checked || el.DeprecationStage == "Active") && (form.beta.checked || !el.IsBetaChip)) {
const ret = newEl("details", "returnedchip");
if (el.IsBetaChip) ret.classList.add("betaChip");