Difference between revisions of "Template:Paris Saclay"

m
m
Line 37: Line 37:
 
     document.getElementById('compl').appendChild(document.getElementById('toc'));
 
     document.getElementById('compl').appendChild(document.getElementById('toc'));
 
     document.getElementById('toctitle').outerHTML = "";
 
     document.getElementById('toctitle').outerHTML = "";
    //$('#toc').children("ul").addClass("nav");
 
    $('#toc').children("ul").attr('id', 'tocnav');
 
    $('#tocnav').addClass('nav');
 
    $('body').scrollspy({ target: '#toc', offset:40 });
 
  
    $('#toc').on('activate.bs.scrollspy', function () {
 
        $('li.active').prevAll().addClass('before');
 
        $('li.active').removeClass('before');
 
        $('li.active').nextAll().removeClass('before');
 
    })
 
    $('#toc').affix({
 
        offset: {
 
            top: 40,
 
            bottom: function () {return (this.bottom = $('.footer').outerHeight(true) + 100)}
 
        }
 
    })
 
 
});
 
});
 
</script>
 
</script>

Revision as of 10:15, 9 October 2016