-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
old search stuff and new legal stuff
- Loading branch information
NiceygyLive
committed
Jan 29, 2024
1 parent
8906bed
commit 8a1052a
Showing
3 changed files
with
41 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"> | ||
|