poprawki
This commit is contained in:
@@ -6,11 +6,17 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
const modalBody = modal?.querySelector('.modal-body');
|
||||
|
||||
function normalize(str) {
|
||||
return str ? str.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase() : '';
|
||||
return str
|
||||
? str.normalize("NFD")
|
||||
.replace(/[\u0300-\u036f]/g, "")
|
||||
.replace(/\s+/g, ' ')
|
||||
.trim()
|
||||
.toLowerCase()
|
||||
: '';
|
||||
}
|
||||
|
||||
let sortMode = 'popularity';
|
||||
let limit = 150;
|
||||
let limit = 100;
|
||||
let offset = 0;
|
||||
let loading = false;
|
||||
let reachedEnd = false;
|
||||
|
Reference in New Issue
Block a user