Updating lining for css and js.

This commit is contained in:
Fredrik Jonsson 2022-01-25 10:30:57 +01:00
commit d69654162f
2 changed files with 73 additions and 20 deletions

View file

@ -3,7 +3,7 @@
'use strict';
// Lazy load images with lozad.js.
const observer = window.lozad(); //
const observer = window.lozad();
observer.observe();

View file

@ -1,4 +1,4 @@
/* eslint-disable no-undef */
/* eslint-disable no-undef, guard-for-in */
/**
* @file
@ -47,10 +47,10 @@
limit: {{ site.Params.searchLimit | default 20 }}
});
const items = {};
results.forEach( function(result) {
result.result.forEach( function(r) {
items[r.id] = r.doc;
});
results.forEach(function (result) {
result.result.forEach(function (r) {
items[r.id] = r.doc;
});
});
showResults(items);
}
@ -78,7 +78,7 @@
.then(function (data) {
data.forEach(function (item) {
index.add(item);
})
});
});
}