MarseyWorld/files/assets/js/search.js

9 lines
276 B
JavaScript
Raw Normal View History

2022-08-24 07:57:33 +00:00
function addParam(e) {
2022-09-04 23:15:37 +00:00
e = e || window.event;
let paramExample = e.target.innerText;
let param = paramExample.split(":")[0];
let searchInput = document.querySelector("#large_searchbar input");
searchInput.value = `${searchInput.value} ${param}:`;
searchInput.focus();
2022-08-24 08:04:26 +00:00
}