rDrama/files/assets/js/search.js

11 lines
274 B
JavaScript

function addParam(t, bool) {
let text = t.textContent;
if (bool)
text = text + ' '
else
text = text.split(":")[0] + ':';
let searchInput = document.querySelector("#large_searchbar input");
searchInput.value = `${searchInput.value} ${text}`;
searchInput.focus();
}