googly-bear-search / script.js
jilangdi's picture
完全复现UI设计
710f15a verified
raw
history blame contribute delete
592 Bytes
// Google Search functionality would go here
document.addEventListener('DOMContentLoaded', function() {
// Search box focus effects
const searchInput = document.querySelector('input[type="text"]');
if (searchInput) {
searchInput.addEventListener('focus', function() {
this.style.boxShadow = '0 1px 6px rgba(32, 33, 36, 0.28)';
});
searchInput.addEventListener('blur', function() {
this.style.boxShadow = '';
});
}
// Initialize feather icons
if (window.feather) {
feather.replace();
}
});