From c1e64bf0ccdaeb1b676f1a53967b0d0448e1ca44 Mon Sep 17 00:00:00 2001 From: alyx Date: Thu, 2 Jun 2022 00:26:49 +0000 Subject: basic PWA things, fixed the searcher again --- searcher/index.html | 4 +++- searcher/script.js | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'searcher') 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 @@ CV2 Chip Searcher + + @@ -88,7 +90,7 @@
- +

Maintained by @winrg/@✨Aleteoryx, Keeper of Names✨#1027

? 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"); -- cgit v1.2.3-70-g09d2