Spaces:
Running
Running
File size: 956 Bytes
0c082f7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
// Initialize tooltips when icons are loaded
document.addEventListener('DOMContentLoaded', () => {
// Search functionality
const searchInput = document.querySelector('input[type="text"]');
const searchButton = document.querySelector('button');
searchButton.addEventListener('click', () => {
if (searchInput.value.trim()) {
alert(`Searching for: ${searchInput.value}`);
// In a real app, this would redirect to search results
}
});
searchInput.addEventListener('keypress', (e) => {
if (e.key === 'Enter' && searchInput.value.trim()) {
alert(`Searching for: ${searchInput.value}`);
// In a real app, this would redirect to search results
}
});
// Responsive adjustments
function handleResize() {
// Add any responsive JS logic here
}
window.addEventListener('resize', handleResize);
handleResize();
}); |