From 8cc75b292bdd48395891190cfd28b5ec11368a89 Mon Sep 17 00:00:00 2001 From: fynks <75840152+fynks@users.noreply.github.com> Date: Mon, 9 Mar 2026 12:00:32 +0500 Subject: [PATCH] refactor(index): remove unused search and comparison functionality for cleaner code --- dist/index.html | 79 ------------------------------------------------- 1 file changed, 79 deletions(-) diff --git a/dist/index.html b/dist/index.html index 88f2f55..c1fe202 100644 --- a/dist/index.html +++ b/dist/index.html @@ -2200,85 +2200,6 @@ } })(); - // Remaining initialization code - document.addEventListener('DOMContentLoaded', () => { - // Search functionality for file hosts - const hostSearchInput = document.getElementById('host-search-input'); - const clearHostSearch = document.getElementById('clear-host-search'); - - if (clearHostSearch) { - clearHostSearch.addEventListener('click', () => { - hostSearchInput.value = ''; - hostSearchInput.focus(); - // Trigger search clear event if needed - }); - } - - // Search functionality for adult hosts - const adultHostSearchInput = document.getElementById('adult-host-search-input'); - const clearAdultHostSearch = document.getElementById('clear-adult-host-search'); - - if (clearAdultHostSearch) { - clearAdultHostSearch.addEventListener('click', () => { - adultHostSearchInput.value = ''; - adultHostSearchInput.focus(); - // Trigger search clear event if needed - }); - } - - // Mock data loading simulation (replace with actual API calls) - setTimeout(() => { - // Simulate loading completion - const loadingStates = document.querySelectorAll('.loading-state'); - loadingStates.forEach(state => { - state.innerHTML = '

Data would be loaded here via API calls

'; - }); - }, 2000); - - // Compare functionality - const provider1Select = document.getElementById('provider1'); - const provider2Select = document.getElementById('provider2'); - const compareContainer = document.getElementById('compare-table-container'); - - if (provider1Select && provider2Select) { - // Populate select options (mock data) - const services = ['AllDebrid', 'Real-Debrid', 'TorBox', 'Premiumize', 'LinkSnappy', 'Debrid-Link', 'Mega-Debrid']; - - services.forEach(service => { - const option1 = new Option(service, service.toLowerCase()); - const option2 = new Option(service, service.toLowerCase()); - provider1Select.appendChild(option1); - provider2Select.appendChild(option2); - }); - - // Handle comparison - const updateComparison = () => { - const service1 = provider1Select.value; - const service2 = provider2Select.value; - - if (service1 && service2 && service1 !== service2) { - compareContainer.style.display = 'block'; - compareContainer.classList.add('comparison-visible'); - compareContainer.innerHTML = ` -
-

- ${service1} vs ${service2} -

-

- Detailed comparison would be shown here -

-
- `; - } else { - compareContainer.style.display = 'none'; - compareContainer.classList.remove('comparison-visible'); - } - }; - - provider1Select.addEventListener('change', updateComparison); - provider2Select.addEventListener('change', updateComparison); - } - });