Initial commit
BIN
fusion_website_theme/static/src/img/about-westin.jpg
Normal file
|
After Width: | Height: | Size: 724 KiB |
BIN
fusion_website_theme/static/src/img/cat-backrests.jpg
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
fusion_website_theme/static/src/img/cat-bath-safety.jpg
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
fusion_website_theme/static/src/img/cat-batteries.png
Normal file
|
After Width: | Height: | Size: 128 KiB |
BIN
fusion_website_theme/static/src/img/cat-bed-tables.jpg
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
fusion_website_theme/static/src/img/cat-ceiling-lifts.jpg
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
fusion_website_theme/static/src/img/cat-cushions.png
Normal file
|
After Width: | Height: | Size: 90 KiB |
BIN
fusion_website_theme/static/src/img/cat-hospital-beds.png
Normal file
|
After Width: | Height: | Size: 143 KiB |
BIN
fusion_website_theme/static/src/img/cat-lift-chairs.jpg
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
fusion_website_theme/static/src/img/cat-mattress.jpg
Normal file
|
After Width: | Height: | Size: 63 KiB |
BIN
fusion_website_theme/static/src/img/cat-patient-lifts.jpg
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
fusion_website_theme/static/src/img/cat-platform-lifts.png
Normal file
|
After Width: | Height: | Size: 525 KiB |
BIN
fusion_website_theme/static/src/img/cat-powerchairs.jpg
Normal file
|
After Width: | Height: | Size: 67 KiB |
BIN
fusion_website_theme/static/src/img/cat-ramps.jpg
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
fusion_website_theme/static/src/img/cat-rentals.png
Normal file
|
After Width: | Height: | Size: 436 KiB |
BIN
fusion_website_theme/static/src/img/cat-rollators.jpg
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
fusion_website_theme/static/src/img/cat-scooters.jpg
Normal file
|
After Width: | Height: | Size: 78 KiB |
BIN
fusion_website_theme/static/src/img/cat-stairlifts.jpeg
Normal file
|
After Width: | Height: | Size: 115 KiB |
BIN
fusion_website_theme/static/src/img/cat-wheelchairs.png
Normal file
|
After Width: | Height: | Size: 171 KiB |
BIN
fusion_website_theme/static/src/img/hero-stairlift.png
Normal file
|
After Width: | Height: | Size: 302 KiB |
3375
fusion_website_theme/static/src/img/hero-stairlift.webp
Normal file
BIN
fusion_website_theme/static/src/img/logo-adp.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
fusion_website_theme/static/src/img/logo-ifhp.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
fusion_website_theme/static/src/img/logo-mod.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
fusion_website_theme/static/src/img/logo-odsp.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
73
fusion_website_theme/static/src/js/header.js
Normal file
@@ -0,0 +1,73 @@
|
||||
/**
|
||||
* Fusion Website Theme - Header Interactions
|
||||
* Expandable search bar - expands right from search button
|
||||
*/
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
function initExpandableSearch() {
|
||||
var searchTrigger = document.querySelector('.search-trigger');
|
||||
var searchExpanded = document.querySelector('.search-expanded');
|
||||
var searchClose = document.querySelector('.search-close');
|
||||
var searchInput = document.querySelector('.search-expanded input');
|
||||
|
||||
if (!searchTrigger || !searchExpanded) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Open search
|
||||
searchTrigger.addEventListener('click', function(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
document.body.classList.add('search-open');
|
||||
searchExpanded.classList.add('active');
|
||||
|
||||
// Focus the input after animation
|
||||
setTimeout(function() {
|
||||
if (searchInput) searchInput.focus();
|
||||
}, 250);
|
||||
});
|
||||
|
||||
// Close search on X button
|
||||
if (searchClose) {
|
||||
searchClose.addEventListener('click', function(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
closeSearch();
|
||||
});
|
||||
}
|
||||
|
||||
// Close on Escape key
|
||||
document.addEventListener('keydown', function(e) {
|
||||
if (e.key === 'Escape' && document.body.classList.contains('search-open')) {
|
||||
closeSearch();
|
||||
}
|
||||
});
|
||||
|
||||
// Close when clicking outside
|
||||
document.addEventListener('click', function(e) {
|
||||
if (document.body.classList.contains('search-open')) {
|
||||
if (!searchExpanded.contains(e.target) && !searchTrigger.contains(e.target)) {
|
||||
closeSearch();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function closeSearch() {
|
||||
document.body.classList.remove('search-open');
|
||||
searchExpanded.classList.remove('active');
|
||||
if (searchInput) searchInput.value = '';
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize when DOM is ready
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', initExpandableSearch);
|
||||
} else {
|
||||
initExpandableSearch();
|
||||
}
|
||||
|
||||
// Also try after a small delay in case elements are loaded dynamically
|
||||
setTimeout(initExpandableSearch, 500);
|
||||
})();
|
||||