GenAI Policy@smals
Get familiar with the Smals GenAI Policy and learn how to use GenAI responsibly at Smals.
Internal Smals? Click the button or apply via this link.
External IT expert? Mail to eacademy@smals.be to request access.
Don’t forget to log in to eAcademy first (VPN connection required), if you have already been granted access.
Apply for this course
const hideEnrolWarning = () => {
mdlUtils.hideAll("div.continuebutton");
mdlUtils.hideById("notice");
};
const enhanceEhrButtons = (root = document) => {
document.querySelectorAll('.coursebox, .course-info-container').forEach(container => {
const link = container.querySelector('a[href*="course/view.php?id="]');
if (!link) return;
//get de id van de cursus
const match = link.href.match(/id=(\d+)/);
if (!match) return;
const courseId = match[1];
const btn = container.querySelector('.ehr-btn');
if (!btn) return;
// voorkom dubbel uitvoeren
if (btn.dataset.enhanced) return;
btn.dataset.enhanced = "true";
let ehrid = btn.dataset.ehrid;
// ✅ als FilterCodes werkte → gewoon gebruiken
if (ehrid && ehrid.trim() !== '' && !ehrid.includes('{')) {
btn.href = btn.dataset.base + ehrid;
return;
}
// ❌ fallback: reconstructie (optioneel)
btn.href = "https://eacademy.smals.be/course/enrol.php?id=" + courseId;
});
}
mdlUtils.runWhenReady(hideEnrolWarning);
mdlUtils.runWhenReady(enhanceEhrButtons);
mdlUtils.observeDom(enhanceEhrButtons);
