14 lines
503 B
JavaScript
14 lines
503 B
JavaScript
// Fetch and render FAQ.md
|
|
(async function loadReadme(){
|
|
try {
|
|
const response = await fetch('/FAQ.md', {cache: 'no-cache'});
|
|
if(!response.ok) throw new Error('FAQ not found');
|
|
const markdown = await response.text();
|
|
const html = marked.parse(markdown);
|
|
document.getElementById('readme-content').innerHTML = html;
|
|
} catch(err) {
|
|
console.error('Error loading FAQ:', err);
|
|
document.getElementById('readme-content').innerHTML = '<p>Documentation unavailable.</p>';
|
|
}
|
|
})();
|