@@ -8225,7 +8283,7 @@ footer hr {
Moments when the participants ask questions to the panelists!😊✨
-
For those who were not physically present with us
+
For those not physically present with us
We know that not everyone managed to attend the NLB Gallery, but we therefore provided a high-quality livestream. The event was broadcast live and is now available for re-watching. If you want to feel the atmosphere and hear the honest stories from the panel, you can watch the entire event at this link Watch the video here.
@@ -11298,23 +11356,56 @@ document.addEventListener('DOMContentLoaded', function() {
/**
* ===================================================================
- * 5. SCROLLSPY IN PROGRESS BAR ZA STRANI ČLANKOV
+ * 5. SCROLLSPY IN PROGRESS BAR ZA STRANI ČLANKOV (POSODOBLJENO)
* ===================================================================
*/
try {
const articlePage = document.querySelector('.article-page');
if (articlePage) {
const scrollspyNav = document.querySelector('.scrollspy-nav');
+ const mobileHeader = document.querySelector('.mobile-article-header');
const mobileTitle = document.getElementById('mobile-article-title');
+ const mobileDropdown = document.querySelector('.mobile-scrollspy-dropdown');
+ const mobileLinksContainer = document.getElementById('mobile-scrollspy-links');
const progressBar = document.querySelector('.progress-bar');
- const headings = articlePage.querySelectorAll('.article-body h2');
- const navLinks = scrollspyNav ? scrollspyNav.querySelectorAll('a') : [];
+ const headings = Array.from(articlePage.querySelectorAll('.article-body h2'));
+ const desktopNavLinks = scrollspyNav ? Array.from(scrollspyNav.querySelectorAll('a')) : [];
- // --- Logic for Progress Bar ---
+ // --- Dinamično ustvarjanje mobilnega spustnega seznama ---
+ if (headings.length > 0 && mobileLinksContainer) {
+ headings.forEach(heading => {
+ const listItem = document.createElement('li');
+ const link = document.createElement('a');
+ link.href = `#${heading.id}`;
+ link.textContent = heading.textContent;
+ listItem.appendChild(link);
+ mobileLinksContainer.appendChild(listItem);
+ });
+ }
+
+ // --- Logika za odpiranje/zapiranje mobilnega spustnega seznama ---
+ if (mobileHeader && mobileDropdown) {
+ mobileHeader.addEventListener('click', (e) => {
+ // Preprečimo, da se meni zapre, če kliknemo na povezavo znotraj njega
+ if (!e.target.closest('a')) {
+ mobileHeader.classList.toggle('open');
+ mobileDropdown.classList.toggle('open');
+ }
+ });
+
+ // Dodamo dogodek za zapiranje menija ob kliku na povezavo
+ mobileDropdown.querySelectorAll('a').forEach(link => {
+ link.addEventListener('click', () => {
+ mobileHeader.classList.remove('open');
+ mobileDropdown.classList.remove('open');
+ });
+ });
+ }
+
+ // --- Logika za Progress Bar ---
function updateProgressBar() {
if (!progressBar) return;
-
const scrollableHeight = document.documentElement.scrollHeight - window.innerHeight;
const scrollTop = window.scrollY;
@@ -11326,38 +11417,42 @@ document.addEventListener('DOMContentLoaded', function() {
}
}
- // --- Logic for Scrollspy ---
- const observer = new IntersectionObserver((entries) => {
- entries.forEach(entry => {
- if (entry.isIntersecting) {
+ // --- Logika za Scrollspy ---
+ if (headings.length > 0) {
+ const observer = new IntersectionObserver((entries) => {
+ entries.forEach(entry => {
const id = entry.target.getAttribute('id');
-
- // Update desktop nav
- if (navLinks.length > 0) {
- navLinks.forEach(link => {
- link.classList.remove('active');
- if (link.getAttribute('href') === `#${id}`) {
- link.classList.add('active');
- }
- });
+ const desktopNavLink = desktopNavLinks.find(link => link.getAttribute('href') === `#${id}`);
+ const mobileNavLink = mobileLinksContainer ? mobileLinksContainer.querySelector(`a[href="#${id}"]`) : null;
+
+ if (entry.isIntersecting) {
+ // Posodobi namizno navigacijo
+ if (desktopNavLink) {
+ desktopNavLinks.forEach(link => link.classList.remove('active'));
+ desktopNavLink.classList.add('active');
+ }
+ // Posodobi mobilni naslov in aktivno povezavo v spustnem seznamu
+ if (mobileTitle) {
+ mobileTitle.textContent = entry.target.textContent;
+ }
+ if (mobileNavLink) {
+ mobileLinksContainer.querySelectorAll('a').forEach(link => link.classList.remove('active'));
+ mobileNavLink.classList.add('active');
+ }
}
-
- // Update mobile title
- if (mobileTitle) {
- mobileTitle.textContent = entry.target.textContent;
- }
- }
+ });
+ }, {
+ rootMargin: "-100px 0px -50% 0px" // Sproži, ko je naslov v zgornjem delu zaslona
});
- }, {
- rootMargin: "-100px 0px -50% 0px" // Trigger when heading is in the top part of the viewport
- });
- headings.forEach(heading => {
- observer.observe(heading);
- });
+ headings.forEach(heading => {
+ observer.observe(heading);
+ });
+ }
- // Attach event listener for progress bar
+ // Dodaj poslušalca dogodkov za vrstico napredka
window.addEventListener('scroll', updateProgressBar);
+ updateProgressBar(); // Klic ob nalaganju strani
}
} catch (error) {
console.error('Error in Article Scrollspy/Progress Bar setup:', error);
@@ -15648,6 +15743,12 @@ if __name__ == "__main__":
main()"""
+"./README.md" :
+"""
+msos spletna stran
+"""
+
+
"./si/index.html" :
"""
@@ -19831,6 +19932,31 @@ if __name__ == "__main__":