blow/static/js/search.js
Thomas Chartron c0f0e742c9 update
2021-11-06 19:30:24 +01:00

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);
}