полоса прокрутки с большим количеством места и без перечисленных элементов
та же полоса прокрутки прокручена на 60 % вниз до начала алфавитного порядка.
Код функции поиска приведен ниже:
Код: Выделить всё
function getFaceClaims() {
$.get(
"/index.php?act=Members&max_results=1000&sort_key=joined&sort_order=asc",
function (data) {
var doc = new DOMParser().parseFromString(data, "text/html");
var faces = $(
".grabbyhands:not(.g_3):not(.g_4):not(.g_5):not(.g_10)",
doc
);
var sortedFaces = [];
faces.each(function () {
let $this = $(this);
let $charprofile = $this.find(".whodafuk");
sortedFaces.push([$charprofile.text(), $charprofile]);
});
sortedFaces.sort(function (a, b) {
return a[0].localeCompare(b[0]);
});
sortedFaces.forEach(function (face) {
$("#faceclaimgods").append(face[1]);
});
$("#scanning").on("input", function () {
var searchFaces = $(this).val().toLowerCase();
sortedFaces.forEach(function (face) {
var $charprofile = face[1];
var faceclaim = face[0].toLowerCase();
if (faceclaim.includes(searchFaces)) {
$charprofile.show();
} else {
$charprofile.hide();
}
});
});
}
);
}
getFaceClaims();
Подробнее здесь: https://stackoverflow.com/questions/784 ... ating-list
Мобильная версия