|
|
@@ -1,7 +1,6 @@
|
|
|
-<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse">
|
|
|
+<nav id="sidebarMenu" class="col-md-3 col-lg-2 bg-light sidebar collapse">
|
|
|
<div class="position-sticky pt-2">
|
|
|
<ul class="nav flex-column" id="accordion">
|
|
|
-
|
|
|
<?php
|
|
|
$temp_accordion = array("rh-liste-salaries", "rh-historique-excel", "rh-upload-excel", "rh-import-to-temp", "stats");
|
|
|
(in_array(core::getGet("p"), $temp_accordion) or get::isDefautMenu($temp_accordion)) ? $_show = "show" : $_show = NULL;
|
|
|
@@ -94,4 +93,35 @@
|
|
|
<div style="position: absolute; bottom: 0; margin: 0 0 5px 10px; color: gray;">
|
|
|
<small>Chargement le <?php echo core::printDateTxt(); ?></small>
|
|
|
</div>
|
|
|
-</nav>
|
|
|
+</nav>
|
|
|
+
|
|
|
+<script>
|
|
|
+$(document).ready(function() {
|
|
|
+ var isSidebarVisible = false;
|
|
|
+
|
|
|
+ $("#closebtn").click(function() {
|
|
|
+ if (isSidebarVisible) {
|
|
|
+ $("#sidebarMenu").animate({
|
|
|
+ left: "-=280px"
|
|
|
+ }, 500, function() {
|
|
|
+ $(this).fadeOut(100, function() {
|
|
|
+ $(this).removeClass("d-md-block");
|
|
|
+ });
|
|
|
+ $("#ic-bt-nav-left").hide();
|
|
|
+ $("#ic-bt-nav-right").show();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ $("#sidebarMenu").fadeIn(100, function() {
|
|
|
+ $(this).animate({
|
|
|
+ left: "+=280px"
|
|
|
+ }, 500, function() {
|
|
|
+ $(this).addClass("d-md-block");
|
|
|
+ $("#ic-bt-nav-left").show();
|
|
|
+ $("#ic-bt-nav-right").hide();
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ isSidebarVisible = !isSidebarVisible;
|
|
|
+ });
|
|
|
+});
|
|
|
+</script>
|