Class: Recovery

mathex. Recovery

Stores an array containing all the recovery items

new Recovery(items) → {Object}

Recovery - Recovery Class

Parameters:
Name Type Description
items Array The array describing all items. Each item is an object with properties:
  • title: string. The item title (for the index), can contain mathjax math inside the tag {% LATEX MATH HERE %}
  • tpl: string. The item tpl, can contain mathjax math inside the tag {% LATEX MATH HERE %}. Initially hidden boxes shown at mouse click must be in the form: [[x]]
Source:
Returns:
mathex.Recovery instance
Type
Object
Example
 var recovery = new mathex.Recovery([
   {
     title: "Exercises page 3",
     tpl: '<img class="toggle" src="img/img.png" width="200" />' +
          '<img class="toggle" src="img/img.png" />' +
          '<p>{% 1 + 1 %} = [[2]]</p>' +
          '<p>{% 2 + 1 %} = [[3]]</p>'
   },
   {
     title: "Problem",
     tpl: "<p>Bla bla </p>{% 3x -5 = x + 7 %}<p>Meow meow...</p>"
   }
 ]);