Forum Discussion
JamesEsser
4 years agoCommunity Member
System variable(s) used to unlock the menu links?
Does anyone know the system variable(s) used to unlock the menu links to review slides after a Pre Test-Out quiz is passed. Or if it's possible?
I am using the modern GUI wrapper with the menu res...
RussLickteig
2 years agoCommunity Member
Hey Math and Ted.
This code you offered up removes the "lock" symbol from the Menu but it does not unlock the menu item. Any thoughts as to why this is happening? I assume you were truly trying to unlock the Menu item vs just hiding the symbol?
const boxes = document.querySelectorAll('.cs-listitem');
for (const box of boxes) {
box.classList.remove('cs-restricted');
}
const menuItems =document.querySelector("#outline-content > ul > li");
const overlay = document.querySelector("#olID");
overlay.remove()
Ultimately I would like to remove the lock symbol and replace it with the "Check" but it has to be truly unlocked so the user can choose any slide within the skipped slides in a Module.