lollms-webui/static/js/training.js
2023-04-12 01:34:50 +02:00

15 lines
433 B
JavaScript

document.getElementById('training-link').addEventListener('click', loadHelpPage);
function loadHelpPage(event) {
event.preventDefault(); // Prevent the default link behavior
fetch('/training')
.then(response => response.text())
.then(html => {
document.getElementById('training').innerHTML = html;
})
.catch(error => {
console.error('Error loading help page:', error);
});
}