MarseyWorld/files/assets/js/search.js

9 lines
282 B
JavaScript
Raw Normal View History

2022-08-24 07:57:33 +00:00
function addParam(e) {
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
}