Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
c9f17428
Commit
c9f17428
authored
Feb 22, 2017
by
sanfordstudent
Committed by
GitHub
Feb 22, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14511 from edx/sstudent/TNL-6351
moving tabindex
parents
fc8e7fe2
0a5ec531
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
31 deletions
+33
-31
lms/templates/courseware/courseware-chromeless.html
+3
-1
lms/templates/courseware/courseware.html
+30
-30
No files found.
lms/templates/courseware/courseware-chromeless.html
View file @
c9f17428
...
...
@@ -71,7 +71,9 @@ ${HTML(fragment.foot_html())}
<div
class=
"course-wrapper"
>
<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>
</div>
% if course.show_calculator or is_edxnotes_enabled(course):
...
...
lms/templates/courseware/courseware.html
View file @
c9f17428
...
...
@@ -151,39 +151,39 @@ ${HTML(fragment.foot_html())}
</div>
% endif
<section
class=
"course-content"
id=
"course-content"
>
<div
class=
"path"
></div>
<main
id=
"main"
aria-label=
"Content"
tabindex=
"-1"
>
% if getattr(course, 'entrance_exam_enabled') and \
getattr(course, 'entrance_exam_minimum_score_pct') and \
entrance_exam_current_score is not UNDEFINED:
% if not entrance_exam_passed:
<p
class=
"sequential-status-message"
>
${_('To access course materials, you must score {required_score}% or higher on this \
exam. Your current score is {current_score}%.').format(
required_score=int(round(course.entrance_exam_minimum_score_pct * 100)),
current_score=int(round(entrance_exam_current_score * 100))
)}
</p>
<script
type=
"text/javascript"
>
$
(
document
).
ajaxSuccess
(
function
(
event
,
xhr
,
settings
)
{
if
(
settings
.
url
.
indexOf
(
"xmodule_handler/problem_check"
)
>
-
1
)
{
var
data
=
JSON
.
parse
(
xhr
.
responseText
);
if
(
data
.
entrance_exam_passed
){
location
.
reload
();
<main
id=
"main"
tabindex=
"-1"
aria-label=
"Content"
>
<div
class=
"path"
></div>
% if getattr(course, 'entrance_exam_enabled') and \
getattr(course, 'entrance_exam_minimum_score_pct') and \
entrance_exam_current_score is not UNDEFINED:
% if not entrance_exam_passed:
<p
class=
"sequential-status-message"
>
${_('To access course materials, you must score {required_score}% or higher on this \
exam. Your current score is {current_score}%.').format(
required_score=int(round(course.entrance_exam_minimum_score_pct * 100)),
current_score=int(round(entrance_exam_current_score * 100))
)}
</p>
<script
type=
"text/javascript"
>
$
(
document
).
ajaxSuccess
(
function
(
event
,
xhr
,
settings
)
{
if
(
settings
.
url
.
indexOf
(
"xmodule_handler/problem_check"
)
>
-
1
)
{
var
data
=
JSON
.
parse
(
xhr
.
responseText
);
if
(
data
.
entrance_exam_passed
){
location
.
reload
();
}
}
}
});
</script>
% else:
<p
class=
"sequential-status-message"
>
${_('Your score is {current_score}%. You have passed the entrance exam.').format(
current_score=int(round(entrance_exam_current_score * 100))
)}
</p>
}
);
</script>
% else:
<p
class=
"sequential-status-message"
>
${_('Your score is {current_score}%. You have passed the entrance exam.').format(
current_score=int(round(entrance_exam_current_score * 100))
)}
</p>
% endif
% endif
% endif
${HTML(fragment.body_html())}
${HTML(fragment.body_html())}
</main>
</section>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment