Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var just = document.createElement("Button");
- just.appendChild(document.createTextNode("50x"));
- document.getElementById("content-wheel-balance").appendChild(just);
- just.id = "50x";
- just.style.backgroundColor = "#FFC870";
- just.style.padding = "16px"
- var abet = 10;
- function fiftybet() {
- document.getElementById("bet-btn-50x").click();
- if (winner.choice === 3) {
- document.getElementById("bet-input").value = 10;
- abet = 10;
- } else {
- abet = abet + 1;
- document.getElementById("bet-input").value = abet;
- }
- }
- just.onclick = function() {
- document.getElementById("bet-input").value = 10;
- fiftybet();
- var shit = setInterval(fiftybet, 35000);
- }
- var streaks = document.createElement("Button");
- streaks.appendChild(document.createTextNode("Streaks"));
- document.getElementById("content-wheel-balance").appendChild(streaks);
- streaks.id = "Streaks";
- streaks.style.backgroundColor = "00FFCC";
- streaks.style.marginLeft = "5px";
- streaks.style.marginRight = "5px";
- streaks.onclick = function() {
- alert(streak_array);
- }
- var col = document.createElement("button");
- var or = document.createTextNode("Color");
- col.appendChild(or);
- document.getElementById("content-wheel-balance").appendChild(col);
- col.id = 'predict';
- var property = document.getElementById('predict');
- var yell = document.createElement('div');
- document.getElementById('content-wheel-balance').appendChild(yell)
- yell.id = "yellowc"
- function tellme() {
- if (winner.choice === 0) {
- console.log('Black');
- property.style.backgroundColor = "#666";
- } else if (winner.choice === 1) {
- console.log('Red');
- property.style.backgroundColor = "#C8354E"
- } else if (winner.choice === 2) {
- console.log('Blue');
- property.style.backgroundColor = "#45B5DA"
- } else if (winner.choice === 3) {
- console.log('Yellow');
- property.style.backgroundColor = "#FFC870";
- }
- };
- var myVari = setInterval(myTimers, 500);
- function myTimers() {
- tellme();
- }
- tellme();
- //------------------------------------------Sovale
- var streak_array = [];
- var blacks = 0;
- var reds = 0;
- var blues = 0;
- var yellows = 0;
- var streak = 0;
- var max_streak = 0;
- var streak_avg = 0.0;
- var temp = 0;
- var coinswin = 0;
- var abet2 = 10;
- var temp2 = 0;
- var wins = 0;
- var streak_array_id = 0;
- var stats = document.createElement("div");
- stats.innerHTML =
- '<p><b>Blacks:</b>' + blacks + '</p>' +
- '<p><b>Reds:</b>' + reds + '</p>' +
- '<p><b>Blues:</b>' + blues + '</p>' +
- '<p><b>Yellows:</b>' + yellows + '</p>' +
- '<p><b>Max streak:</b>' + max_streak + '</p>' +
- '<p><b>Wins:</b>' + wins + '</p>';
- stats.id = 'stats';
- document.getElementById("content-wheel-balance").appendChild(stats);
- function updateHTML() {
- stats.innerHTML =
- '<p><b>Blacks:</b>' + blacks + '</p>' +
- '<p><b>Reds:</b>' + reds + '</p>' +
- '<p><b>Blues:</b>' + blues + '</p>' +
- '<p><b>Yellows:</b>' + yellows + '</p>' +
- '<p><b>Max streak:</b>' + max_streak + '</p>' +
- '<p><b>Wins:</b>' + wins + '</p>';
- }
- function counter() {
- if (winner.choice === 0) {
- if (streak != 0) streak_array.push(streak); else wins++;
- blacks += 1;
- if (streak > max_streak) {
- max_streak = streak;
- }
- temp2++;
- streak = 0;
- updateHTML();
- } else if (winner.choice === 1) {
- if (streak != 0) streak_array.push(streak); else wins++;
- reds += 1;
- if (streak > max_streak) {
- max_streak = streak;
- }
- temp2++;
- streak = 0;
- updateHTML();
- } else if (winner.choice === 2) {
- blues += 1;
- streak += 1;
- temp2++;
- updateHTML();
- } else if (winner.choice === 3) {
- yellows += 1;
- streak += 1;
- temp2++;
- updateHTML();
- }
- };
- var countInterval = setInterval(counter, 35000);
Advertisement
Add Comment
Please, Sign In to add comment