You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
439 B
13 lines
439 B
import "./common.js";
|
|
import "./pagination.js";
|
|
//#region js/search.js
|
|
$(function() {
|
|
const q = new URLSearchParams(window.location.search).get("q")?.trim() || "";
|
|
if (q) $(".sr-search .s-search__input").val(q);
|
|
$(".sr-hot__tag").on("click", function() {
|
|
const keyword = $(this).attr("data-keyword") || $(this).text().trim();
|
|
$(".sr-search .s-search__input").val(keyword);
|
|
$(".sr-search").trigger("submit");
|
|
});
|
|
});
|
|
//#endregion
|