Compare commits
No commits in common. "92214ace100af7f407372aebc1190a931398eae4" and "6f38fa2b211e02652515c1738aebe043be3b6ace" have entirely different histories.
92214ace10
...
6f38fa2b21
@ -50,7 +50,7 @@ class SitesMap extends BlockBase {
|
|||||||
|
|
||||||
$link_options = ['absolute' => TRUE, 'attributes' => ['class' => 'site-link'], 'language' => \Drupal::languageManager()->getLanguage($langcode)]; // Passer 'absolute' à TRUE
|
$link_options = ['absolute' => TRUE, 'attributes' => ['class' => 'site-link'], 'language' => \Drupal::languageManager()->getLanguage($langcode)]; // Passer 'absolute' à TRUE
|
||||||
$site_url = $site->toUrl('canonical', $link_options)->toString(); // URL absolue pour le data-url
|
$site_url = $site->toUrl('canonical', $link_options)->toString(); // URL absolue pour le data-url
|
||||||
$site_link_object = Link::createFromRoute(t("Voir le site"), 'entity.node.canonical', ['node' => $site->id()], $link_options);
|
$site_link_object = Link::createFromRoute(t("got to site"), 'entity.node.canonical', ['node' => $site->id()], $link_options);
|
||||||
$link = $site_link_object->toString()->getGeneratedLink();
|
$link = $site_link_object->toString()->getGeneratedLink();
|
||||||
|
|
||||||
$datacontent = htmlspecialchars("<strong>$title</strong><br>$subtitle<br>$link");
|
$datacontent = htmlspecialchars("<strong>$title</strong><br>$subtitle<br>$link");
|
||||||
|
@ -279,72 +279,69 @@ 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() {
|
||||||
//// ancre dans texte au click paragraphe correspondant arrive en dessous du header
|
adjustAnchor();
|
||||||
|
});
|
||||||
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 = {
|
|
||||||
logo : document.querySelectorAll('#logo-animated-container'),
|
|
||||||
chapeau : document.querySelectorAll('.field_body'),
|
|
||||||
paragraph: document.querySelectorAll('.field_field_textes .paragraph--type--static-parts'),
|
|
||||||
enjeux : document.querySelectorAll('.field_field_textes .paragraph--type--static-parts .enjeux'),
|
|
||||||
// mapHome : document.querySelectorAll('.field_field_map_block #block-sitesmapblock'),
|
|
||||||
// mapSite : document.querySelectorAll('#sites-map-container'),
|
|
||||||
lienDoc : document.querySelectorAll('.field_field_documents'),
|
|
||||||
lienURL : document.querySelectorAll('.field_field_liens_site'),
|
|
||||||
}
|
|
||||||
|
|
||||||
const showUp = {
|
|
||||||
origin: 'bottom',
|
|
||||||
delay: 100,
|
|
||||||
duration: 1000,
|
|
||||||
distance: '50px',
|
|
||||||
easing: 'cubic-bezier(0.5, 0, 0, 1)'
|
|
||||||
}
|
|
||||||
|
|
||||||
const Show = {
|
|
||||||
delay: 100,
|
|
||||||
duration: 600,
|
|
||||||
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 nodes = {
|
||||||
|
logo : document.querySelectorAll('#logo-animated-container'),
|
||||||
|
chapeau : document.querySelectorAll('.field_body'),
|
||||||
|
paragraph: document.querySelectorAll('.field_field_textes .paragraph--type--static-parts'),
|
||||||
|
enjeux : document.querySelectorAll('.field_field_textes .paragraph--type--static-parts .enjeux'),
|
||||||
|
// mapHome : document.querySelectorAll('.field_field_map_block #block-sitesmapblock'),
|
||||||
|
// mapSite : document.querySelectorAll('#sites-map-container'),
|
||||||
|
lienDoc : document.querySelectorAll('.field_field_documents'),
|
||||||
|
lienURL : document.querySelectorAll('.field_field_liens_site'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const showUp = {
|
||||||
|
origin: 'bottom',
|
||||||
|
delay: 100,
|
||||||
|
duration: 1000,
|
||||||
|
distance: '50px',
|
||||||
|
easing: 'cubic-bezier(0.5, 0, 0, 1)'
|
||||||
|
}
|
||||||
|
|
||||||
$( document ).ready(function() {
|
const Show = {
|
||||||
scrollReaveal();
|
delay: 100,
|
||||||
});
|
duration: 600,
|
||||||
|
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);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$( document ).ready(function() {
|
||||||
|
scrollReaveal();
|
||||||
|
});
|
||||||
|
|
||||||
//////////////////////// end script smooth apparition des textes /////////////////
|
//////////////////////// end script smooth apparition des textes /////////////////
|
||||||
|
|
||||||
@ -403,7 +400,7 @@ document.addEventListener('DOMContentLoaded', 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(9); // Index 8 = 9e item
|
slick.slickGoTo(8); // Index 8 = 9e item
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.__timeline-content').slick({
|
$('.__timeline-content').slick({
|
||||||
|
File diff suppressed because one or more lines are too long
@ -217,13 +217,6 @@ h2, h3 {
|
|||||||
width: 100vw;
|
width: 100vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
body, html, * {
|
|
||||||
user-select: text !important;
|
|
||||||
-webkit-user-select: text !important; /* pour Safari */
|
|
||||||
-moz-user-select: text !important; /* pour Firefox */
|
|
||||||
-ms-user-select: text !important; /* pour IE/Edge */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */
|
/* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */
|
||||||
ul {
|
ul {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
@ -3225,7 +3218,7 @@ body {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.partenaires .layout-content .content_container #block-quartiers-de-demain-titredepage {
|
.partenaires .layout-content .content_container #block-quartiers-de-demain-titredepage {
|
||||||
margin-top: 4rem;
|
margin-top: 1rem;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
}
|
}
|
||||||
@media (max-width: 810px) {
|
@media (max-width: 810px) {
|
||||||
@ -3235,7 +3228,6 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.partenaires .layout-content .content_container #block-quartiers-de-demain-titredepage h1 {
|
.partenaires .layout-content .content_container #block-quartiers-de-demain-titredepage h1 {
|
||||||
display: none;
|
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
color: black;
|
color: black;
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
|
@ -221,72 +221,69 @@ 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() {
|
||||||
//// ancre dans texte au click paragraphe correspondant arrive en dessous du header
|
adjustAnchor();
|
||||||
|
});
|
||||||
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 = {
|
|
||||||
logo : document.querySelectorAll('#logo-animated-container'),
|
|
||||||
chapeau : document.querySelectorAll('.field_body'),
|
|
||||||
paragraph: document.querySelectorAll('.field_field_textes .paragraph--type--static-parts'),
|
|
||||||
enjeux : document.querySelectorAll('.field_field_textes .paragraph--type--static-parts .enjeux'),
|
|
||||||
// mapHome : document.querySelectorAll('.field_field_map_block #block-sitesmapblock'),
|
|
||||||
// mapSite : document.querySelectorAll('#sites-map-container'),
|
|
||||||
lienDoc : document.querySelectorAll('.field_field_documents'),
|
|
||||||
lienURL : document.querySelectorAll('.field_field_liens_site'),
|
|
||||||
}
|
|
||||||
|
|
||||||
const showUp = {
|
|
||||||
origin: 'bottom',
|
|
||||||
delay: 100,
|
|
||||||
duration: 1000,
|
|
||||||
distance: '50px',
|
|
||||||
easing: 'cubic-bezier(0.5, 0, 0, 1)'
|
|
||||||
}
|
|
||||||
|
|
||||||
const Show = {
|
|
||||||
delay: 100,
|
|
||||||
duration: 600,
|
|
||||||
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 nodes = {
|
||||||
|
logo : document.querySelectorAll('#logo-animated-container'),
|
||||||
|
chapeau : document.querySelectorAll('.field_body'),
|
||||||
|
paragraph: document.querySelectorAll('.field_field_textes .paragraph--type--static-parts'),
|
||||||
|
enjeux : document.querySelectorAll('.field_field_textes .paragraph--type--static-parts .enjeux'),
|
||||||
|
// mapHome : document.querySelectorAll('.field_field_map_block #block-sitesmapblock'),
|
||||||
|
// mapSite : document.querySelectorAll('#sites-map-container'),
|
||||||
|
lienDoc : document.querySelectorAll('.field_field_documents'),
|
||||||
|
lienURL : document.querySelectorAll('.field_field_liens_site'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const showUp = {
|
||||||
|
origin: 'bottom',
|
||||||
|
delay: 100,
|
||||||
|
duration: 1000,
|
||||||
|
distance: '50px',
|
||||||
|
easing: 'cubic-bezier(0.5, 0, 0, 1)'
|
||||||
|
}
|
||||||
|
|
||||||
$( document ).ready(function() {
|
const Show = {
|
||||||
scrollReaveal();
|
delay: 100,
|
||||||
});
|
duration: 600,
|
||||||
|
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);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$( document ).ready(function() {
|
||||||
|
scrollReaveal();
|
||||||
|
});
|
||||||
|
|
||||||
//////////////////////// end script smooth apparition des textes /////////////////
|
//////////////////////// end script smooth apparition des textes /////////////////
|
||||||
|
|
||||||
@ -345,7 +342,7 @@ document.addEventListener('DOMContentLoaded', 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(9); // Index 8 = 9e item
|
slick.slickGoTo(8); // Index 8 = 9e item
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.__timeline-content').slick({
|
$('.__timeline-content').slick({
|
||||||
|
@ -60,12 +60,4 @@ $width-menu-slidedown : 550px;
|
|||||||
|
|
||||||
.layout--threecol-25-50-25{
|
.layout--threecol-25-50-25{
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
body, html, * {
|
|
||||||
user-select: text !important;
|
|
||||||
-webkit-user-select: text !important; /* pour Safari */
|
|
||||||
-moz-user-select: text !important; /* pour Firefox */
|
|
||||||
-ms-user-select: text !important; /* pour IE/Edge */
|
|
||||||
}
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
#block-quartiers-de-demain-titredepage{
|
#block-quartiers-de-demain-titredepage{
|
||||||
margin-top: 4rem;
|
margin-top: 1rem;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
@media(max-width: 810px){
|
@media(max-width: 810px){
|
||||||
margin-top: 14rem;
|
margin-top: 14rem;
|
||||||
@ -14,7 +14,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
h1{
|
h1{
|
||||||
display: none;
|
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
color: black;
|
color: black;
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user