mirror of
https://github.com/Theodor-Springmann-Stiftung/jacoblenz.git
synced 2025-10-29 17:25:33 +00:00
Basic duckduckgo search
This commit is contained in:
10
docs/static/js/search.js
vendored
Normal file
10
docs/static/js/search.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
// attach a click handler to the search link
|
||||
var btn = document.querySelector('#global-search-form');
|
||||
btn.addEventListener('submit', function(event) {
|
||||
|
||||
// don't navigate to that page. Stay put.
|
||||
event.preventDefault();
|
||||
|
||||
// make search magic happen instead...
|
||||
|
||||
}, false);
|
||||
Reference in New Issue
Block a user