Skip to content
Snippets Groups Projects
Commit 7df2a02e authored by ROULOIS Alexandre's avatar ROULOIS Alexandre :bicyclist:
Browse files

add jQuery

parent 037f0599
No related branches found
No related tags found
2 merge requests!35Main,!34Develop
......@@ -16,7 +16,6 @@
"i18next": "^21.6.6",
"i18next-fs-backend": "^1.1.4",
"i18next-http-middleware": "^3.1.5",
"jquery": "^3.6.4",
"leaflet": "^1.9.3",
"moment": "^2.29.1",
"morgan": "~1.9.0",
......
// pathname eg: /home
const path = $(location).attr('pathname').substr(1);
// menu: active tab
$('.nav-link').each(function() {
if (path != '') {
if (path == $(this).attr('id')) {
$(this).addClass('active');
$(this).attr('aria-current', 'page');
} else if (path.startsWith('masters')) {
$('#mastersDropdown').addClass('active');
$('#mastersDropdown').attr('aria-current', 'page');
}
} else {
$('#home').addClass('active');
$('#home').attr('aria-current', 'page');
}
});
\ No newline at end of file
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment