Skip to content

Commit

Permalink
old search stuff and new legal stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
NiceygyLive committed Jan 29, 2024
1 parent 8906bed commit 8a1052a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 24 deletions.
29 changes: 29 additions & 0 deletions downloads/pages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"alien-totems.html": "Alien's Totems",
"alienbot.html": "Alienbot",
"aliens-ui-pack.html": "Aliens UI Pack",
"armour-trim-hider.html": "Armour Trim Hider",
"behaviour-packs.html": "Behaviour Packs",
"better-netherite.html": "Better Netherite",
"clearchat.html": "Clear Chat",
"craftable-chainmail-armour.html": "Craftable Chainmail Armour",
"craftable-rooted-dirt.html": "Craftable Rooted Dirt",
"custom-fog.html": "Custom Fog",
"greenscreen.html": "Greenscreen",
"helmet-hider.html": "Helmet Hider",
"nicer-rain.html": "Nicer Rain",
"no-end.html": "No End",
"no-nether.html": "No Nether",
"one-player-sleep.html": "One Player Sleep",
"pack-converter.html": "Pack Converter",
"pano-selector.html": "Pano Selector",
"piglin-to-pigman.html": "Piglin to Pigman",
"potion-bubble-hider.html": "Potion Bubble Hider",
"potion-hud-hider.html": "Potion HUD Hider",
"red-beacons.html": "Red Beacons",
"skinpack.html": "Skinpack",
"toggleable-coordinates.html": "Toggleable Coordinates",
"updated-1.8-textures.html": "Updated 1.8 Textures",
"wallpaper-pack.html": "Wallpaper Pack",
"xmas-chests.html": "Xmas Chests"
}
27 changes: 3 additions & 24 deletions js/search.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
const downloads = Array.from(document.querySelectorAll(".hide"));
const input = document.querySelector(".searchBar");

const array = downloads.map((element) => {
return {
title: element.dataset.title,
description: element.dataset.desc,
element,
};
});

console.log(array);

input.addEventListener("input", (e) => {
const query =
e.target.value.toLowerCase() || "UDHUEHUYWSGHCFUSDGJAGFRERGDGHDFJUYH"; // dont question
array.map((element) => {
const matches =
element.title.toLowerCase().includes(query) ||
element.description.toLowerCase().includes(query);

element.element.classList.toggle("hide", !matches);
});
});
const searchRequest = document.querySelector(".searchBar");
const downloads = fetch("../downloads/pages.json");
const pages = downloads.then(response => response.json());
9 changes: 9 additions & 0 deletions legal/privacy.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ <h3>Privacy Policy</h3><span class="clear spacer_responsive_hide_mobile "
<p>For more info please email <a
href="mailto:[email protected]">[email protected]</a></p>
</div>
<h3>Analytics</h3><span class="clear spacer_responsive_hide_mobile "
style="height:25px;display:block;"></span>
<p>We use custom built Cloudflare Workers (see docs.cloudflare.com) to track usage
numbers on this site. This data is anonmyous, and <b>cannot</b> be used to track
you. Every time you load a page, or open a download link, we add one to that page's count.
The code is avalible on the UFO Studios github. </p>
<p>For more info please email <a
href="mailto:[email protected]">[email protected]</a></p>
</div>
</div>
</section>
<div class="about">
Expand Down

0 comments on commit 8a1052a

Please sign in to comment.