Extensions list: sort_by parameter #159
@ -131,24 +131,6 @@
|
||||
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
|
||||
function init() {
|
||||
agreeWithTerms();
|
||||
@ -156,7 +138,6 @@
|
||||
btnBack();
|
||||
commentForm();
|
||||
copyInstallUrl();
|
||||
scrollFilters();
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
|
Loading…
Reference in New Issue
Block a user