js popin, pb lien js et variable twig
This commit is contained in:
@@ -898,7 +898,6 @@ ul.pagination {
|
|||||||
background-color: #d5d2d1; }
|
background-color: #d5d2d1; }
|
||||||
|
|
||||||
.mozaique_personnes h3 {
|
.mozaique_personnes h3 {
|
||||||
margin-top: 0px !important;
|
|
||||||
padding-top: 3rem;
|
padding-top: 3rem;
|
||||||
padding-left: 15%;
|
padding-left: 15%;
|
||||||
padding-right: 15%;
|
padding-right: 15%;
|
||||||
@@ -945,6 +944,9 @@ ul.pagination {
|
|||||||
.portrait {
|
.portrait {
|
||||||
background: transparent !important; }
|
background: transparent !important; }
|
||||||
|
|
||||||
|
img.portrait {
|
||||||
|
width: 20%; }
|
||||||
|
|
||||||
.bouton {
|
.bouton {
|
||||||
border: solid;
|
border: solid;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
@@ -1036,15 +1038,19 @@ ul.pagination {
|
|||||||
.modular .showcase .button:hover {
|
.modular .showcase .button:hover {
|
||||||
background: rgba(255, 255, 255, 0.2); }
|
background: rgba(255, 255, 255, 0.2); }
|
||||||
|
|
||||||
|
.modular .titre_nsb h1 {
|
||||||
|
text-transform: uppercase;
|
||||||
|
text-align: right;
|
||||||
|
padding-right: 50%; }
|
||||||
|
|
||||||
.modular .features {
|
.modular .features {
|
||||||
padding: 2rem 8rem;
|
padding: 2rem 8rem;
|
||||||
text-align: center; }
|
text-align: center;
|
||||||
|
align-content: center; }
|
||||||
.modular .features:after {
|
.modular .features:after {
|
||||||
content: "";
|
content: "";
|
||||||
display: table;
|
display: table;
|
||||||
clear: both; }
|
clear: both; }
|
||||||
.modular .features .titre_nsb h1 {
|
|
||||||
text-transform: uppercase; }
|
|
||||||
.modular .features h2 {
|
.modular .features h2 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
line-height: 100%; }
|
line-height: 100%; }
|
||||||
|
|||||||
@@ -37,16 +37,48 @@ jQuery(document).ready(function($){
|
|||||||
// Responsive Menu
|
// Responsive Menu
|
||||||
|
|
||||||
|
|
||||||
|
// * Grab data attributes from twig with JQuery
|
||||||
|
// */
|
||||||
|
// $(() => {
|
||||||
|
//
|
||||||
|
// // Select elements by their data attribute
|
||||||
|
// const $personneElements = $('[data-personne-id]');
|
||||||
|
//
|
||||||
|
// // Map over each element and extract the data value
|
||||||
|
// const $personneIds =
|
||||||
|
// $.map($personneElements, item => $(item).data('personneId'));
|
||||||
|
//
|
||||||
|
// // You'll now have array containing string values
|
||||||
|
// console.log($personneIds); // eg: ["1", "2", "3"]
|
||||||
|
// });
|
||||||
|
|
||||||
$(".bouton").click(function(){
|
// {% set script %}
|
||||||
$("#modal .message").html();
|
// // ton js
|
||||||
$("#modal").addClass("open");
|
// var mavariable = {{ twigvar }};
|
||||||
// $("#body").addClass("grey");
|
// {% endset %}
|
||||||
});
|
// {% do assets.addInlineJs(script) %}
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// // POPIN Biographies
|
||||||
|
// var id = $('#biographie').data('id');
|
||||||
|
// if id > 0{
|
||||||
|
// $(".bouton").click(function(){
|
||||||
|
// $("#modal .message").html(#biographie);
|
||||||
|
// $("#modal").addClass("open");
|
||||||
|
// // $("#body").addClass("grey");
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
// $(".bouton").click(function(){
|
||||||
|
// $("#modal .message").html();
|
||||||
|
// $("#modal").addClass("open");
|
||||||
|
// // $("#body").addClass("grey");
|
||||||
|
// });
|
||||||
|
//
|
||||||
|
// $("#modal .mask, #modal a.close").click(function(){
|
||||||
|
// $("#modal").removeClass("open");
|
||||||
|
// return false;
|
||||||
|
// });
|
||||||
|
|
||||||
$("#modal .mask, #modal a.close").click(function(){
|
|
||||||
$("#modal").removeClass("open");
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -204,14 +204,13 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.mozaique_personnes {
|
.mozaique_personnes {
|
||||||
background-color: #d5d2d1;
|
background-color: #d5d2d1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.mozaique_personnes h3 {
|
.mozaique_personnes h3 {
|
||||||
|
|
||||||
margin-top: 0px !important;
|
|
||||||
padding-top: 3rem;
|
padding-top: 3rem;
|
||||||
padding-left: 15%;
|
padding-left: 15%;
|
||||||
padding-right: 15%;
|
padding-right: 15%;
|
||||||
@@ -298,11 +297,12 @@
|
|||||||
.portrait {
|
.portrait {
|
||||||
// max-width:50% !important;
|
// max-width:50% !important;
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// img.portrait {
|
img.portrait {
|
||||||
// width: 20%;
|
width: 20%;
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,18 @@
|
|||||||
// Modular Showcase styling
|
// Modular Ressources styling
|
||||||
.modular {
|
.modular {
|
||||||
|
.titre_nsb h1 {
|
||||||
|
text-transform: uppercase;
|
||||||
|
text-align: right;
|
||||||
|
padding-right: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
.features {
|
.features {
|
||||||
|
|
||||||
padding: 2rem 8rem;
|
padding: 2rem 8rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
align-content: center;
|
||||||
@include clearfix;
|
@include clearfix;
|
||||||
|
|
||||||
.titre_nsb h1 {
|
|
||||||
text-transform: uppercase;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
line-height: 100%;
|
line-height: 100%;
|
||||||
|
|||||||
@@ -1,3 +1,22 @@
|
|||||||
|
<script>
|
||||||
|
|
||||||
|
var message = {{ page.media[personne.biographie].url|e }};
|
||||||
|
$(".bouton").click(function(){
|
||||||
|
|
||||||
|
$("#modal .message").html('message');
|
||||||
|
|
||||||
|
$("#modal").addClass("open");
|
||||||
|
// $("#body").addClass("grey");
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#modal .mask, #modal a.close").click(function(){
|
||||||
|
$("#modal").removeClass("open");
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<div id="mozaique_personnes{{ page.header.class}}">
|
<div id="mozaique_personnes{{ page.header.class}}">
|
||||||
{{ content|raw }}
|
{{ content|raw }}
|
||||||
|
|
||||||
@@ -25,16 +44,16 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="message">
|
<div class="message">
|
||||||
{% if personne.biographie %}
|
{% if personne.biographie %}
|
||||||
<p>{{ personne.biographie|markdown }}</p>
|
<p>{{ personne.biographie|markdown }} </p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<a href="#" class="close">×</a>
|
<a href="#" class="close">×</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
|
|
||||||
|
<div class="titre_nsb">
|
||||||
|
{{ content|raw }}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="features {{ page.header.class}}">
|
<div class="features {{ page.header.class}}">
|
||||||
<div class="titre_nsb">
|
|
||||||
{{ content|raw }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% for rapport in page.header.rapports %}
|
{% for rapport in page.header.rapports %}
|
||||||
|
|
||||||
@@ -22,4 +25,5 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user