Skip to content

Commit

Permalink
Merge pull request #2091 from Kaiserdragon2/Site-Improvements
Browse files Browse the repository at this point in the history
Fix Sorting arrow move request.txt
  • Loading branch information
Kaiserdragon2 authored Apr 12, 2024
2 parents d1e30fb + 6d1c91c commit 04badd3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
File renamed without changes.
File renamed without changes.
12 changes: 3 additions & 9 deletions docs/js/requests.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
//Edit the following variables
var RepoOwner = "Arcticons-Team";
var RepoName = "Arcticons";
var RepoBranch = "main";


// Array of Link Images
const imageNames = ['img/requests/google-play-store.svg', 'img/requests/f-droid.svg', 'img/requests/izzyondroid.svg', 'img/requests/galaxystore.svg', 'img/requests/search-globe.svg'];
var appEntriesDataGlobal = []; // Store the original data for sorting
Expand All @@ -12,7 +6,7 @@ const batchSize = 50; // Number of rows to load at a time
let startIndex = 0; // Start index for lazy loading
let appEntriesData = []; // Store the original data for sorting
// Global variables to track sorting column and direction
let sortingColumnIndex = 2;
let sortingColumnIndex = 3;
let sortingDirection = 'desc';

// Debounce function for search input
Expand All @@ -29,7 +23,7 @@ const debounce = (func, delay) => {
};

// Fetch and process data
fetch(`https://raw.githubusercontent.com/${RepoOwner}/${RepoName}/${RepoBranch}/generated/requests.txt`)
fetch(`assets/requests.txt`)
.then(response => {
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
Expand Down Expand Up @@ -111,7 +105,7 @@ const updatableButton = document.getElementById("updatable-button");
// Add an event listener to the button
updatableButton.addEventListener("click", function() {
// Define the URL to redirect to
const updatableURL = `https://${RepoOwner}.github.io/${RepoName}/updatable.html`;
const updatableURL = `updatable.html`;
// Redirect to the specified URL
window.location.href = updatableURL;
});
Expand Down
10 changes: 2 additions & 8 deletions docs/js/updatable.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
//Edit the following variables
var RepoOwner = "Arcticons-Team";
var RepoName = "Arcticons";
var RepoBranch = "main";


var appEntriesDataGlobal = []; // Store the original data for sorting
// Lazy loading and virtualization
const batchSize = 50; // Number of rows to load at a time
Expand All @@ -27,7 +21,7 @@ const debounce = (func, delay) => {
};

// Fetch and process data
fetch(`https://raw.githubusercontent.com/${RepoOwner}/${RepoName}/${RepoBranch}/generated/updatable.txt`)
fetch(`assets/updatable.txt`)
.then(response => {
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
Expand Down Expand Up @@ -207,7 +201,7 @@ const updatableButton = document.getElementById("updatable-button");
// Add an event listener to the button
updatableButton.addEventListener("click", function () {
// Define the URL to redirect to
const updatableURL = `https://${RepoOwner}.github.io/${RepoName}/requests.html`;
const updatableURL = `requests.html`;
// Redirect to the specified URL
window.location.href = updatableURL;
});
Expand Down

0 comments on commit 04badd3

Please sign in to comment.