mirror of
https://github.com/tchartron/blow
synced 2024-11-28 07:10:25 +00:00
15 lines
442 B
JavaScript
15 lines
442 B
JavaScript
document.addEventListener("DOMContentLoaded", function() {
|
|
let search_input = document.getElementById('search').addEventListener('click', openSearch)
|
|
// search();
|
|
});
|
|
|
|
function openSearch() {
|
|
console.log("open modal");
|
|
let search_modal = document.getElementById('search-modal');
|
|
search_modal.classList.remove('hidden');
|
|
console.log(search_modal);
|
|
}
|
|
|
|
function search() {
|
|
let index = elasticlunr.Index.load(window.searchIndex);
|
|
}
|