lollms-webui/static/js/training.js

15 lines
421 B
JavaScript
Raw Normal View History

2023-04-11 23:07:54 +00:00
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);
});
}