Hotfix : widthWindowChange() on window.onload
This commit is contained in:
parent
2c98cd252d
commit
5c67e5b589
@ -231,7 +231,7 @@ $(function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Changement du logo du header selon la largeur de la fenêtre */
|
/* Changement du logo du header selon la largeur de la fenêtre */
|
||||||
$(window).resize(function() {
|
function widthWindowChange() {
|
||||||
const windowWidth = $(window).width();
|
const windowWidth = $(window).width();
|
||||||
if(windowWidth < 463){
|
if(windowWidth < 463){
|
||||||
$('#logo-header').attr('src', '/img/FunctionProject_icon.png');
|
$('#logo-header').attr('src', '/img/FunctionProject_icon.png');
|
||||||
@ -243,10 +243,12 @@ $(function () {
|
|||||||
$('#logo-header').removeAttr('style');
|
$('#logo-header').removeAttr('style');
|
||||||
$('.navbar-brand').removeAttr('style');
|
$('.navbar-brand').removeAttr('style');
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
$(window).resize(widthWindowChange);
|
||||||
|
widthWindowChange();
|
||||||
|
|
||||||
/* Permet d'afficher l'heure en temps réel sur le footer */
|
/* Permet d'afficher l'heure en temps réel sur le footer */
|
||||||
window.onload = realDateTime('realDateTime');
|
realDateTime('realDateTime');
|
||||||
|
|
||||||
/* Window Scroll Top Button */
|
/* Window Scroll Top Button */
|
||||||
const $btnScrollTop = $('.scroll-top-arrow');
|
const $btnScrollTop = $('.scroll-top-arrow');
|
||||||
|
Reference in New Issue
Block a user