You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB
HTML

<footer class="w3-cell-row">
<div class="w3-container w3-cell w3-mobile" role="search">
<span class="false_h3">Search a content</span>
<input id="footersearch" type="search" class="search-query search_input" placeholder="Search...">
<script>
/// CUSTOM DIRTY CODE TO GO TO SEARCH PAGE
var $footerSearch = document.getElementById("footersearch");
$footerSearch.addEventListener("keyup", function(k) {
if (k.code == 'Enter') {
var $footerSearch = document.getElementById("footersearch");
var footerSearchString = $footerSearch.value;
console.log("pressed enter")
document.location.href = "{{ get_url(path='@/search.md') | safe }}?s=" + footerSearchString;
}
});
</script>
</div>
<div class="w3-container w3-cell w3-mobile">
<span class="false_h3">See a mistake?</span>
<a class="w3-button" href="/">Tell us here!</a>
</div>
<div class="w3-container w3-cell w3-mobile">
<ul>
<li><a href="/">About</a></li>
<li><a href="/">Contact</a></li>
</ul>
</div>
</footer>