Skip to content
Snippets Groups Projects
Commit 920d1c9a authored by Adam Palay's avatar Adam Palay
Browse files

make it so that mathplayer message only appears when mathjax is on the page

parent 065a1cf2
No related branches found
No related tags found
No related merge requests found
......@@ -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")
<%! from django.utils.translation import ugettext as _ %>
<div class="sr message-accessibility message" id="mathjax-accessibility-message" aria-hidden="false">
<div class="sr message-accessibility message" id="mathjax-accessibility-message" aria-hidden="true">
<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="false">
<!--[if (lt IE 6)|(gt IE 9)|(!IE)]><!-->
<div class="sr message-accessibility message" id="mathplayer-browser-message" aria-hidden="true">
<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]-->
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment