async function loadLinks() { const container = document.getElementById('links-container'); if (!container) return; try { const response = await fetch('./assets/data/links.json'); if (!response.ok) { throw new Error(`Failed to load links: ${response.status}`); } const groups = await response.json(); container.innerHTML = groups.map(group => `
${group.iconSvg}

${group.title}

${group.links.map(link => `
${link.iconClass ? `
` : link.iconSvg} ${link.subtitle ? `
${link.title}
${link.subtitle}
` : ` ${link.title} `}
${link.badge ? ` ${link.badge} ` : ''} ${link.arrowIcon ? ` ` : ''}
`).join('')}
`).join(''); } catch (error) { console.error('Error loading links:', error); container.innerHTML = `
Failed to load application links. Please try refreshing the page.
`; } } // Load links when the DOM is loaded document.addEventListener('DOMContentLoaded', loadLinks);