Update index.js to not use jquery anymore.

This commit is contained in:
Matthieu Gautier
2021-11-17 15:23:36 +01:00
committed by Nikhil Tanwar
parent 98bcf8acd6
commit 4f3ec817db
3 changed files with 4 additions and 26 deletions

View File

@ -1,5 +1,5 @@
(function() {
const root = $(`link[type='root']`).attr('href');
const root = document.querySelector(`link[type='root']`).getAttribute('href');
const incrementalLoadingParams = {
start: 0,
count: viewPortToCount()
@ -320,7 +320,7 @@
const booksToFilter = new Set();
const booksToDelete = new Set();
iso.arrange({
filter: function (idx, elem) {
filter: function (elem) {
const id = elem.getAttribute('data-id');
const retVal = bookOrderMap.has(id);
if (retVal) {