MarseyWorld/files/assets/js/search.js

11 lines
272 B
JavaScript
Raw Normal View History

2023-06-24 14:36:57 +00:00
function addParam(t, bool) {
let text = t.innerText;
if (bool)
text = text + ' '
else
text = text.split(":")[0] + ':';
2022-09-04 23:15:37 +00:00
let searchInput = document.querySelector("#large_searchbar input");
2023-06-24 14:36:57 +00:00
searchInput.value = `${searchInput.value} ${text}`;
2022-09-04 23:15:37 +00:00
searchInput.focus();
2022-08-24 08:04:26 +00:00
}