diff --git a/20073159.mp4 b/20073159.mp4 new file mode 100644 index 00000000..28a6e282 Binary files /dev/null and b/20073159.mp4 differ diff --git a/app.js b/app.js index de7d01e9..dff84b8c 100644 --- a/app.js +++ b/app.js @@ -4,13 +4,13 @@ var config = { // - Your app's id on moneypot.com - app_id: 18, // <----------------------------- EDIT ME! + app_id: 74, // <----------------------------- EDIT ME! // - Displayed in the navbar - app_name: 'Untitled Dice', + app_name: 'HASbet', // - For your faucet to work, you must register your site at Recaptcha // - https://www.google.com/recaptcha/intro/index.html - recaptcha_sitekey: '6LfI_QUTAAAAACrjjuzmLw0Cjx9uABxb8uguLbph', // <----- EDIT ME! - redirect_uri: 'https://untitled-dice.github.io', + recaptcha_sitekey: '6LcnvAgTAAAAAMmJyqRTyubwb0aRNvZh1qUtgvUA', // <----- EDIT ME! + redirect_uri: 'https://hasbet.github.io', mp_browser_uri: 'https://www.moneypot.com', mp_api_uri: 'https://api.moneypot.com', chat_uri: '//socket.moneypot.com', @@ -21,7 +21,7 @@ var config = { force_https_redirect: !isRunningLocally(), // - Configure the house edge (default is 1%) // Must be between 0.0 (0%) and 1.0 (100%) - house_edge: 0.01, + house_edge: 0.02, chat_buffer_size: 250, // - The amount of bets to show on screen in each tab bet_buffer_size: 25 @@ -1268,6 +1268,11 @@ var BetBoxWager = React.createClass({ var n = betStore.state.wager.num * 2; Dispatcher.sendAction('UPDATE_WAGER', { str: n.toString() }); + }, + _onMinWager: function() { + var n = 1; + Dispatcher.sendAction('UPDATE_WAGER', { str: n.toString() }); + }, _onMaxWager: function() { // If user is logged in, use their balance as max wager @@ -1329,6 +1334,17 @@ var BetBoxWager = React.createClass({ '2x ', worldStore.state.hotkeysEnabled ? el.kbd(null, 'C') : '' ) ), + el.div( + {className: 'btn-group'}, + el.button( + { + className: 'btn btn-default btn-md', + type: 'button', + onClick: this._onMinWager + }, + 'Min', worldStore.state.hotkeysEnabled ? el.kbd(null, 'V') : '' + ) + ), el.div( {className: 'btn-group'}, el.button( @@ -2315,7 +2331,7 @@ function onRecaptchaLoad() { } $(document).on('keydown', function(e) { - var H = 72, L = 76, C = 67, X = 88, keyCode = e.which; + var H = 72, L = 76, C = 67, X = 88, V = 86, keyCode = e.which; // Bail is hotkeys aren't currently enabled to prevent accidental bets if (!worldStore.state.hotkeysEnabled) { @@ -2323,7 +2339,7 @@ $(document).on('keydown', function(e) { } // Bail if it's not a key we care about - if (keyCode !== H && keyCode !== L && keyCode !== X && keyCode !== C) { + if (keyCode !== H && keyCode !== L && keyCode !== X && keyCode !== C && keyCode !== V) { return; } @@ -2345,7 +2361,13 @@ $(document).on('keydown', function(e) { num: downWager, str: downWager.toString() }); - + break; + case V: // Decrease wager + var minWager = 1; + Dispatcher.sendAction('UPDATE_WAGER', { + num: minWager, + str: minWager.toString() + }); break; case L: // Bet lo $('#bet-lo').click(); diff --git a/favicon.ico b/favicon.ico index 8a5a95ae..5d15cf19 100644 Binary files a/favicon.ico and b/favicon.ico differ diff --git a/index.html b/index.html index c90bd8da..94d345e8 100644 --- a/index.html +++ b/index.html @@ -1,9 +1,10 @@
-