blow/static/js/search.js

16 lines
442 B
JavaScript
Raw Normal View History

2021-11-03 19:41:31 +00:00
document.addEventListener("DOMContentLoaded", function() {
2021-11-06 18:20:43 +00:00
let search_input = document.getElementById('search').addEventListener('click', openSearch)
// search();
2021-11-03 19:41:31 +00:00
});
2021-11-06 18:20:43 +00:00
function openSearch() {
2021-11-06 18:30:24 +00:00
console.log("open modal");
2021-11-06 18:20:43 +00:00
let search_modal = document.getElementById('search-modal');
2021-11-06 18:30:24 +00:00
search_modal.classList.remove('hidden');
console.log(search_modal);
2021-11-06 18:20:43 +00:00
}
2021-11-04 22:55:27 +00:00
2021-11-06 18:20:43 +00:00
function search() {
let index = elasticlunr.Index.load(window.searchIndex);
2021-11-03 19:41:31 +00:00
}