mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-22 22:02:21 +00:00
15 lines
421 B
JavaScript
15 lines
421 B
JavaScript
document.getElementById('help-link').addEventListener('click', loadHelpPage);
|
|
|
|
|
|
function loadHelpPage(event) {
|
|
event.preventDefault(); // Prevent the default link behavior
|
|
|
|
fetch('/help')
|
|
.then(response => response.text())
|
|
.then(html => {
|
|
document.getElementById('help').innerHTML = html;
|
|
})
|
|
.catch(error => {
|
|
console.error('Error loading help page:', error);
|
|
});
|
|
} |