Commit c9f17428 by sanfordstudent Committed by GitHub

Merge pull request #14511 from edx/sstudent/TNL-6351

moving tabindex
parents fc8e7fe2 0a5ec531
...@@ -71,7 +71,9 @@ ${HTML(fragment.foot_html())} ...@@ -71,7 +71,9 @@ ${HTML(fragment.foot_html())}
<div class="course-wrapper"> <div class="course-wrapper">
<section class="course-content" id="course-content"> <section class="course-content" id="course-content">
${HTML(fragment.body_html())} <main id="main" tabindex="-1" aria-label="Content">
${HTML(fragment.body_html())}
</main>
</section> </section>
</div> </div>
% if course.show_calculator or is_edxnotes_enabled(course): % if course.show_calculator or is_edxnotes_enabled(course):
......
...@@ -151,39 +151,39 @@ ${HTML(fragment.foot_html())} ...@@ -151,39 +151,39 @@ ${HTML(fragment.foot_html())}
</div> </div>
% endif % endif
<section class="course-content" id="course-content"> <section class="course-content" id="course-content">
<div class="path"></div> <main id="main" tabindex="-1" aria-label="Content">
<main id="main" aria-label="Content" tabindex="-1"> <div class="path"></div>
% if getattr(course, 'entrance_exam_enabled') and \ % if getattr(course, 'entrance_exam_enabled') and \
getattr(course, 'entrance_exam_minimum_score_pct') and \ getattr(course, 'entrance_exam_minimum_score_pct') and \
entrance_exam_current_score is not UNDEFINED: entrance_exam_current_score is not UNDEFINED:
% if not entrance_exam_passed: % if not entrance_exam_passed:
<p class="sequential-status-message"> <p class="sequential-status-message">
${_('To access course materials, you must score {required_score}% or higher on this \ ${_('To access course materials, you must score {required_score}% or higher on this \
exam. Your current score is {current_score}%.').format( exam. Your current score is {current_score}%.').format(
required_score=int(round(course.entrance_exam_minimum_score_pct * 100)), required_score=int(round(course.entrance_exam_minimum_score_pct * 100)),
current_score=int(round(entrance_exam_current_score * 100)) current_score=int(round(entrance_exam_current_score * 100))
)} )}
</p> </p>
<script type="text/javascript"> <script type="text/javascript">
$(document).ajaxSuccess(function(event, xhr, settings) { $(document).ajaxSuccess(function(event, xhr, settings) {
if (settings.url.indexOf("xmodule_handler/problem_check") > -1) { if (settings.url.indexOf("xmodule_handler/problem_check") > -1) {
var data = JSON.parse(xhr.responseText); var data = JSON.parse(xhr.responseText);
if (data.entrance_exam_passed){ if (data.entrance_exam_passed){
location.reload(); location.reload();
}
} }
} });
}); </script>
</script> % else:
% else: <p class="sequential-status-message">
<p class="sequential-status-message"> ${_('Your score is {current_score}%. You have passed the entrance exam.').format(
${_('Your score is {current_score}%. You have passed the entrance exam.').format( current_score=int(round(entrance_exam_current_score * 100))
current_score=int(round(entrance_exam_current_score * 100)) )}
)} </p>
</p> % endif
% endif % endif
% endif
${HTML(fragment.body_html())} ${HTML(fragment.body_html())}
</main> </main>
</section> </section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment