calendrier sur juillet
This commit is contained in:
parent
824ff8db7d
commit
b90195224f
@ -279,69 +279,72 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
//// ancre dans texte au click paragraphe correspondant arrive en dessous du header
|
|
||||||
|
|
||||||
|
|
||||||
(function($, window) {
|
(function($, window) {
|
||||||
var adjustAnchor = function() {
|
|
||||||
var $anchor = $('.sidebar_first_container'),
|
|
||||||
fixedElementHeight = 500;
|
|
||||||
if ($anchor.length > 0) {
|
|
||||||
$('html, body').stop().animate({scrollTop: $anchor.offset().top - fixedElementHeight }, 0);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
$(window).on('hashchange', function() {
|
|
||||||
adjustAnchor();
|
//// ancre dans texte au click paragraphe correspondant arrive en dessous du header
|
||||||
});
|
|
||||||
|
var adjustAnchor = function() {
|
||||||
|
var $anchor = $('.sidebar_first_container'),
|
||||||
|
fixedElementHeight = 500;
|
||||||
|
if ($anchor.length > 0) {
|
||||||
|
$('html, body').stop().animate({scrollTop: $anchor.offset().top - fixedElementHeight }, 0);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$(window).on('hashchange', function() {
|
||||||
|
adjustAnchor();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
//////////////////////// start script smooth apparition des textes /////////////////
|
//////////////////////// start script smooth apparition des textes /////////////////
|
||||||
|
|
||||||
function scrollReaveal(){
|
function scrollReaveal(){
|
||||||
|
|
||||||
const nodes = {
|
const nodes = {
|
||||||
logo : document.querySelectorAll('#logo-animated-container'),
|
logo : document.querySelectorAll('#logo-animated-container'),
|
||||||
chapeau : document.querySelectorAll('.field_body'),
|
chapeau : document.querySelectorAll('.field_body'),
|
||||||
paragraph: document.querySelectorAll('.field_field_textes .paragraph--type--static-parts'),
|
paragraph: document.querySelectorAll('.field_field_textes .paragraph--type--static-parts'),
|
||||||
enjeux : document.querySelectorAll('.field_field_textes .paragraph--type--static-parts .enjeux'),
|
enjeux : document.querySelectorAll('.field_field_textes .paragraph--type--static-parts .enjeux'),
|
||||||
// mapHome : document.querySelectorAll('.field_field_map_block #block-sitesmapblock'),
|
// mapHome : document.querySelectorAll('.field_field_map_block #block-sitesmapblock'),
|
||||||
// mapSite : document.querySelectorAll('#sites-map-container'),
|
// mapSite : document.querySelectorAll('#sites-map-container'),
|
||||||
lienDoc : document.querySelectorAll('.field_field_documents'),
|
lienDoc : document.querySelectorAll('.field_field_documents'),
|
||||||
lienURL : document.querySelectorAll('.field_field_liens_site'),
|
lienURL : document.querySelectorAll('.field_field_liens_site'),
|
||||||
}
|
}
|
||||||
|
|
||||||
const showUp = {
|
const showUp = {
|
||||||
origin: 'bottom',
|
origin: 'bottom',
|
||||||
|
delay: 100,
|
||||||
|
duration: 1000,
|
||||||
|
distance: '50px',
|
||||||
|
easing: 'cubic-bezier(0.5, 0, 0, 1)'
|
||||||
|
}
|
||||||
|
|
||||||
|
const Show = {
|
||||||
delay: 100,
|
delay: 100,
|
||||||
duration: 1000,
|
duration: 600,
|
||||||
distance: '50px',
|
|
||||||
easing: 'cubic-bezier(0.5, 0, 0, 1)'
|
easing: 'cubic-bezier(0.5, 0, 0, 1)'
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(nodes);
|
||||||
|
|
||||||
|
ScrollReveal().reveal(nodes.logo, Show);
|
||||||
|
ScrollReveal().reveal(nodes.chapeau, showUp);
|
||||||
|
ScrollReveal().reveal(nodes.paragraph, showUp);
|
||||||
|
ScrollReveal().reveal(nodes.enjeux, showUp);
|
||||||
|
// ScrollReveal().reveal(nodes.mapHome, showUp);
|
||||||
|
// ScrollReveal().reveal(nodes.mapSite, showUp);
|
||||||
|
ScrollReveal().reveal(nodes.lienDoc, showUp);
|
||||||
|
ScrollReveal().reveal(nodes.lienURL, showUp);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const Show = {
|
|
||||||
delay: 100,
|
|
||||||
duration: 600,
|
|
||||||
easing: 'cubic-bezier(0.5, 0, 0, 1)'
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log(nodes);
|
$( document ).ready(function() {
|
||||||
|
scrollReaveal();
|
||||||
ScrollReveal().reveal(nodes.logo, Show);
|
});
|
||||||
ScrollReveal().reveal(nodes.chapeau, showUp);
|
|
||||||
ScrollReveal().reveal(nodes.paragraph, showUp);
|
|
||||||
ScrollReveal().reveal(nodes.enjeux, showUp);
|
|
||||||
// ScrollReveal().reveal(nodes.mapHome, showUp);
|
|
||||||
// ScrollReveal().reveal(nodes.mapSite, showUp);
|
|
||||||
ScrollReveal().reveal(nodes.lienDoc, showUp);
|
|
||||||
ScrollReveal().reveal(nodes.lienURL, showUp);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$( document ).ready(function() {
|
|
||||||
scrollReaveal();
|
|
||||||
});
|
|
||||||
|
|
||||||
//////////////////////// end script smooth apparition des textes /////////////////
|
//////////////////////// end script smooth apparition des textes /////////////////
|
||||||
|
|
||||||
@ -400,7 +403,7 @@ $( document ).ready(function() {
|
|||||||
|
|
||||||
// Aller au 9e élément à l'initialisation
|
// Aller au 9e élément à l'initialisation
|
||||||
$('.__timeline-content').on('init', function(event, slick){
|
$('.__timeline-content').on('init', function(event, slick){
|
||||||
slick.slickGoTo(8); // Index 8 = 9e item
|
slick.slickGoTo(9); // Index 8 = 9e item
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.__timeline-content').slick({
|
$('.__timeline-content').slick({
|
||||||
|
File diff suppressed because one or more lines are too long
@ -221,69 +221,72 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
//// ancre dans texte au click paragraphe correspondant arrive en dessous du header
|
|
||||||
|
|
||||||
|
|
||||||
(function($, window) {
|
(function($, window) {
|
||||||
var adjustAnchor = function() {
|
|
||||||
var $anchor = $('.sidebar_first_container'),
|
|
||||||
fixedElementHeight = 500;
|
|
||||||
if ($anchor.length > 0) {
|
|
||||||
$('html, body').stop().animate({scrollTop: $anchor.offset().top - fixedElementHeight }, 0);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
$(window).on('hashchange', function() {
|
|
||||||
adjustAnchor();
|
//// ancre dans texte au click paragraphe correspondant arrive en dessous du header
|
||||||
});
|
|
||||||
|
var adjustAnchor = function() {
|
||||||
|
var $anchor = $('.sidebar_first_container'),
|
||||||
|
fixedElementHeight = 500;
|
||||||
|
if ($anchor.length > 0) {
|
||||||
|
$('html, body').stop().animate({scrollTop: $anchor.offset().top - fixedElementHeight }, 0);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$(window).on('hashchange', function() {
|
||||||
|
adjustAnchor();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
//////////////////////// start script smooth apparition des textes /////////////////
|
//////////////////////// start script smooth apparition des textes /////////////////
|
||||||
|
|
||||||
function scrollReaveal(){
|
function scrollReaveal(){
|
||||||
|
|
||||||
const nodes = {
|
const nodes = {
|
||||||
logo : document.querySelectorAll('#logo-animated-container'),
|
logo : document.querySelectorAll('#logo-animated-container'),
|
||||||
chapeau : document.querySelectorAll('.field_body'),
|
chapeau : document.querySelectorAll('.field_body'),
|
||||||
paragraph: document.querySelectorAll('.field_field_textes .paragraph--type--static-parts'),
|
paragraph: document.querySelectorAll('.field_field_textes .paragraph--type--static-parts'),
|
||||||
enjeux : document.querySelectorAll('.field_field_textes .paragraph--type--static-parts .enjeux'),
|
enjeux : document.querySelectorAll('.field_field_textes .paragraph--type--static-parts .enjeux'),
|
||||||
// mapHome : document.querySelectorAll('.field_field_map_block #block-sitesmapblock'),
|
// mapHome : document.querySelectorAll('.field_field_map_block #block-sitesmapblock'),
|
||||||
// mapSite : document.querySelectorAll('#sites-map-container'),
|
// mapSite : document.querySelectorAll('#sites-map-container'),
|
||||||
lienDoc : document.querySelectorAll('.field_field_documents'),
|
lienDoc : document.querySelectorAll('.field_field_documents'),
|
||||||
lienURL : document.querySelectorAll('.field_field_liens_site'),
|
lienURL : document.querySelectorAll('.field_field_liens_site'),
|
||||||
}
|
}
|
||||||
|
|
||||||
const showUp = {
|
const showUp = {
|
||||||
origin: 'bottom',
|
origin: 'bottom',
|
||||||
|
delay: 100,
|
||||||
|
duration: 1000,
|
||||||
|
distance: '50px',
|
||||||
|
easing: 'cubic-bezier(0.5, 0, 0, 1)'
|
||||||
|
}
|
||||||
|
|
||||||
|
const Show = {
|
||||||
delay: 100,
|
delay: 100,
|
||||||
duration: 1000,
|
duration: 600,
|
||||||
distance: '50px',
|
|
||||||
easing: 'cubic-bezier(0.5, 0, 0, 1)'
|
easing: 'cubic-bezier(0.5, 0, 0, 1)'
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(nodes);
|
||||||
|
|
||||||
|
ScrollReveal().reveal(nodes.logo, Show);
|
||||||
|
ScrollReveal().reveal(nodes.chapeau, showUp);
|
||||||
|
ScrollReveal().reveal(nodes.paragraph, showUp);
|
||||||
|
ScrollReveal().reveal(nodes.enjeux, showUp);
|
||||||
|
// ScrollReveal().reveal(nodes.mapHome, showUp);
|
||||||
|
// ScrollReveal().reveal(nodes.mapSite, showUp);
|
||||||
|
ScrollReveal().reveal(nodes.lienDoc, showUp);
|
||||||
|
ScrollReveal().reveal(nodes.lienURL, showUp);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const Show = {
|
|
||||||
delay: 100,
|
|
||||||
duration: 600,
|
|
||||||
easing: 'cubic-bezier(0.5, 0, 0, 1)'
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log(nodes);
|
$( document ).ready(function() {
|
||||||
|
scrollReaveal();
|
||||||
ScrollReveal().reveal(nodes.logo, Show);
|
});
|
||||||
ScrollReveal().reveal(nodes.chapeau, showUp);
|
|
||||||
ScrollReveal().reveal(nodes.paragraph, showUp);
|
|
||||||
ScrollReveal().reveal(nodes.enjeux, showUp);
|
|
||||||
// ScrollReveal().reveal(nodes.mapHome, showUp);
|
|
||||||
// ScrollReveal().reveal(nodes.mapSite, showUp);
|
|
||||||
ScrollReveal().reveal(nodes.lienDoc, showUp);
|
|
||||||
ScrollReveal().reveal(nodes.lienURL, showUp);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$( document ).ready(function() {
|
|
||||||
scrollReaveal();
|
|
||||||
});
|
|
||||||
|
|
||||||
//////////////////////// end script smooth apparition des textes /////////////////
|
//////////////////////// end script smooth apparition des textes /////////////////
|
||||||
|
|
||||||
@ -342,7 +345,7 @@ $( document ).ready(function() {
|
|||||||
|
|
||||||
// Aller au 9e élément à l'initialisation
|
// Aller au 9e élément à l'initialisation
|
||||||
$('.__timeline-content').on('init', function(event, slick){
|
$('.__timeline-content').on('init', function(event, slick){
|
||||||
slick.slickGoTo(8); // Index 8 = 9e item
|
slick.slickGoTo(9); // Index 8 = 9e item
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.__timeline-content').slick({
|
$('.__timeline-content').slick({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user