retour à la ligne programme, deploiement onglet ressource

This commit is contained in:
2021-04-17 17:42:39 +02:00
parent a523f80efa
commit 25cc038e98
203 changed files with 9224 additions and 136 deletions
+48 -86
View File
@@ -23,8 +23,14 @@ function scrollHeader() {
// console.log("je ne te vois pas");
// }
// };
// var elements = document.getElementsByClass('souligne');
//
// elements.forEach(function(element) {
// new WhenInViewport(element, function(elementInViewport) {
// elementInViewport.classList.add('inViewport');
// });
// });
//
@@ -44,9 +50,10 @@ jQuery(document).ready(function($){
}
});
// parallax slideshow
$(document).ready(function() {
var imgSrc = ["/user/themes/epau-antimatter/images/14360_default_big.jpg", "/user/themes/epau-antimatter/images/10361_web_01.jpg", "/user/themes/epau-antimatter/images/hyperliens_marseille_.PNG"];
var imgSrc = ["http://ouidade.net/dev-epau.archi.fr/user/themes/epau-antimatter/images/14360_default_big.jpg", "http://ouidade.net/dev-epau.archi.fr/user/themes/epau-antimatter/images/10361_web_01.jpg", "http://ouidade.net/dev-epau.archi.fr/user/themes/epau-antimatter/images/hyperliens_marseille.png",];
var counter = 1;
var duration = 4000;
@@ -76,56 +83,9 @@ jQuery(document).ready(function($){
});
// var imagesArray = [ url("/user/themes/epau-antimatter/images/14360_default_big.jpg") ,
// url("/user/themes/epau-antimatter/images/10361_web_01.jpg") ,
// url("/user/themes/epau-antimatter/images/hyperliens_marseille_.PNG") ,
// url("/user/themes/epau-antimatter/images/jeux-olypiques-paris-2024-village-athle-lot-e2.jpg") ;];
//
// function preloadImg(pictureUrls, callback) {
// var i, j, loaded = 0;
// var imagesArray = [];
//
// for (i = 0, j = pictureUrls.length; i < j; i++) {
// imagesArray.push(new Image());
// }
// for (i = 0, j = pictureUrls.length; i < j; i++) {
// (function (img, src) {
// img.onload = function () {
// if (++loaded == pictureUrls.length && callback) {
// callback(imagesArray);
// }
// };
// img.src = src;
// }(imagesArray[i], pictureUrls[i]));
// }
// };
//
//
// function roll(imagesArray, currentPos, max){
// if (max < 0) {
// return;
// }
// var slide = $('.parallax-mirror').find('img').attr('src', imagesArray[currentPos].src);
// slide.fadeIn(2000, function() {
// slide.fadeOut(1500, function() {
// currentPos++;
// if(currentPos >= imagesArray.length){
// currentPos = 0;
// max--;
// }
// roll(imagesArray, currentPos, max);
// });
// });
// }
//
// $(function () {
// preloadImg(imagesArray, function (imagesArray) {
// roll(imagesArray, 0, 3);
// });
// });
//
// // souligne apparait on scrollLock
// $(function () {
// var element = $("#triggerOnScroll");
// $(window).scroll(function () {
@@ -165,6 +125,8 @@ jQuery(document).ready(function($){
});
// Responsive Menu
// POPIN Biographies
$(".bouton").click(function(event){
@@ -187,41 +149,41 @@ jQuery(document).ready(function($){
return false;
});
// Animate on scroll
$(function() {
var $window = $(window),
win_height_padded = $window.height() * 1.1,
isTouch = Modernizr.touch;
if (isTouch) { $('.after-h1').addClass('animated'); }
$window.on('scroll', revealOnScroll);
function revealOnScroll() {
var scrolled = $window.scrollTop(),
win_height_padded = $window.height() * 1.1;
// Show...
$(".after-h1:not(.animated)").each(function () {
var $this = $(this),
offsetTop = $this.offset().top;
if (scrolled + win_height_padded > offsetTop) {
if ($this.data('timeout')) {
window.setTimeout(function(){
$this.addClass('animated ' + $this.data('animation'));
}, parseInt($this.data('timeout'),10));
} else {
$this.addClass('animated ' + $this.data('animation'));
}
}
});
}
revealOnScroll();
});
//
// // Animate on scroll
// $(function() {
//
// var $window = $(window),
// win_height_padded = $window.height() * 1.1,
// isTouch = Modernizr.touch;
//
// if (isTouch) { $('.after-h1').addClass('animated'); }
//
// $window.on('scroll', revealOnScroll);
//
// function revealOnScroll() {
// var scrolled = $window.scrollTop(),
// win_height_padded = $window.height() * 1.1;
//
// // Show...
// $(".after-h1:not(.animated)").each(function () {
// var $this = $(this),
// offsetTop = $this.offset().top;
//
// if (scrolled + win_height_padded > offsetTop) {
// if ($this.data('timeout')) {
// window.setTimeout(function(){
// $this.addClass('animated ' + $this.data('animation'));
// }, parseInt($this.data('timeout'),10));
// } else {
// $this.addClass('animated ' + $this.data('animation'));
// }
// }
// });
// }
//
// revealOnScroll();
// });
});