Skip to content

Instantly share code, notes, and snippets.

CodeBot = {
start: function() {
var self = this;
self.spendAll = function() {
var score = this.toFixed(Number(Meteor.users.findOne({_id:Meteor.userId()}).profile.score));
$(".details").append('<input type="button" id="' + score + '" value="LOL" class="buy btn span4">');
$("#" + score).click();
}
self.toFixed = function(x) {
if (Math.abs(x) < 1.0) {