JQuiz pop-out window behaviour

6 views
Skip to first unread message

Олексій Цепкало

unread,
Mar 3, 2026, 6:38:48 PM (10 days ago) Mar 3
to hotpotatoesusers
Hello!  I've got a question - where to change in the code to speed up and make working in the quiz more comfortable. I don't know if I'm the only one who's annoyed by the freezing behavior of the "Correct! Your score is 100% etc. Questions completed so far" pop-up window. I'd like to avoid clicking OK. It's enough for the window to pop up for 5 sec and then disappear. Please help. Thanks in advance.

Sean Penney

unread,
Mar 3, 2026, 8:32:44 PM (10 days ago) Mar 3
to hotpotatoesusers
I hear you, but I'm not sure what the alternative should be. At least now the user can choose when to get rid of the "Score" message. 5 seconds is a long time to wait for the pop-up window to go away automatically. For many users, 2 seconds may be too long. One second might be correct for some but too short for many. This is a hard decision to make.

Sean

Martin Holmes

unread,
Mar 3, 2026, 10:06:35 PM (10 days ago) Mar 3
to hotpotat...@googlegroups.com
I agree with Sean. When you're the teacher creating and testing the
exercises, it's easy to find yourself irritated by the popup because
you're racing through content that you already know. When you're the
student, you need time to absorb the excellent feedback which (I'm sure)
the teacher is providing for both wrong and right answers.

Cheers,
Martin
> --
> You received this message because you are subscribed to the Google
> Groups "hotpotatoesusers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to hotpotatoesuse...@googlegroups.com
> <mailto:hotpotatoesuse...@googlegroups.com>.
> To view this discussion, visit https://groups.google.com/d/msgid/
> hotpotatoesusers/1a70b8b4-f664-4a30-
> bc11-08c9c23b4801n%40googlegroups.com <https://groups.google.com/d/
> msgid/hotpotatoesusers/1a70b8b4-f664-4a30-
> bc11-08c9c23b4801n%40googlegroups.com?utm_medium=email&utm_source=footer>.


Martin Holmes

unread,
Mar 4, 2026, 11:21:45 AM (9 days ago) Mar 4
to hotpotatoesusers
If you want to do this, you'll need to modify the behaviour of the ShowMessage() function:

function ShowMessage(Feedback){
var Output = Feedback + '<br /><br />';
document.getElementById('FeedbackContent').innerHTML = Output;
var FDiv = document.getElementById('FeedbackDiv');
topZ++;
FDiv.style.zIndex = topZ;
FDiv.style.top = TopSettingWithScrollOffset(30) + 'px';

FDiv.style.display = 'block';

ShowElements(false, 'input');
ShowElements(false, 'select');
ShowElements(false, 'object');
ShowElements(true, 'object', 'FeedbackContent');

//Focus the OK button
setTimeout("document.getElementById('FeedbackOKButton').focus()", 50);

//
}

What you'll need to do is add another setTimeout call like this:

setTimeout("document.getElementById('FeedbackDiv').style.display = 'none')", 5000);

which should hide the feedback div after 5000 milliseconds.

I haven't tested this, by the way.

Hope this helps,
Martin
Reply all
Reply to author
Forward
0 new messages