Enable Full Screen Mode
-
Hi, hope you’re doing well,
Currently I don’t have any “bug” but in this case I’m trying to make the quiz displays in full screen when I make an action (click another button, or when a value is equal to…; etc). When I try to do it with JS in the next way:
let fullScreen = document.querySelector(“#ays-quiz-container-1 > div.ays-questions-container > div > a”); //That’s the a tag which make the quiz full screen
if ( word == word ){ fullScreen.click; } // And… It doesn’t wok, neither with click();
Also I tried with:
quizDiv.requestFullscreen().catch(err => {
alert(Error attempting to enable full-screen mode: ${err.message} (${err.name})
);
});
} else {
document.exitFullscreen();
}But strangely it works randomly… Do you know maybe somehow to activate the full screen with JS for your quizes? That would save me! Thanks, it’s a great plugin ??
- The topic ‘Enable Full Screen Mode’ is closed to new replies.