Point Forgejo link to forgejo repos

This commit is contained in:
Michael 2025-07-08 16:36:00 -04:00
parent 2c1146d7c7
commit 86a29322b9

View file

@ -28,8 +28,8 @@
> >
</form> </form>
<div id="nav_right_holder" class="nav_right_holder"> <div id="nav_right_holder" class="nav_right_holder">
<a href="https://git.booser.tech" id="button1" class="nav_right_item"> <a href="https://git.booser.tech/explore/repos" id="button1" class="nav_right_item">
<img src="../img/gitlab.svg" alt="Checkout my Gitlab!"> <img src="../img/gitlab.svg" alt="Checkout my Forgejo!">
</a> </a>
<button id="button2"class="nav_right_item"> <button id="button2"class="nav_right_item">
@ -67,7 +67,7 @@
<script> <script>
// Grabs data from json //Load Card DB
async function fetchData() { async function fetchData() {
try { try {
const response = await fetch("../scripts/cards.json"); const response = await fetch("../scripts/cards.json");
@ -79,6 +79,7 @@ async function fetchData() {
} }
} }
// Class that Searches DB
class Looper { class Looper {
constructor() { constructor() {
this.sentinal = false; this.sentinal = false;
@ -109,7 +110,7 @@ class Looper {
const resultsDiv = document.getElementById("card_container"); const resultsDiv = document.getElementById("card_container");
resultsDiv.innerHTML = ""; resultsDiv.innerHTML = "";
// Loop through the data and show matching items //Search List of Cards
let matchesFound = false; let matchesFound = false;
for (let card of this.data.cards) { for (let card of this.data.cards) {
let matches = false; let matches = false;
@ -164,5 +165,16 @@ document.getElementById("search_field").addEventListener("keydown", function (ev
} }
}); });
function displayCard(card){
const templateCard = document.getElementByID("card_template");
const outputCard = templateCard.content.cloneNode(true);
const outputDiv = document.getElementByID("card_container");
}
function clearCards(){
const resultsDiv = document.getElementById("card_container");
resultsDiv.innerHTML = "";
}
</script> </script>