Updated About page

This commit is contained in:
2025-05-17 13:23:10 +02:00
parent ce119f7552
commit 70c598a2f8
8 changed files with 604 additions and 267 deletions

28
static/js/about.js Normal file
View File

@@ -0,0 +1,28 @@
document.querySelectorAll('.panel-small')?.forEach(el => {
el.addEventListener('click', (event) => {
let self = event.target;
if (self.classList.contains('panel-small') || self.closest('.panel-small')){
if (!self.classList.contains('panel-small')){
self = self.closest('.panel-small');
}
if (self.classList.contains('source_code')) {
window.open('https://github.com/clarinsi/STARK', '_blank');
return; // Skip further handling
}
const id = self?.id;
if (id){
document.querySelectorAll('.panel-content-section')?.forEach(section => {
section.hidden = true;
});
document.querySelectorAll('.panel-small')?.forEach(el => el.classList.remove('active'))
self.classList.add('active');
const targetSection = document.querySelector(`[data-content-for="${id}"]`);
if (targetSection) {
targetSection.hidden = false;
}
}
}
})
})