Forum Discussion
SarahPowers-63f
3 years agoCommunity Member
Trigger to Change Player Flow
I'm trying to figure out if it is possible to use a trigger or a javascript execution with player variables to switch the player from restricted to free based on entering information into an input f...
MathNotermans-9
3 years agoCommunity Member
Well i got it one step further.
When setting the free player to restricted this code ensures it cannot be clicked...const boxes = document.querySelectorAll('.cs-listitem');
for (const box of boxes) {
box.classList.add('cs-restricted');
}
const menuList =document.querySelector("#outline-content > ul > li");
menuList.addEventListener('click', (event) => {
event.stopPropagation();
});
And the icons show as needed. Only problem now...is that i cannot free the navigation anymore.
Somehow the link with the Storyline events is gone... so thats only needed to get it completly working...