mirror of
https://github.com/TheAnachronism/docspell.git
synced 2024-11-13 02:31:10 +00:00
17 lines
424 B
HTML
17 lines
424 B
HTML
<script>
|
|
var initSearch = function() {
|
|
var elmSearch = Elm.Search.init({
|
|
node: document.getElementById("search"),
|
|
flags: {}
|
|
});
|
|
initElmSearch(elmSearch);
|
|
}
|
|
if (document.readyState === "complete" ||
|
|
(document.readyState !== "loading" && !document.documentElement.doScroll)
|
|
) {
|
|
initSearch();
|
|
} else {
|
|
document.addEventListener("DOMContentLoaded", initSearch);
|
|
}
|
|
</script>
|