Pages:
Author

Topic: bustabit.com -- The Social Gambling Game - page 81. (Read 293938 times)

elm
legendary
Activity: 1050
Merit: 1000
has vault its own thread? cause I didnt see one, thanks
legendary
Activity: 3402
Merit: 1227
Top Crypto Casino
I busted more than a bit there  Tongue....I'd suggest "bustalot"  Grin
hero member
Activity: 602
Merit: 500
does my account on moneypot still exist on bustabit?

or i need to create new account too? sorry just came back from holiday and noticed moneypot changed
sr. member
Activity: 420
Merit: 250
Ever wanted to run your own casino? PM me for info
bustabit will have to "earn" its name, not everyone will know that moneypot is now bustabit. So good luck on trying to get everyone to appreciate and know the new name. I did not know at first what the hell this thread was, bustabit.com -- The Social Gambling Game, until I clicked and learned it was moneypot but just rebranded.
legendary
Activity: 2422
Merit: 1451
Leading Crypto Sports Betting & Casino Platform
I have no idea what's going on!  Shocked

A rebranding, two new services, investments. So many stuff at once. Any post where we can read a summary or something? If there isn't any consider makin one! Also, good job building all these Ryan! Smiley
sr. member
Activity: 252
Merit: 250
I may lose (a lot) on moneypot////bustabit, but it's still fun! Cheesy
sr. member
Activity: 434
Merit: 252
Yay Moneypot! I was first to make a post in chat since they rebranded to Bustabit.com! 0.02 winner here! Chicken Dinner Bitcoin Winner!
legendary
Activity: 2562
Merit: 1414
Just a heads up for everyone, we'll be rebranding as bustabit.com today. There will be no downtime, and redirects and a banner will be put in place on the old moneypot.com


To celebrate, we'll have some giveaways in chat after the move!

I like moneypot better than bustabit, I suppose there will be some new logo either for bustabit since the pot of the gold in top left corner of the sites wouldnt really reflect the bustabit.com sites

anyway ryan, I pmed you regarding discussion about the vault
hero member
Activity: 868
Merit: 1000
i will be part of the giveaway by betting at bustabit.


i have giveaways everyday, every site it seems
legendary
Activity: 1008
Merit: 1000
Just a heads up for everyone, we'll be rebranding as bustabit.com today. There will be no downtime, and redirects and a banner will be put in place on the old moneypot.com


To celebrate, we'll have some giveaways in chat after the move!

that sounds great to running giveaway in chat, i like moneypot because of it's different concept of betting and hope will get some part for me in that giveaway. on which time giveaway will start?
newbie
Activity: 42
Merit: 0
react.js. is just a mess! I wish I could be a more into it bu unfortunately I'm not.
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
What's wrong with greasemonkey?  I think it's the go-to for user javascript associated with particular websites.  And shit, if the webhosts are gonna offer us scripts that run on our machines, shouldn't we write scripts that run on our machines to do what *we* please?

Never really thought about it, but this would be perfect to provide greasemonkey scripts to do things like game verifications. And I wouldn't be opposed to wrapping all use of bits with n bits  to make it easy for a userscript to replace with tonal-bitcoins or what ever you like.


This seems really helpful and cool!

BTW, I looked at that tonal-bitcoin thing which of course led me to tonal system (apparantly a 19th century notation for hex!), very esoteric. Perhaps cool.  Certainly at least as awkward as "bits". Smiley

Which seems like a  four liner in that the close bracket on the last line seems a little cheap to count.  BTW, you can write the block of an "if" statement without {} when it's just a single line, I dunno off the top of my head if you can leave out the brackets on a for loop in the same way.

You can.

Code:
var bbs = document.getElementsByClassName("balance-bits"), b = document.getElementById("balance_bits"), stickies = document.getElementsByClassName("sticky"), i;
for(i = 0; i < bbs.length; i++) bbs[i].innerHTML="μBTC: " + b.outerHTML;
for(i = 0; i < stickies.length; i++) if(stickies[i].innerHTML == "Bits") stickies[i].innerHTML="μBTC";

Down to three lines.

However, I'd do it like this:

