screen readers. Also, the mathjax message should be wrapped to prevent non-IE browsers from complaining about a feature that is IE-only.
21 lines
891 B
HTML
21 lines
891 B
HTML
<%! from django.utils.translation import ugettext as _ %>
|
|
<!--[if IE]>
|
|
<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 "
|
|
"plugin. Please visit the {link_start}MathPlayer Download "
|
|
"Page{link_end} to download the plugin for your browser.").format(
|
|
link_start = u'<a href="//www.dessci.com/en/products/mathplayer/'
|
|
'download.htm">',
|
|
link_end = u'</a>')
|
|
}</p>
|
|
</div>
|
|
<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]-->
|