From: soufiane Date: Wed, 22 May 2024 09:00:54 +0000 (+0200) Subject: wip #6927 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=96139b33be9db3c2a6ba7246efc735c229d7878e;p=fluidbook-toolbox-quiz.git wip #6927 --- diff --git a/js/quiz.accessibility.js b/js/quiz.accessibility.js index 4d36fcd..ad086dd 100644 --- a/js/quiz.accessibility.js +++ b/js/quiz.accessibility.js @@ -46,6 +46,10 @@ QuizAccessibility.prototype = { }, setTabindex: function(tabindex) { + if(!tabindex) { + this.quiz.screens.getActiveScreen().find(".screen a").removeAttr("tabindex") + return false; + } this.quiz.screens.getActiveScreen().find(".screen a").attr('tabindex',tabindex) } } diff --git a/js/quiz.js b/js/quiz.js index e90923d..d858ff4 100644 --- a/js/quiz.js +++ b/js/quiz.js @@ -146,6 +146,7 @@ Quiz.prototype = { this.screens.intro.show(); this.progressbar.update(); this.updateIcons(); + this.accessibility.setTabindex(false) } }