Code:
walk = function(node) { 
  var child,next;
  switch(node.nodeType) {
    case 1: case 9: case 11:
      child = node.firstChild;
      while(child) {
        next = child.nextSibling;
        walk(child);
        child = next;
      }
      break;
    case 3:
      node.nodeValue = node.nodeValue.replace(/bits/gi, 'μBTC');
  }
}
walk(document.body);

Mostly stolen from cloud-to-butt which is mostly stolen from some post on SO.

Also use:
Code:
[].forEach.call(document.getElementsByClassName('inputs-cont'), function(e) { e.className = e.className.replace(/inputs-cont/g, ''); e.style.padding = 0; });

to fix an alignment issue.

We could also attach this method to deal with the History/Chat/Strategy section:

Code:
[].forEach.call(document.getElementsByClassName('chat-log-tab'), function(e) { e.onclick = function() { setTimeout(function() { walk(document.getElementsByClassName('log-chat')[0]); }, 10); } });

There's probably a better way to handle injection of code in the onclick events but I'm not too familiar with react.js.


Thanks, This looks good!
sr. member
Activity: 285
Merit: 262
Which seems like a  four liner in that the close bracket on the last line seems a little cheap to count.  BTW, you can write the block of an "if" statement without {} when it's just a single line, I dunno off the top of my head if you can leave out the brackets on a for loop in the same way.

You can.

Code:
var bbs = document.getElementsByClassName("balance-bits"), b = document.getElementById("balance_bits"), stickies = document.getElementsByClassName("sticky"), i;
for(i = 0; i < bbs.length; i++) bbs[i].innerHTML="μBTC: " + b.outerHTML;
for(i = 0; i < stickies.length; i++) if(stickies[i].innerHTML == "Bits") stickies[i].innerHTML="μBTC";

Down to three lines.

However, I'd do it like this:

Code:
walk = function(node) { 
  var child,next;
  switch(node.nodeType) {
    case 1: case 9: case 11:
      child = node.firstChild;
      while(child) {
        next = child.nextSibling;
        walk(child);
        child = next;
      }
      break;
    case 3:
      node.nodeValue = node.nodeValue.replace(/bits/gi, 'μBTC');
  }
}
walk(document.body);

Mostly stolen from cloud-to-butt which is mostly stolen from some post on SO.

Also use:
Code:
[].forEach.call(document.getElementsByClassName('inputs-cont'), function(e) { e.className = e.className.replace(/inputs-cont/g, ''); e.style.padding = 0; });

to fix an alignment issue.

We could also attach this method to deal with the History/Chat/Strategy section:

Code:
[].forEach.call(document.getElementsByClassName('chat-log-tab'), function(e) { e.onclick = function() { setTimeout(function() { walk(document.getElementsByClassName('log-chat')[0]); }, 10); } });

There's probably a better way to handle injection of code in the onclick events but I'm not too familiar with react.js.
legendary
Activity: 1876
Merit: 1005
It is very nice and pleasant to see that moneypot is up again is working perfectly.I just noticed I also played few bets everything is like before . Great work done by admin again.
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
And I hope there is an alternative to greasemonkey?

What's wrong with greasemonkey?  I think it's the go-to for user javascript associated with particular websites.  And shit, if the webhosts are gonna offer us scripts that run on our machines, shouldn't we write scripts that run on our machines to do what *we* please?

EDIT: FWIW you can just run javascript by cutting and pasting it into your browser's console, but greasemonkey lets you associate particular scripts with particular domains, which is really useful, I think.  I also use vimperator in firefox (iceweasel) and that also has a javascript loader.  But again, I ask what's wrong with greasemonkey?
newbie
Activity: 42
Merit: 0
And I hope there is an alternative to greasemonkey?
newbie
Activity: 42
Merit: 0
I finally tried it.  The animation is pretty neat.  I worked pretty good for me in chromium.  However, in firefox it just froze up.

I thought someone said I could change "bits" to satoshis somewhere in the interface.  I couldn't find it though.  The "bits" thing makes it seem like play money or some new altcoin.

Also, I ended up with 0.51 "bits" which I think is 51 satoshis.  Can I gift this to someone on the site somehow?  Is there a tipping mechanism?  It seems like 100Sat is the smallest amount you're allowed to bet.

no tipping mechanism yet in moneypot as it will encourage begging in chat , and also you can use shiba for the calculation to satoshi, although i forgot the command, it will be wise for ryan to actually add a FAQ list for shiba's command

FYI 1 bits = 100 satoshis

Yes, yes, I know what a "bit" is said to equal.  I'm not wanting to go down that road again (it seems like 20% of this thread has been dedicated to fights about "bits").  I just thought that there was an option in the UI to make it say something normal like Satoshis or uBTC.  It's all good, I must have misunderstood.

Like I said, the animation was pretty neat.

Assuming you know how to make your browser run some custom javascript on a particular site/page, then you can save the following as a file and it finally fixes the "bits" conundrum.   It's so embarrasing that the site owner doesn't want to just make a fix that's part of the website (given how easy it is to fix), but these 4 lines cleaned up the playmoney lingo to call a bitcoin a bitcoin, which makes the game a lot more enjoyable for me (and for a lot of others, apparantly).

Code:
var bbs = document.getElementsByClassName("balance-bits");
var b = document.getElementById("balance_bits");
for (var i=0;i  bbs[i].innerHTML="μBTC: "+b.outerHTML;
}
var stickies = document.getElementsByClassName("sticky");
for (var i=0;i  if (stickies[i].innerHTML == "Bits")
    stickies[i].innerHTML="μBTC";
}


That is kinda neat.  Thanks sed!  Moneypot just got cooler.

Hey sed (or others),

I stuck your script into a greasemonkey/tampermonkey plugin to run on moneypot domain and it seems like part of it works great (the part which changes the balance in the top right) but the other part seems to run too early.  That is, there's some ajax on the page and I found that using tampermonkey, your script runs before the AJAX request loads the widget which says "Bits" next to your amount to bet, in the .sticky.  I don't know if you or anyone else has any advice on how to fix that (other than doing a 2 second timeout or something, which doesn't seem very elegant).  It seems like in principle you may want to overwrite the XHR prototype or something so that you can have your code run onreadystatechange == 4 or something like that.  But I'm not an expert so I thought I'd ask here.


hmmm problems seem to appear out of nowhere when it comes to greasemonkey!
sed
hero member
Activity: 532
Merit: 500
these 4 lines cleaned up the playmoney lingo to call a bitcoin a bitcoin

Code:
var bbs = document.getElementsByClassName("balance-bits");
var b = document.getElementById("balance_bits");
for (var i=0;i  bbs[i].innerHTML="μBTC: "+b.outerHTML;
}
var stickies = document.getElementsByClassName("sticky");
for (var i=0;i  if (stickies[i].innerHTML == "Bits")
    stickies[i].innerHTML="μBTC";
}

I find your use of the overloaded term "4" to be very confusing. We already have a metric term "10" for that number of lines. I don't see any need for you to reuse an existing number for this purpose.

If you know how to use a calculator, here's some buttons you can press to convert from sed numbers to regular people numbers:

Code:
* 2.5 =

Please update your post to give us an option to decide which number system to use. It's clearly trivial as shown in the above list of calculator buttons.

Wink


Ok, you're funny.  I don't know why I said four lines.  I think that in my mind I counted the lines when I had only written:

Code:
var bbs = document.getElementsByClassName("balance-bits");
var b = document.getElementById("balance_bits");
for (var i=0;i  bbs[i].innerHTML="μBTC: "+b.outerHTML;
}

Which seems like a  four liner in that the close bracket on the last line seems a little cheap to count.  BTW, you can write the block of an "if" statement without {} when it's just a single line, I dunno off the top of my head if you can leave out the brackets on a for loop in the same way.

I guess I then realized that the "bits" lingo appears down below (not just the balance at the top) and so I added the other lines.

@tspacepilot I dunno much about greasemonkey I just opened my javascript console in Chrome and pasted in the code.   And all was fine.
member
Activity: 114
Merit: 10
good moneypot i try .. Grin
sr. member
Activity: 434
Merit: 250
:)
I was just going with the flow, didnt want to point out his counting.
Pages:
Jump to: