js .active
This commit is contained in:
+3
-3
@@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
return [
|
return [
|
||||||
'@class' => 'Grav\\Common\\Config\\CompiledConfig',
|
'@class' => 'Grav\\Common\\Config\\CompiledConfig',
|
||||||
'timestamp' => 1527510262,
|
'timestamp' => 1527792035,
|
||||||
'checksum' => '966a75fa838dc63243fdf4d7f492641d',
|
'checksum' => '6003cc4fd70e7155212fea1b40abb28c',
|
||||||
'files' => [
|
'files' => [
|
||||||
'user/config' => [
|
'user/config' => [
|
||||||
'media' => [
|
'media' => [
|
||||||
@@ -11,7 +11,7 @@ return [
|
|||||||
],
|
],
|
||||||
'plugins/youtube' => [
|
'plugins/youtube' => [
|
||||||
'file' => 'user/config/plugins/youtube.yaml',
|
'file' => 'user/config/plugins/youtube.yaml',
|
||||||
'modified' => 1527106076
|
'modified' => 1527792035
|
||||||
],
|
],
|
||||||
'security' => [
|
'security' => [
|
||||||
'file' => 'user/config/security.yaml',
|
'file' => 'user/config/security.yaml',
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"23-05-2018":157,"24-05-2018":194,"25-05-2018":212,"28-05-2018":287,"29-05-2018":82,"30-05-2018":86,"31-05-2018":163}
|
{"23-05-2018":157,"24-05-2018":194,"25-05-2018":212,"28-05-2018":287,"29-05-2018":82,"30-05-2018":86,"31-05-2018":252}
|
||||||
@@ -1 +1 @@
|
|||||||
{"05-2018":1181}
|
{"05-2018":1270}
|
||||||
@@ -1 +1 @@
|
|||||||
{"\/":1171,"\/typography":1,"\/home\/prochaines-dates":2,"\/home\/biographie":2,"\/home\/videos":3,"\/home\/photographies":1,"\/photographies":1}
|
{"\/":1260,"\/typography":1,"\/home\/prochaines-dates":2,"\/home\/biographie":2,"\/home\/videos":3,"\/home\/photographies":1,"\/photographies":1}
|
||||||
@@ -1 +1 @@
|
|||||||
{"4b84b15bff6ee5796152495a230e45e3d7e947d9":1527780874}
|
{"4b84b15bff6ee5796152495a230e45e3d7e947d9":1527794010}
|
||||||
@@ -2,4 +2,4 @@
|
|||||||
title: fullvideo
|
title: fullvideo
|
||||||
---
|
---
|
||||||
|
|
||||||
[plugin:youtube](https://www.youtube.com/watch?v=atTcasPy3JY)
|
[plugin:youtube](https://www.youtube.com/watch?v=atTcasPy3JY)
|
||||||
@@ -5,3 +5,8 @@ content:
|
|||||||
items:
|
items:
|
||||||
- '@self.modular'
|
- '@self.modular'
|
||||||
---
|
---
|
||||||
|
|
||||||
|
« Elle chante le forró avec un cœur vaudou,
|
||||||
|
arrange une chanson arabe façon bossa
|
||||||
|
et invente le jazz andalou au pays du candomblé »
|
||||||
|
Anne Berthod, Télérama
|
||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,44 @@
|
|||||||
function left() {
|
function activenav() {
|
||||||
$('#start > div:nth-of-type(4) .red').prependTo( ".content" );
|
// Cache selectors
|
||||||
|
var lastId,
|
||||||
|
topMenu = $(".navigation"),
|
||||||
|
topMenuHeight = topMenu.outerHeight()+500,
|
||||||
|
// All list items
|
||||||
|
menuItems = topMenu.find("a"),
|
||||||
|
// Anchors corresponding to menu items
|
||||||
|
scrollItems = menuItems.map(function(){
|
||||||
|
var item = $($(this).attr("href"));
|
||||||
|
if (item.length) { return item; }
|
||||||
|
});
|
||||||
|
|
||||||
|
// Bind click handler to menu items
|
||||||
|
// so we can get a fancy scroll animation
|
||||||
|
|
||||||
|
|
||||||
|
// Bind to scroll
|
||||||
|
$(window).scroll(function(){
|
||||||
|
// Get container scroll position
|
||||||
|
var fromTop = $(this).scrollTop()+topMenuHeight;
|
||||||
|
|
||||||
|
// Get id of current scroll item
|
||||||
|
var cur = scrollItems.map(function(){
|
||||||
|
if ($(this).offset().top < fromTop)
|
||||||
|
return this;
|
||||||
|
});
|
||||||
|
// Get the id of the current element
|
||||||
|
cur = cur[cur.length-1];
|
||||||
|
var id = cur && cur.length ? cur[0].id : "";
|
||||||
|
|
||||||
|
if (lastId !== id) {
|
||||||
|
lastId = id;
|
||||||
|
// Set/remove active class
|
||||||
|
menuItems
|
||||||
|
.parent().removeClass("active")
|
||||||
|
.end().filter("[href='#"+id+"']").parent().addClass("active");
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
jQuery(document).ready(function($) {
|
jQuery(document).ready(function($) {
|
||||||
// left();
|
activenav();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -31,6 +31,15 @@ body{
|
|||||||
line-height: 2rem;
|
line-height: 2rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.citation{
|
||||||
|
p{
|
||||||
|
font-size: $font16;
|
||||||
|
font-family: $Regular;
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: 2rem;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
||||||
#home, #contact{
|
#home, #contact{
|
||||||
h1{
|
h1{
|
||||||
font-family: $Thin;
|
font-family: $Thin;
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
#start{
|
#start{
|
||||||
|
& > div{
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
div:nth-child(n+3){
|
div:nth-child(n+3){
|
||||||
display: flex;
|
display: flex;
|
||||||
&:nth-child(even){
|
&:nth-child(even){
|
||||||
@@ -6,11 +9,21 @@
|
|||||||
}
|
}
|
||||||
& > div{
|
& > div{
|
||||||
width: 50%;
|
width: 50%;
|
||||||
height: 100vh;
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
&:first-child{
|
&:first-child{
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
background-image: linear-gradient(#98272D, #4f100B);
|
background-image: linear-gradient(#98272D, #4f100B);
|
||||||
|
.citation{
|
||||||
|
text-align: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 20%;
|
||||||
|
width: 450px;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -225px;
|
||||||
|
}
|
||||||
.chap{
|
.chap{
|
||||||
margin: auto;
|
margin: auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -39,9 +52,9 @@
|
|||||||
.grav-youtube{
|
.grav-youtube{
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#home{
|
#home{
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 100vh;
|
|
||||||
.visu-album{
|
.visu-album{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
@@ -105,12 +118,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#presse{
|
#presse{
|
||||||
|
|
||||||
#sovaj, #matriz{
|
#sovaj, #matriz{
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: wrap;
|
flex-flow: wrap;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-bottom: 100px;
|
margin-bottom: 100px;
|
||||||
}
|
|
||||||
p{
|
p{
|
||||||
font-size: $font14!important;
|
font-size: $font14!important;
|
||||||
line-height: 1.2rem;
|
line-height: 1.2rem;
|
||||||
@@ -130,6 +143,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#contact{
|
#contact{
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
{% block javascripts %}
|
{% block javascripts %}
|
||||||
{% if show_onpage_menu %}
|
{% if show_onpage_menu %}
|
||||||
{% do assets.add('theme://js/singlepagenav.min.js') %}
|
{% do assets.add('theme://js/singlepagenav.min.js') %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ parent() }}
|
{{ parent() }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -49,7 +50,7 @@
|
|||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
|
||||||
<div id="{{ _self.pageLinkName(page.menu) }}">
|
<div id="{{ _self.pageLinkName(page.menu) }}" class="section">
|
||||||
<div class="visu-album">
|
<div class="visu-album">
|
||||||
{% set header_image_media = page.media.images|first %}
|
{% set header_image_media = page.media.images|first %}
|
||||||
{{header_image_media}}
|
{{header_image_media}}
|
||||||
@@ -68,7 +69,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% for module in page.collection() %}
|
{% for module in page.collection() %}
|
||||||
<div id="{{ _self.pageLinkName(module.menu) }}">
|
<div id="{{ _self.pageLinkName(module.menu) }}" class="section">
|
||||||
{{ module.content }}
|
{{ module.content }}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -3,10 +3,12 @@
|
|||||||
{% block body %}
|
{% block body %}
|
||||||
|
|
||||||
<div class="column red">
|
<div class="column red">
|
||||||
<div class="chap">
|
<div class="citation">
|
||||||
|
|
||||||
<h2>{{page.title|upper}}</h2>
|
|
||||||
{{page.content}}
|
{{page.content}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="chap">
|
||||||
|
<h2>{{page.title|upper}}</h2>
|
||||||
|
|
||||||
{% for module in page.collection() %}
|
{% for module in page.collection() %}
|
||||||
<a href="#{{module.title}}">{{module.title|upper}}</a>
|
<a href="#{{module.title}}">{{module.title|upper}}</a>
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
{% do assets.addJs('jquery', 101) %}
|
{% do assets.addJs('jquery', 101) %}
|
||||||
{% do assets.addJs('theme://js/jquery.treemenu.js', {group:'bottom'}) %}
|
{% do assets.addJs('theme://js/jquery.treemenu.js', {group:'bottom'}) %}
|
||||||
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
|
{% do assets.addJs('theme://js/site.js', {group:'bottom'}) %}
|
||||||
|
{% do assets.add('theme://js/fullPage.js') %}
|
||||||
{% do assets.add('theme://js/script.js') %}
|
{% do assets.add('theme://js/script.js') %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user