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:
|
- Source:
- mathex/res-otto/js/mathex.js, line 1678
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>"
}
]);