|
@@ -129,66 +129,30 @@ jQuery(document).ready(function($){
|
|
|
});
|
|
|
console.log('slick actu');
|
|
|
});
|
|
|
-
|
|
|
- // $(document).ready(function(){
|
|
|
- // $('.field--name-field-image > div:nth-child(2)').slick({
|
|
|
- // slidesToShow: 1,
|
|
|
- // slidesToScroll: 1,
|
|
|
- // dots: true,
|
|
|
- // arrows: false,
|
|
|
- // centerMode: true,
|
|
|
- // // centerPadding: '100px',
|
|
|
- // responsive: [
|
|
|
- // {
|
|
|
- // breakpoint: 810,
|
|
|
- // settings: {
|
|
|
- // slidesToShow: 1,
|
|
|
- // adaptiveHeight: true,
|
|
|
- // arrows: false,
|
|
|
- // draggable: true,
|
|
|
- // centerMode: true,
|
|
|
- // }
|
|
|
- // }]
|
|
|
- // });
|
|
|
- // console.log('slick site');
|
|
|
-
|
|
|
-// });
|
|
|
-
|
|
|
+ $(document).ready(function(){
|
|
|
+ $('.page-node-site .field--name-field-image > div:nth-child(2)').slick({
|
|
|
+ slidesToShow: 1,
|
|
|
+ slidesToScroll: 1,
|
|
|
+ dots: true,
|
|
|
+ arrows: false,
|
|
|
+ adaptiveHeight: true,
|
|
|
+ // centerMode: true,
|
|
|
+ // centerPadding: '100px',
|
|
|
+ responsive: [
|
|
|
+ {
|
|
|
+ breakpoint: 810,
|
|
|
+ settings: {
|
|
|
+ slidesToShow: 1,
|
|
|
+ adaptiveHeight: true,
|
|
|
+ arrows: false,
|
|
|
+ draggable: true,
|
|
|
+ centerMode: true,
|
|
|
+ }
|
|
|
+ }]
|
|
|
+ });
|
|
|
+ console.log('slick actu');
|
|
|
+ });
|
|
|
|
|
|
|
|
|
})(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);
|