banner on mobile
All checks were successful
Deploy / Deploy to pre-production (push) Successful in 5s
All checks were successful
Deploy / Deploy to pre-production (push) Successful in 5s
This commit is contained in:
parent
ee6408f05f
commit
32f45ceeca
14 changed files with 528 additions and 206 deletions
|
|
@ -1,5 +1,9 @@
|
|||
import { headerToggle, headerScrollVisibility } from './header.js';
|
||||
import { copyLink } from './share.js';
|
||||
import { btnSticky } from './mobile-sticky.js';
|
||||
|
||||
const responsiveMedium = 1080;
|
||||
const responsiveSmall = 768;
|
||||
|
||||
// TEMP, with includeHTML() --------------------------------------
|
||||
|
||||
|
|
@ -31,4 +35,20 @@ function initAfterLoad() {
|
|||
headerToggle();
|
||||
headerScrollVisibility();
|
||||
copyLink();
|
||||
btnSticky(responsiveSmall);
|
||||
}
|
||||
|
||||
function responsiveLoader() {
|
||||
let isLoaded = false;
|
||||
|
||||
function checkResize() {
|
||||
if (window.innerWidth < responsiveSmall && !isLoaded) {
|
||||
|
||||
// other functions qui ne chargent que pour la version mobile ...
|
||||
isLoaded = true;
|
||||
}
|
||||
}
|
||||
|
||||
checkResize();
|
||||
window.addEventListener('resize', checkResize);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue