Skip to content

fred-wang/mathml-warning.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mathml-warning.js

This repository contains scripts to display a warning for browsers that do not have good MathML support. This is done by performing MathML feature detection for the <mpadded> element. The user may then ignore the warning or choose a polyfill. The choice will be saved during 30 days in the browser cookie.

You just need to insert one line in your document header:

<html>
  <head>
    ...
    <script src="https://fred-wang.github.io/mathml-warning.js/mpadded-min.js"></script>
    ...
  </head>
  ...
</html>

The english strings are specified in the mpadded.js file. Edit the locales.json file if you wish to add more languages.

About

MathML Warnings for browsers without good MathML support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •