• Resolved t3ch4u

    (@t3ch4u)


    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 ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Jasmine

    (@hyenokian)

    Dear @t3ch4u,

    Thank you for the topic.

    I want to mention, that the plugin actually has the Enable full-screen mode option, with the help of which you can open the quiz in full-screen.

    To find this feature, please head to the Quizzes > particular quiz > Settings tab.

    See the screenshot below:

    Thank you.

    Thread Starter t3ch4u

    (@t3ch4u)

    Hi Jasmine,

    Sure, I know the plugin has that option but currently what I need is activate the full screen mode of the quiz without clicking that icon manually because I want to activate that feature automatically depending on another conditional (just like the previous comment-example, that’s why I’m trying to use JS).

    Maybe do you know some way to activate it with JS? Thank you!

    Plugin Support Jasmine

    (@hyenokian)

    Dear @t3ch4u,

    Thank you for your reply.

    At the moment, unfortunately, it is not possible to achieve this result as achieving this will be against the Browser rules.

    It is not possible to automatically perform trigger-click via JavaScript so that the full-screen can be opened, as the Browsers don’t accept this, and an error occurs. 

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Enable Full Screen Mode’ is closed to new replies.