Add parameter to control the amount of highlighted output.

This commit is contained in:
Sergio Martínez Portela 2025-02-23 23:33:38 +01:00
parent 842a5e712b
commit e35fafb18e
3 changed files with 49 additions and 15 deletions

View file

@ -74,7 +74,7 @@ function _codigoparallevar_enable_search_box(selector, options) {
lastVal = val;
resultsBox.classList.add('loading');
const uri = SEARCH_ENDPOINT + '?q=' + encodeURIComponent(val);
const uri = SEARCH_ENDPOINT + '?q=' + encodeURIComponent(val) + '&body=snippet';
let query = fetch(uri);
currentQuery = query;
query