view actus

This commit is contained in:
2024-06-20 12:41:34 +02:00
parent d33f29aea3
commit b1ff433222
12 changed files with 407 additions and 66 deletions
+35
View File
@@ -107,3 +107,38 @@ jQuery(document).ready(function($){
});
})(jQuery, window);
// document.addEventListener('DOMContentLoaded', function() {
// var nav = document.querySelectorAll('main-nav');
// var links = nav.querySelectorAll('li > a');
// console.log(links);
// links.forEach(function(link) {
// if (link.classList.contains('is-active')) {
// nav.classList.add('has-active');
// }
// });
// });
// /////////////////
//// ancre dans texte au click parragraphe correspondant arrive en dessous du header
// (function($, window) {
// var adjustAnchor = function() {
// var $anchor = $('.block-views-blockhome-block-1'),
// fixedElementHeight = 350;
// if ($anchor.length > 0) {
// $('html, body').stop().animate({scrollTop: $anchor.offset().top - fixedElementHeight }, 0);
// }
// };
// $(window).on('hashchange', function() {
// adjustAnchor();
// });
// })(jQuery, window);