Commit 227eb3b0 authored by Julie Blanc's avatar Julie Blanc

suppression des fichiers pagedmedia inutiles

parent 0acbdb86
This diff is collapsed.
window.onload=function(){
var area = document.getElementsByClassName('area');
var interval = setTimeout(function() {
var classPage = "page";
var classPageLeft ="left_page";
var classPageRight ="right_page";
for(var a = 0; a < area.length; a++)
{
var el = area[a];
var fragment= area[a].getElementsByClassName('fragment');
/* Move sidenotes in sidenotes area */
for(var i = 0; i < fragment.length; i++) {
var elside = fragment[i];
do {
elside = elside.parentElement;
if(elside.classList.contains(classPageLeft) == true){
fragment[i].classList.add("fragment-left");
}else if(elside.classList.contains(classPageRight) == true){
fragment[i].classList.add("fragment-right");
}
} while (!elside.classList.contains(classPage));
}
}
}, 5000);
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment