Math.NET Numerics
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
547 B

$(document).ready(function() {
$('div.example').each(function(i, div) {
var a = $('a', div);
var pre = $('pre', div);
a.pre = pre;
a.preVisible = false;
pre.hide();
a.click(function() {
if (a.preVisible) {
a.pre.hide();
a.text('Show Example');
a.preVisible = false;
} else {
a.pre.show();
a.text('Hide Example');
a.preVisible = true;
}
});
});
});