Suppression animation navstyle

This commit is contained in:
Deltacms 2023-02-20 17:06:13 +01:00
parent 94dc961c4d
commit 5d95abdcf0
1 changed files with 0 additions and 15 deletions

View File

@ -129,21 +129,6 @@ $("input, select").on("change", function() {
$("#menu").addClass("container");
}
// Largeur du menu étendue à la page pour top sinon limitée au site
if ($("#themeMenuPosition").val() === 'top') {
$("nav").removeAttr('style');
} else {
var menuWidth = document.body.clientWidth + 20;
if( <?php echo json_encode($this->getData(['theme', 'header', 'position']) === 'body'); ?> && <?php echo json_encode($this->getData(['theme', 'header', 'wide']) === 'container'); ?>){
menuWidth = "<?php echo $this->getData(['theme', 'site', 'width']); ?>";
$("nav").css("width", menuWidth);
$("nav").css("display", "block");
$("nav").css("margin", "auto");
} else {
$("nav").css("width", menuWidth);
}
}
// Visibilité du select 'disposition'
if( <?php echo json_encode($this->getData(['theme', 'site', 'width']) !== '100%'); ?> && ( $("#themeMenuPosition").val() === 'top' || ( <?php echo json_encode($this->getData(['theme', 'header', 'wide']) === 'none'); ?>
&& ( $("#themeMenuPosition").val() === 'body-first' || $("#themeMenuPosition").val() === 'body-second')) ) ) {