Extensions list: sort_by parameter #159

Merged
Márton Lente merged 36 commits from filter-sort into main 2024-06-03 12:57:45 +02:00
Showing only changes of commit 840b38014f - Show all commits

View File

@ -131,24 +131,6 @@
init(); init();
} }
// Create function scrollFilters to manage display of box filter sort's start and end gradients
function scrollFilters() {
const boxFilterSortBtns = document.querySelector('.js-box-filter-sort-btns');
const boxFilterSortEnd = document.querySelector('.js-box-filter-sort-end');
const boxFilterSortStart = document.querySelector('.js-box-filter-sort-start');
boxFilterSortBtns.addEventListener('scroll', function() {
if (boxFilterSortBtns.scrollLeft == 0) {
boxFilterSortStart.classList.add('d-none');
} else if (boxFilterSortBtns.scrollLeft + boxFilterSortBtns.clientWidth == boxFilterSortBtns.scrollWidth) {
boxFilterSortEnd.classList.add('d-none');
} else {
boxFilterSortEnd.classList.remove('d-none');
boxFilterSortStart.classList.remove('d-none');
}
});
}
// Create function init // Create function init
function init() { function init() {
agreeWithTerms(); agreeWithTerms();
@ -156,7 +138,6 @@
btnBack(); btnBack();
commentForm(); commentForm();
copyInstallUrl(); copyInstallUrl();
scrollFilters();
} }
document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {