Re:Show HN: Speedsums
by lukaszg on Saturday February 08, 2014 @01:51PM
(#7202100)
// run in firebug and click & enter input...
$('#answer').click(function(e){
var value = eval($('#question').text().replace('=', '').replace('÷', '/').replace('x', '*').replace(/\s/g, ''));
console.log($('#question').text() + value);
this.value = value;
})
[ Parent
| on HN ]
There are no comments on this comment yet.