Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
920d1c9a
Commit
920d1c9a
authored
11 years ago
by
Adam Palay
Browse files
Options
Downloads
Patches
Plain Diff
make it so that mathplayer message only appears when mathjax is on the page
parent
065a1cf2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lms/static/coffee/src/mathjax_accessible.coffee
+4
-0
4 additions, 0 deletions
lms/static/coffee/src/mathjax_accessible.coffee
lms/templates/mathjax_accessible.html
+4
-4
4 additions, 4 deletions
lms/templates/mathjax_accessible.html
with
8 additions
and
4 deletions
lms/static/coffee/src/mathjax_accessible.coffee
+
4
−
0
View file @
920d1c9a
...
...
@@ -12,5 +12,9 @@ $ ->
# if not, set 'aria-hidden' to 'true'
if
MathJax
?
and
not
isMPInstalled
()
$
(
"#mathjax-accessibility-message"
).
attr
(
"aria-hidden"
,
"false"
)
if
MathJax
?
and
$
(
"#mathplayer-browser-message"
).
length
>
0
$
(
"#mathplayer-browser-message"
).
attr
(
"aria-hidden"
,
"false"
)
else
$
(
"#mathjax-accessibility-message"
).
attr
(
"aria-hidden"
,
"true"
)
This diff is collapsed.
Click to expand it.
lms/templates/mathjax_accessible.html
+
4
−
4
View file @
920d1c9a
<
%!
from
django.utils.translation
import
ugettext
as
_
%
>
<div
class=
"sr message-accessibility message"
id=
"mathjax-accessibility-message"
aria-hidden=
"
fals
e"
>
<div
class=
"sr message-accessibility message"
id=
"mathjax-accessibility-message"
aria-hidden=
"
tru
e"
>
<p
class=
"copy"
>
${
_("This page features MathJax technology to render mathematical "
"formulae. To make math accessibile, we suggest using the MathPlayer "
...
...
@@ -12,11 +12,11 @@
}
</p>
</div>
<!--[if (lt IE6)|(gt IE 9)|
!
(IE)]><!-->
<div
class=
"sr message-accessibility message"
id=
"mathplayer-browser-message"
aria-hidden=
"
fals
e"
>
<!--[if (lt IE
6)|(gt IE 9)|(
!
IE)]><!-->
<div
class=
"sr message-accessibility message"
id=
"mathplayer-browser-message"
aria-hidden=
"
tru
e"
>
<p
class=
"copy"
>
${_("Your browser does not support the MathPlayer plugin. To use "
"MathPlayer, please use Internet Explorer 6 through 9.")}
</p>
</div>
<!--[endif]-->
<!--
<!
[endif]-->
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment