2024-10-03 18:06:33 +02:00
|
|
|
/*!
|
|
|
|
* Start Bootstrap - Resume v7.0.6 (https://startbootstrap.com/theme/resume)
|
|
|
|
* Copyright 2013-2023 Start Bootstrap
|
|
|
|
* Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-resume/blob/master/LICENSE)
|
|
|
|
*/
|
|
|
|
//
|
|
|
|
// Scripts
|
|
|
|
//
|
|
|
|
|
|
|
|
window.addEventListener('DOMContentLoaded', event => {
|
|
|
|
|
|
|
|
// Activate Bootstrap scrollspy on the main nav element
|
|
|
|
const sideNav = document.body.querySelector('#sideNav');
|
|
|
|
if (sideNav) {
|
|
|
|
new bootstrap.ScrollSpy(document.body, {
|
|
|
|
target: '#sideNav',
|
|
|
|
rootMargin: '0px 0px -40%',
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
// Collapse responsive navbar when toggler is visible
|
|
|
|
const navbarToggler = document.body.querySelector('.navbar-toggler');
|
|
|
|
const responsiveNavItems = [].slice.call(
|
|
|
|
document.querySelectorAll('#navbarResponsive .nav-link')
|
|
|
|
);
|
|
|
|
responsiveNavItems.map(function (responsiveNavItem) {
|
|
|
|
responsiveNavItem.addEventListener('click', () => {
|
|
|
|
if (window.getComputedStyle(navbarToggler).display !== 'none') {
|
|
|
|
navbarToggler.click();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2025-01-07 11:24:52 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
function showCategory(category) {
|
|
|
|
document.getElementById('programming-projects').style.display =
|
|
|
|
category === 'programming' ? 'block' : 'none';
|
|
|
|
document.getElementById('graphics-projects').style.display =
|
|
|
|
category === 'graphics' ? 'block' : 'none';
|
|
|
|
}
|