mirror of
https://scm.univ-tours.fr/22107988t/rappaurio-sae501_502.git
synced 2025-08-29 16:25:58 +02:00
v1.0 du site web
This commit is contained in:
12
app/node_modules/wikiapi/docs/scripts/nav.js
generated
vendored
Normal file
12
app/node_modules/wikiapi/docs/scripts/nav.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
function scrollToNavItem() {
|
||||
var path = window.location.href.split('/').pop().replace(/\.html/, '');
|
||||
document.querySelectorAll('nav a').forEach(function(link) {
|
||||
var href = link.attributes.href.value.replace(/\.html/, '');
|
||||
if (path === href) {
|
||||
link.scrollIntoView({block: 'center'});
|
||||
return;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
scrollToNavItem();
|
Reference in New Issue
Block a user