Difference between revisions of "Template:Paris Saclay"

m
m
Line 31: Line 31:
 
<script>
 
<script>
 
$(document).ready(function() {
 
$(document).ready(function() {
     $('body').scrollspy({ target: '#toc', offset:40 });
+
    $('#toc').children("ul").addClass("nav");
 +
    $('#toc').children("ul").id = "tocnav";
 +
     $('body').scrollspy({ target: '#tocnav', offset:40 });
 
/*    $('#toc').on('activate.bs.scrollspy', function () {
 
/*    $('#toc').on('activate.bs.scrollspy', function () {
 
         $('li.active').prevAll().addClass('before');
 
         $('li.active').prevAll().addClass('before');

Revision as of 12:34, 10 July 2016