diff --git a/docs/script.js b/docs/script.js index ce656eb..9e1ce9e 100644 --- a/docs/script.js +++ b/docs/script.js @@ -143,8 +143,6 @@ async function fetchAndPrepareUsers() { isDataLoaded = true; const total = allUsers.length; document.getElementById('totalCount').textContent = total.toLocaleString(); - document.getElementById('totalCountDesktop').textContent = - total.toLocaleString(); } catch (err) { console.error(err); const loadingStates = document.querySelectorAll('.loading-state'); @@ -995,10 +993,6 @@ function updateCounts(sortedUsers) { document.getElementById('totalCount').textContent = totalCount.toLocaleString(); - document.getElementById('visibleCountDesktop').textContent = - visibleCount.toLocaleString(); - document.getElementById('totalCountDesktop').textContent = - totalCount.toLocaleString(); } /** @@ -1012,21 +1006,15 @@ function updateResultsMessage(sortedUsers) { const resultsFound = document.getElementById('resultsFound'); const noResults = document.getElementById('noResults'); - const resultsFoundDesktop = document.getElementById('resultsFoundDesktop'); - const noResultsDesktop = document.getElementById('noResultsDesktop'); // TODO // if (totalCount === 0) {} if (visibleCount === 0) { if (resultsFound) resultsFound.style.display = 'none'; if (noResults) noResults.style.display = 'block'; - if (resultsFoundDesktop) resultsFoundDesktop.style.display = 'none'; - if (noResultsDesktop) noResultsDesktop.style.display = 'block'; } else { if (resultsFound) resultsFound.style.display = 'block'; if (noResults) noResults.style.display = 'none'; - if (resultsFoundDesktop) resultsFoundDesktop.style.display = 'block'; - if (noResultsDesktop) noResultsDesktop.style.display = 'none'; } } @@ -1072,15 +1060,12 @@ function resetFilters() { */ function showLoadingState() { const loadingState = document.getElementById('loadingState'); - const loadingStateDesktop = document.getElementById('loadingStateDesktop'); const resultsInfo = document.getElementById('resultsInfo'); - const resultsInfoDesktop = document.getElementById('resultsInfoDesktop'); - [loadingState, loadingStateDesktop].forEach( + [loadingState].forEach( (el) => el && (el.style.display = 'flex'), ); if (resultsInfo) resultsInfo.style.display = 'none'; - if (resultsInfoDesktop) resultsInfoDesktop.style.display = 'none'; } /** @@ -1088,12 +1073,8 @@ function showLoadingState() { */ function hideLoadingState() { const loadingState = document.getElementById('loadingState'); - const loadingStateDesktop = document.getElementById('loadingStateDesktop'); const resultsInfo = document.getElementById('resultsInfo'); - const resultsInfoDesktop = document.getElementById('resultsInfoDesktop'); if (loadingState) loadingState.style.display = 'none'; - if (loadingStateDesktop) loadingStateDesktop.style.display = 'none'; if (resultsInfo) resultsInfo.style.display = 'block'; - if (resultsInfoDesktop) resultsInfoDesktop.style.display = 'block'; } diff --git a/docs/styles.css b/docs/styles.css index 67148f6..4e4bd7f 100644 --- a/docs/styles.css +++ b/docs/styles.css @@ -316,20 +316,6 @@ h1 { display: none; } -.results-info-desktop { - text-align: center; - color: #666; - font-size: 13px; -} - -.results-info-desktop strong { - font-weight: 600; -} - -#resultsFoundDesktop { - display: none; -} - /* ============================================================================ */ /* LOADING STATE */ /* ============================================================================ */ @@ -351,8 +337,7 @@ h1 { } } -#loadingState, -#loadingStateDesktop { +#loadingState{ position: fixed; top: 0; left: 0; @@ -864,10 +849,6 @@ footer { font-size: 1.8rem; margin: 20px 0; } - - .results-info-desktop { - display: none; - } } /* Fine-tune mobile card widths for small breakpoints */ diff --git a/layouts/layout.html b/layouts/layout.html index c3ad778..e59e37b 100644 --- a/layouts/layout.html +++ b/layouts/layout.html @@ -438,26 +438,6 @@ - - -
-
- Showing 0 of - 0 developers -
- -
-