css mes fichiers

This commit is contained in:
2024-07-01 22:22:44 +02:00
parent 4c146cdfff
commit ef1504e66e
4 changed files with 69 additions and 46 deletions
-24
View File
@@ -79,14 +79,6 @@ jQuery(document).ready(function($){
////////////// tiroir fichiers ///////
// $(".profile--type--collaborateur").click(function(event) {
// // Ouvrir .tiroir fichiers
// $(".layout-sidebar-second").animate({translate:'90%'},350);
// });
// $("#block-reha-views-block-current-user-doc-profile-block-1 > h2").click(function(event) {
// // Ouvrir .tiroir fichiers
// $(".layout-sidebar-second").animate({translate:'0%'},350);
// });
$(document).ready(function() {
// Vérifier l'état initial depuis sessionStorage
if (sessionStorage.getItem('asideOpened') === 'true') {
@@ -194,22 +186,6 @@ jQuery(document).ready(function($){
// /////////////////
//// ancre dans texte au click parragraphe correspondant arrive en dessous du header
// (function($, window) {
// var adjustAnchor = function() {
// var $anchor = $('.block-region-first'),
// fixedElementHeight = 300;
// console.log($anchor);
// if ($anchor.length > 0) {
// $('html, body').stop().animate({scrollTop: $anchor.offset().top - fixedElementHeight }, 0);
// }
// };
// $(window).on('hashchange', function() {
// adjustAnchor();
// });
// });
function adjustAnchor() {
var $anchor = $(window.location.hash); // Select the anchor element based on the hash in the URL
var fixedElementHeight = $('.block-region-first').outerHeight(); // Get the height of the sticky element