Add search functionality
This commit is contained in:
@ -2,3 +2,16 @@
|
||||
// for details on configuring this project to bundle and minify static web assets.
|
||||
|
||||
// Write your JavaScript code.
|
||||
|
||||
const searchButton = document.getElementById('search-button');
|
||||
const searchInput = document.getElementById('search-input');
|
||||
searchButton.addEventListener('click', () => {
|
||||
const inputValue = searchInput.value;
|
||||
window.location.href = "/?handler=search&query=" + inputValue;
|
||||
});
|
||||
|
||||
// Menu Toggle Script
|
||||
$("#menu-toggle").click(function (e) {
|
||||
e.preventDefault();
|
||||
$("#wrapper").toggleClass("toggled");
|
||||
});
|
||||
Reference in New Issue
Block a user