SHOW:
|
|
- or go back to the newest paste.
| 1 | //------------------------------------------------- | |
| 2 | ||
| 3 | var para = document.createElement("button");
| |
| 4 | var t = document.createTextNode("Bot 2x");
| |
| 5 | para.appendChild(t); | |
| 6 | document.getElementById("content-bets").appendChild(para);
| |
| 7 | para.id = 'bot-btn-1'; | |
| 8 | ||
| 9 | var pare = document.createElement("button");
| |
| 10 | var g = document.createTextNode("Bot 3x");
| |
| 11 | pare.appendChild(g); | |
| 12 | document.getElementById("content-bets").appendChild(pare);
| |
| 13 | pare.id = 'bot-btn-2'; | |
| 14 | ||
| 15 | var parat = document.createElement("button");
| |
| 16 | var te = document.createTextNode("Bot 5x");
| |
| 17 | parat.appendChild(te); | |
| 18 | document.getElementById("content-bets").appendChild(parat);
| |
| 19 | parat.id = 'bot-btn-3'; | |
| 20 | ||
| 21 | var paratt = document.createElement("button");
| |
| 22 | var ee = document.createTextNode("Bot 50x");
| |
| 23 | paratt.appendChild(ee); | |
| 24 | document.getElementById("content-bets").appendChild(paratt);
| |
| 25 | paratt.id = 'bot-btn-4'; | |
| 26 | ||
| 27 | var non = document.createElement("button");
| |
| 28 | var mart = document.createTextNode("Non-martingale");
| |
| 29 | non.appendChild(mart); | |
| 30 | document.getElementById("content-bets").appendChild(non);
| |
| 31 | non.id = 'non-martin'; | |
| 32 | //Hiding buttons | |
| 33 | document.getElementById("bot-btn-1").style.display = "none";
| |
| 34 | document.getElementById("bot-btn-2").style.display = "none";
| |
| 35 | document.getElementById("bot-btn-3").style.display = "none";
| |
| 36 | document.getElementById("bot-btn-4").style.display = "none";
| |
| 37 | ||
| 38 | document.getElementById('non-martin').onclick = function() {
| |
| 39 | document.getElementById("bot-btn-1").style.display = "inline";
| |
| 40 | document.getElementById("bot-btn-2").style.display = "inline";
| |
| 41 | document.getElementById("bot-btn-3").style.display = "inline";
| |
| 42 | document.getElementById("bot-btn-4").style.display = "inline";
| |
| 43 | document.getElementById("non-martin").style.display = "none";
| |
| 44 | document.getElementById("marting").style.display = "none";
| |
| 45 | document.getElementById('train').style.display = "none";
| |
| 46 | ||
| 47 | } | |
| 48 | ||
| 49 | //Sovale | |
| 50 | ||
| 51 | var just = document.createElement("Button");
| |
| 52 | just.appendChild(document.createTextNode("50x"));
| |
| 53 | document.getElementById("content-wheel-balance").appendChild(just);
| |
| 54 | just.id = "50x"; | |
| 55 | just.style.backgroundColor = "#FFC870"; | |
| 56 | just.style.padding = "16px" | |
| 57 | var abet = 10; | |
| 58 | function fiftybet() {
| |
| 59 | document.getElementById("bet-btn-50x").click();
| |
| 60 | if (winner.choice === 3) {
| |
| 61 | document.getElementById("bet-input").value = 10;
| |
| 62 | abet = 10; | |
| 63 | } else {
| |
| 64 | abet = abet + 1; | |
| 65 | document.getElementById("bet-input").value = abet;
| |
| 66 | } | |
| 67 | } | |
| 68 | just.onclick = function(){
| |
| 69 | document.getElementById("bet-input").value = 10;
| |
| 70 | fiftybet(); | |
| 71 | var shit = setInterval(fiftybet,35000); | |
| 72 | } | |
| 73 | ||
| 74 | var streaks = document.createElement("Button");
| |
| 75 | streaks.appendChild(document.createTextNode("Streaks"));
| |
| 76 | document.getElementById("content-wheel-balance").appendChild(streaks);
| |
| 77 | streaks.id = "Streaks"; | |
| 78 | streaks.style.backgroundColor = "00FFCC"; | |
| 79 | streaks.style.marginLeft = "5px"; | |
| 80 | streaks.style.marginRight = "5px"; | |
| 81 | streaks.onclick = function(){
| |
| 82 | alert(streak_array.join('\n'));
| |
| 83 | - | alert(streak_array); |
| 83 | + | |
| 84 | ||
| 85 | //------------------------------------------------------------------------ | |
| 86 | document.getElementById('bot-btn-1').onclick = function(e){
| |
| 87 | document.getElementById('bet-btn-2x').click();
| |
| 88 | var myVar = setInterval(myTimer, 35000); | |
| 89 | function myTimer() {
| |
| 90 | document.getElementById("bet-btn-2x").click();
| |
| 91 | } | |
| 92 | } | |
| 93 | document.getElementById('bot-btn-2').onclick = function(e){
| |
| 94 | document.getElementById('bet-btn-3x').click();
| |
| 95 | var myVar = setInterval(myTimer, 35000); | |
| 96 | function myTimer() {
| |
| 97 | document.getElementById("bet-btn-3x").click();
| |
| 98 | } | |
| 99 | } | |
| 100 | document.getElementById('bot-btn-3').onclick = function(e){
| |
| 101 | document.getElementById('bet-btn-5x').click();
| |
| 102 | var myVar = setInterval(myTimer, 35000); | |
| 103 | function myTimer() {
| |
| 104 | document.getElementById("bet-btn-5x").click();
| |
| 105 | } | |
| 106 | } | |
| 107 | document.getElementById('bot-btn-4').onclick = function(e){
| |
| 108 | document.getElementById('bet-btn-50x').click();
| |
| 109 | var myVar = setInterval(myTimer, 35000); | |
| 110 | function myTimer() {
| |
| 111 | document.getElementById("bet-btn-50x").click();
| |
| 112 | } | |
| 113 | } | |
| 114 | //--------------------------------------------------------------- | |
| 115 | ||
| 116 | ||
| 117 | ||
| 118 | ||
| 119 | ||
| 120 | ||
| 121 | //Martingale bot | |
| 122 | ||
| 123 | //Creating buttons ------------------------------------> | |
| 124 | var martin = document.createElement("button");
| |
| 125 | var g = document.createTextNode("Martingale Mode");
| |
| 126 | martin.appendChild(g); | |
| 127 | document.getElementById("content-bets").appendChild(martin);
| |
| 128 | martin.id = 'marting'; | |
| 129 | //------------------------------------------------ | |
| 130 | ||
| 131 | ||
| 132 | var aa = document.createElement("button");
| |
| 133 | document.getElementById("content-bets").appendChild(aa);
| |
| 134 | var at = document.createTextNode('2x Martingale');
| |
| 135 | aa.appendChild(at); | |
| 136 | aa.id = 'twomartin'; | |
| 137 | ||
| 138 | var aaa = document.createElement("button");
| |
| 139 | document.getElementById("content-bets").appendChild(aaa);
| |
| 140 | var att = document.createTextNode('3x Martingale');
| |
| 141 | aaa.appendChild(att); | |
| 142 | aaa.id = 'threemartin'; | |
| 143 | ||
| 144 | var aaaa = document.createElement("button");
| |
| 145 | document.getElementById("content-bets").appendChild(aaaa);
| |
| 146 | var attt = document.createTextNode('5x Martingale');
| |
| 147 | aaaa.appendChild(attt); | |
| 148 | aaaa.id = 'fivemartin'; | |
| 149 | ||
| 150 | var aaaaa = document.createElement("button");
| |
| 151 | document.getElementById("content-bets").appendChild(aaaaa);
| |
| 152 | var atttt = document.createTextNode('50x Martingale');
| |
| 153 | aaaaa.appendChild(atttt); | |
| 154 | aaaaa.id = 'fifthymartin'; | |
| 155 | ||
| 156 | //-------------------------------------------------------- | |
| 157 | //Martingale 2x buttons | |
| 158 | var ten = document.createElement('button');
| |
| 159 | var is = document.createTextNode('10');
| |
| 160 | ten.appendChild(is); | |
| 161 | document.getElementById("content-bets").appendChild(ten);
| |
| 162 | ten.id = 'ten'; | |
| 163 | ||
| 164 | ||
| 165 | var hundred = document.createElement('button');
| |
| 166 | var iss = document.createTextNode('100');
| |
| 167 | hundred.appendChild(iss); | |
| 168 | document.getElementById("content-bets").appendChild(hundred);
| |
| 169 | hundred.id = 'hundred'; | |
| 170 | ||
| 171 | var thousand = document.createElement('button');
| |
| 172 | var isss = document.createTextNode('1k');
| |
| 173 | thousand.appendChild(isss); | |
| 174 | document.getElementById("content-bets").appendChild(thousand);
| |
| 175 | thousand.id = 'thousand'; | |
| 176 | //----------------------------------------------------------------------- | |
| 177 | //Martingale 3x buttons | |
| 178 | var tenn = document.createElement('button');
| |
| 179 | var ist = document.createTextNode('10');
| |
| 180 | tenn.appendChild(ist); | |
| 181 | document.getElementById("content-bets").appendChild(tenn);
| |
| 182 | tenn.id = 'tenn'; | |
| 183 | ||
| 184 | ||
| 185 | var hundredd = document.createElement('button');
| |
| 186 | var isst = document.createTextNode('100');
| |
| 187 | hundredd.appendChild(isst); | |
| 188 | document.getElementById("content-bets").appendChild(hundredd);
| |
| 189 | hundredd.id = 'hundredd'; | |
| 190 | ||
| 191 | var thousandd = document.createElement('button');
| |
| 192 | var issst = document.createTextNode('1k');
| |
| 193 | thousandd.appendChild(issst); | |
| 194 | document.getElementById("content-bets").appendChild(thousandd);
| |
| 195 | thousandd.id = 'thousandd'; | |
| 196 | //----------------------------------------------------------------------------- | |
| 197 | //Martingale 5x buttons | |
| 198 | var tennn = document.createElement('button');
| |
| 199 | var istt = document.createTextNode('10');
| |
| 200 | tennn.appendChild(istt); | |
| 201 | document.getElementById("content-bets").appendChild(tennn);
| |
| 202 | tennn.id = 'tennn'; | |
| 203 | ||
| 204 | ||
| 205 | var hundreddd = document.createElement('button');
| |
| 206 | var isstt = document.createTextNode('100');
| |
| 207 | hundreddd.appendChild(isstt); | |
| 208 | document.getElementById("content-bets").appendChild(hundreddd);
| |
| 209 | hundreddd.id = 'hundreddd'; | |
| 210 | ||
| 211 | var thousanddd = document.createElement('button');
| |
| 212 | var isssttt = document.createTextNode('1k');
| |
| 213 | thousanddd.appendChild(isssttt); | |
| 214 | document.getElementById("content-bets").appendChild(thousanddd);
| |
| 215 | thousanddd.id = 'thousanddd'; | |
| 216 | //---------------------------------------------------------------------------------- | |
| 217 | //Martingale 50x buttons | |
| 218 | var tennnn = document.createElement('button');
| |
| 219 | var isttt = document.createTextNode('10');
| |
| 220 | tennnn.appendChild(isttt); | |
| 221 | document.getElementById("content-bets").appendChild(tennnn);
| |
| 222 | tennnn.id = 'tennnn'; | |
| 223 | ||
| 224 | ||
| 225 | var hundredddd = document.createElement('button');
| |
| 226 | var issttt = document.createTextNode('100');
| |
| 227 | hundredddd.appendChild(issttt); | |
| 228 | document.getElementById("content-bets").appendChild(hundredddd);
| |
| 229 | hundredddd.id = 'hundredddd'; | |
| 230 | ||
| 231 | var thousandddd = document.createElement('button');
| |
| 232 | var issstttt = document.createTextNode('1k');
| |
| 233 | thousandddd.appendChild(issstttt); | |
| 234 | document.getElementById("content-bets").appendChild(thousandddd);
| |
| 235 | thousandddd.id = 'thousandddd'; | |
| 236 | //----------------------------------------------------------------------- | |
| 237 | ||
| 238 | //Train mode | |
| 239 | //----------------------------------------------------------- | |
| 240 | var train = document.createElement('button');
| |
| 241 | var tr = document.createTextNode('Train mode');
| |
| 242 | train.appendChild(tr); | |
| 243 | document.getElementById("content-bets").appendChild(train);
| |
| 244 | train.id = 'train'; | |
| 245 | ||
| 246 | document.getElementById('train').onclick = function train(){
| |
| 247 | document.getElementById('non-martin').style.display = "none";
| |
| 248 | document.getElementById('marting').style.display = "none";
| |
| 249 | var myVar = setInterval(myTimer, 35000); | |
| 250 | function myTimer() {
| |
| 251 | if (winner.choice === 0){
| |
| 252 | document.getElementById('bet-btn-2x').click();
| |
| 253 | } | |
| 254 | else if (winner.choice === 1){
| |
| 255 | document.getElementById('bet-btn-3x').click();
| |
| 256 | } | |
| 257 | else if (winner.choice === 2){
| |
| 258 | document.getElementById('bet-btn-5x').click();
| |
| 259 | } | |
| 260 | else if (winner.choice === 3){
| |
| 261 | document.getElementById('bet-btn-50x').click();
| |
| 262 | } | |
| 263 | } | |
| 264 | alert('Bet will start next round');
| |
| 265 | } | |
| 266 | //-------------------------------------------------------------- | |
| 267 | //stop reset | |
| 268 | var stop = document.createElement("button");
| |
| 269 | var reset = document.createTextNode("Stop/Reset");
| |
| 270 | stop.appendChild(reset); | |
| 271 | document.getElementById("content-bets").appendChild(stop);
| |
| 272 | stop.id = 'stop'; | |
| 273 | ||
| 274 | stop.onclick = function() {
| |
| 275 | location.reload(); | |
| 276 | } | |
| 277 | ||
| 278 | ||
| 279 | // <----------------------------------------- | |
| 280 | document.getElementById('marting').onclick = function() {
| |
| 281 | document.getElementById('twomartin').style.display = "inline";
| |
| 282 | document.getElementById('threemartin').style.display = "inline";
| |
| 283 | document.getElementById('fivemartin').style.display = "inline";
| |
| 284 | document.getElementById('fifthymartin').style.display = "inline";
| |
| 285 | document.getElementById('non-martin').style.display = "none";
| |
| 286 | document.getElementById('marting').style.display = "none";
| |
| 287 | document.getElementById("train").style.display = "none";
| |
| 288 | ||
| 289 | } | |
| 290 | document.getElementById('twomartin').onclick = function two(){
| |
| 291 | document.getElementById("ten").style.display = "inline";
| |
| 292 | document.getElementById("hundred").style.display = "inline";
| |
| 293 | document.getElementById("thousand").style.display = "inline";
| |
| 294 | document.getElementById("non-martin").style.display = "none";
| |
| 295 | document.getElementById("marting").style.display = "none";
| |
| 296 | document.getElementById("threemartin").style.display = "none";
| |
| 297 | document.getElementById("fivemartin").style.display = "none";
| |
| 298 | document.getElementById("fifthymartin").style.display = "none";
| |
| 299 | document.getElementById("train").style.display = "none";
| |
| 300 | } | |
| 301 | document.getElementById('threemartin').onclick = function three(){
| |
| 302 | document.getElementById("tenn").style.display = "inline";
| |
| 303 | document.getElementById("hundredd").style.display = "inline";
| |
| 304 | document.getElementById("thousandd").style.display = "inline";
| |
| 305 | document.getElementById("non-martin").style.display = "none";
| |
| 306 | document.getElementById("marting").style.display = "none";
| |
| 307 | document.getElementById("twomartin").style.display = "none";
| |
| 308 | document.getElementById("fivemartin").style.display = "none";
| |
| 309 | document.getElementById("fifthymartin").style.display = "none";
| |
| 310 | document.getElementById("train").style.display = "none";
| |
| 311 | } | |
| 312 | document.getElementById('fivemartin').onclick = function five(){
| |
| 313 | document.getElementById("tennn").style.display = "inline";
| |
| 314 | document.getElementById("hundreddd").style.display = "inline";
| |
| 315 | document.getElementById("thousanddd").style.display = "inline";
| |
| 316 | document.getElementById("non-martin").style.display = "none";
| |
| 317 | document.getElementById("marting").style.display = "none";
| |
| 318 | document.getElementById("threemartin").style.display = "none";
| |
| 319 | document.getElementById("twomartin").style.display = "none";
| |
| 320 | document.getElementById("fifthymartin").style.display = "none";
| |
| 321 | document.getElementById("train").style.display = "none";
| |
| 322 | } | |
| 323 | document.getElementById('fifthymartin').onclick = function fifthy(){
| |
| 324 | document.getElementById("tennnn").style.display = "inline";
| |
| 325 | document.getElementById("hundredddd").style.display = "inline";
| |
| 326 | document.getElementById("thousandddd").style.display = "inline";
| |
| 327 | document.getElementById("non-martin").style.display = "none";
| |
| 328 | document.getElementById("marting").style.display = "none";
| |
| 329 | document.getElementById("threemartin").style.display = "none";
| |
| 330 | document.getElementById("fivemartin").style.display = "none";
| |
| 331 | document.getElementById("twomartin").style.display = "none";
| |
| 332 | document.getElementById("train").style.display = "none";
| |
| 333 | } | |
| 334 | //-------------------------------------- | |
| 335 | // creating functions | |
| 336 | //2x--------------------------------------------------- | |
| 337 | var winlose = function() {
| |
| 338 | if (winner.choice === 0) {
| |
| 339 | document.getElementById('bet-btn-min').click();
| |
| 340 | document.getElementById('bet-btn-10').click();
| |
| 341 | } | |
| 342 | else {
| |
| 343 | document.getElementById('bet-btn-double').click();
| |
| 344 | } | |
| 345 | } | |
| 346 | var winloser = function() {
| |
| 347 | if (winner.choice === 0) {
| |
| 348 | document.getElementById('bet-btn-min').click();
| |
| 349 | document.getElementById('bet-btn-100').click();
| |
| 350 | } | |
| 351 | else {
| |
| 352 | document.getElementById('bet-btn-double').click();
| |
| 353 | } | |
| 354 | } | |
| 355 | var winloses = function() {
| |
| 356 | if (winner.choice === 0) {
| |
| 357 | document.getElementById('bet-btn-min').click();
| |
| 358 | document.getElementById('bet-btn-1k').click();
| |
| 359 | } | |
| 360 | else {
| |
| 361 | document.getElementById('bet-btn-double').click();
| |
| 362 | } | |
| 363 | } | |
| 364 | //3x--------------------------------------------------------------------- | |
| 365 | var winlosee = function() {
| |
| 366 | if (winner.choice === 1) {
| |
| 367 | document.getElementById('bet-btn-min').click();
| |
| 368 | document.getElementById('bet-btn-10').click();
| |
| 369 | } | |
| 370 | else {
| |
| 371 | document.getElementById('bet-btn-double').click();
| |
| 372 | } | |
| 373 | } | |
| 374 | var winlosere = function() {
| |
| 375 | if (winner.choice === 1) {
| |
| 376 | document.getElementById('bet-btn-min').click();
| |
| 377 | document.getElementById('bet-btn-100').click();
| |
| 378 | } | |
| 379 | else {
| |
| 380 | document.getElementById('bet-btn-double').click();
| |
| 381 | } | |
| 382 | } | |
| 383 | var winlosese = function() {
| |
| 384 | if (winner.choice === 1) {
| |
| 385 | document.getElementById('bet-btn-min').click();
| |
| 386 | document.getElementById('bet-btn-1k').click();
| |
| 387 | } | |
| 388 | else {
| |
| 389 | document.getElementById('bet-btn-double').click();
| |
| 390 | } | |
| 391 | } | |
| 392 | //5x------------------------------------------------------------- | |
| 393 | var winloseee = function() {
| |
| 394 | if (winner.choice === 2) {
| |
| 395 | document.getElementById('bet-btn-min').click();
| |
| 396 | document.getElementById('bet-btn-10').click();
| |
| 397 | } | |
| 398 | else {
| |
| 399 | document.getElementById('bet-btn-double').click();
| |
| 400 | } | |
| 401 | } | |
| 402 | var winloseree = function() {
| |
| 403 | if (winner.choice === 2) {
| |
| 404 | document.getElementById('bet-btn-min').click();
| |
| 405 | document.getElementById('bet-btn-100').click();
| |
| 406 | } | |
| 407 | else {
| |
| 408 | document.getElementById('bet-btn-double').click();
| |
| 409 | } | |
| 410 | } | |
| 411 | var winlosesee = function() {
| |
| 412 | if (winner.choice === 2) {
| |
| 413 | document.getElementById('bet-btn-min').click();
| |
| 414 | document.getElementById('bet-btn-1k').click();
| |
| 415 | } | |
| 416 | else {
| |
| 417 | document.getElementById('bet-btn-double').click();
| |
| 418 | } | |
| 419 | } | |
| 420 | //50x--------------------------------------------------- | |
| 421 | var winloseeee = function() {
| |
| 422 | if (winner.choice === 3) {
| |
| 423 | document.getElementById('bet-btn-min').click();
| |
| 424 | document.getElementById('bet-btn-10').click();
| |
| 425 | } | |
| 426 | else {
| |
| 427 | document.getElementById('bet-btn-double').click();
| |
| 428 | } | |
| 429 | } | |
| 430 | var winlosereee = function() {
| |
| 431 | if (winner.choice === 3) {
| |
| 432 | document.getElementById('bet-btn-min').click();
| |
| 433 | document.getElementById('bet-btn-100').click();
| |
| 434 | } | |
| 435 | else {
| |
| 436 | document.getElementById('bet-btn-double').click();
| |
| 437 | } | |
| 438 | } | |
| 439 | var winloseseee = function() {
| |
| 440 | if (winner.choice === 3) {
| |
| 441 | document.getElementById('bet-btn-min').click();
| |
| 442 | document.getElementById('bet-btn-1k').click();
| |
| 443 | } | |
| 444 | else {
| |
| 445 | document.getElementById('bet-btn-double').click();
| |
| 446 | } | |
| 447 | } | |
| 448 | //------------------------------------------------------------------ | |
| 449 | //2x functions | |
| 450 | function mten() {
| |
| 451 | document.getElementById('bet-btn-min').click();
| |
| 452 | document.getElementById('bet-btn-10').click();
| |
| 453 | var myVar = setInterval(myTimer, 35000); | |
| 454 | function myTimer() {
| |
| 455 | winlose(); | |
| 456 | document.getElementById("bet-btn-2x").click();
| |
| 457 | } | |
| 458 | document.getElementById('bet-btn-2x').click();
| |
| 459 | } | |
| 460 | ||
| 461 | function mhundred() {
| |
| 462 | document.getElementById('bet-btn-min').click();
| |
| 463 | document.getElementById('bet-btn-100').click();
| |
| 464 | var myVar = setInterval(myTimer, 35000); | |
| 465 | function myTimer() {
| |
| 466 | winloser(); | |
| 467 | document.getElementById("bet-btn-2x").click();
| |
| 468 | } | |
| 469 | document.getElementById('bet-btn-2x').click();
| |
| 470 | } | |
| 471 | function mthousand() {
| |
| 472 | document.getElementById('bet-btn-min').click();
| |
| 473 | document.getElementById('bet-btn-1k').click();
| |
| 474 | document.getElementById('bet-btn-double').click();
| |
| 475 | var myVar = setInterval(myTimer, 35000); | |
| 476 | function myTimer() {
| |
| 477 | winloses(); | |
| 478 | document.getElementById("bet-btn-2x").click();
| |
| 479 | } | |
| 480 | document.getElementById('bet-btn-2x').click();
| |
| 481 | } | |
| 482 | //------------------------------------------------------------------- | |
| 483 | //3x functions | |
| 484 | ||
| 485 | function mtenn() {
| |
| 486 | document.getElementById('bet-btn-min').click();
| |
| 487 | document.getElementById('bet-btn-10').click();
| |
| 488 | var myVar = setInterval(myTimer, 35000); | |
| 489 | function myTimer() {
| |
| 490 | winlosee(); | |
| 491 | document.getElementById("bet-btn-3x").click();
| |
| 492 | } | |
| 493 | document.getElementById('bet-btn-3x').click();
| |
| 494 | } | |
| 495 | ||
| 496 | function mhundredd() {
| |
| 497 | document.getElementById('bet-btn-min').click();
| |
| 498 | document.getElementById('bet-btn-100').click();
| |
| 499 | var myVar = setInterval(myTimer, 35000); | |
| 500 | function myTimer() {
| |
| 501 | winlosere(); | |
| 502 | document.getElementById("bet-btn-3x").click();
| |
| 503 | } | |
| 504 | document.getElementById('bet-btn-3x').click();
| |
| 505 | } | |
| 506 | function mthousandd() {
| |
| 507 | document.getElementById('bet-btn-min').click();
| |
| 508 | document.getElementById('bet-btn-1k').click();
| |
| 509 | document.getElementById('bet-btn-double').click();
| |
| 510 | var myVar = setInterval(myTimer, 35000); | |
| 511 | function myTimer() {
| |
| 512 | winlosese(); | |
| 513 | document.getElementById("bet-btn-3x").click();
| |
| 514 | } | |
| 515 | document.getElementById('bet-btn-3x').click();
| |
| 516 | } | |
| 517 | //--------------------------------------------------------------------- | |
| 518 | //5x functions | |
| 519 | ||
| 520 | function mtennn() {
| |
| 521 | document.getElementById('bet-btn-min').click();
| |
| 522 | document.getElementById('bet-btn-10').click();
| |
| 523 | var myVar = setInterval(myTimer, 35000); | |
| 524 | function myTimer() {
| |
| 525 | winloseee(); | |
| 526 | document.getElementById("bet-btn-5x").click();
| |
| 527 | } | |
| 528 | document.getElementById('bet-btn-5x').click();
| |
| 529 | } | |
| 530 | ||
| 531 | function mhundreddd() {
| |
| 532 | document.getElementById('bet-btn-min').click();
| |
| 533 | document.getElementById('bet-btn-100').click();
| |
| 534 | var myVar = setInterval(myTimer, 35000); | |
| 535 | function myTimer() {
| |
| 536 | winloseree(); | |
| 537 | document.getElementById("bet-btn-5x").click();
| |
| 538 | } | |
| 539 | document.getElementById('bet-btn-5x').click();
| |
| 540 | } | |
| 541 | function mthousanddd() {
| |
| 542 | document.getElementById('bet-btn-min').click();
| |
| 543 | document.getElementById('bet-btn-1k').click();
| |
| 544 | document.getElementById('bet-btn-double').click();
| |
| 545 | var myVar = setInterval(myTimer, 35000); | |
| 546 | function myTimer() {
| |
| 547 | winlosesee(); | |
| 548 | document.getElementById("bet-btn-5x").click();
| |
| 549 | } | |
| 550 | document.getElementById('bet-btn-5x').click();
| |
| 551 | } | |
| 552 | //-------------------------------------------------------------- | |
| 553 | //50x functions | |
| 554 | ||
| 555 | function mtennnn() {
| |
| 556 | document.getElementById('bet-btn-min').click();
| |
| 557 | document.getElementById('bet-btn-10').click();
| |
| 558 | var myVar = setInterval(myTimer, 35000); | |
| 559 | function myTimer() {
| |
| 560 | winloseeee(); | |
| 561 | document.getElementById("bet-btn-50x").click();
| |
| 562 | } | |
| 563 | document.getElementById('bet-btn-50x').click();
| |
| 564 | } | |
| 565 | ||
| 566 | function mhundredddd() {
| |
| 567 | document.getElementById('bet-btn-min').click();
| |
| 568 | document.getElementById('bet-btn-100').click();
| |
| 569 | var myVar = setInterval(myTimer, 35000); | |
| 570 | function myTimer() {
| |
| 571 | winlosereee(); | |
| 572 | document.getElementById("bet-btn-50x").click();
| |
| 573 | } | |
| 574 | document.getElementById('bet-btn-50x').click();
| |
| 575 | } | |
| 576 | function mthousandddd() {
| |
| 577 | document.getElementById('bet-btn-min').click();
| |
| 578 | document.getElementById('bet-btn-1k').click();
| |
| 579 | document.getElementById('bet-btn-double').click();
| |
| 580 | var myVar = setInterval(myTimer, 35000); | |
| 581 | function myTimer() {
| |
| 582 | winloseseee(); | |
| 583 | document.getElementById("bet-btn-50x").click();
| |
| 584 | } | |
| 585 | document.getElementById('bet-btn-50x').click();
| |
| 586 | } | |
| 587 | //---------------------------------------------------------- | |
| 588 | // Done creating functions | |
| 589 | //Stating functions | |
| 590 | //2x ------------------------------------------------------------- | |
| 591 | ||
| 592 | ||
| 593 | window.onload = function pop(){
| |
| 594 | window.open('http://csgo3.com/index.html','','width=400,height=430,resizable=no');
| |
| 595 | window.focus(); | |
| 596 | } | |
| 597 | ||
| 598 | var don = document.createElement("button");
| |
| 599 | var ate = document.createTextNode("Donate");
| |
| 600 | don.appendChild(ate); | |
| 601 | document.getElementById("nav-custom").appendChild(don);
| |
| 602 | don.id = 'donate'; | |
| 603 | document.getElementById('donate').onclick = function() {
| |
| 604 | window.open('https://steamcommunity.com/tradeoffer/new/?partner=221545358&token=Hj9zZzb_');
| |
| 605 | } | |
| 606 | //-------- | |
| 607 | //-------------------------------------------------------------------------- | |
| 608 | ||
| 609 | //--------------------------------------------------------------------------------- | |
| 610 | document.getElementById("ten").style.display = "none";
| |
| 611 | document.getElementById("hundred").style.display = "none";
| |
| 612 | document.getElementById("thousand").style.display = "none";
| |
| 613 | ||
| 614 | document.getElementById("tenn").style.display = "none";
| |
| 615 | document.getElementById("hundredd").style.display = "none";
| |
| 616 | document.getElementById("thousandd").style.display = "none";
| |
| 617 | ||
| 618 | document.getElementById("tennn").style.display = "none";
| |
| 619 | document.getElementById("hundreddd").style.display = "none";
| |
| 620 | document.getElementById("thousanddd").style.display = "none";
| |
| 621 | ||
| 622 | document.getElementById("tennnn").style.display = "none";
| |
| 623 | document.getElementById("hundredddd").style.display = "none";
| |
| 624 | document.getElementById("thousandddd").style.display = "none";
| |
| 625 | ||
| 626 | document.getElementById("twomartin").style.display = "none";
| |
| 627 | document.getElementById("threemartin").style.display = "none";
| |
| 628 | document.getElementById("fivemartin").style.display = "none";
| |
| 629 | document.getElementById("fifthymartin").style.display = "none";
| |
| 630 | ||
| 631 | document.getElementById('ten').onclick = function() {
| |
| 632 | mten(); | |
| 633 | } | |
| 634 | document.getElementById('hundred').onclick = function() {
| |
| 635 | mhundred(); | |
| 636 | } | |
| 637 | document.getElementById('thousand').onclick = function() {
| |
| 638 | mthousand(); | |
| 639 | } | |
| 640 | //3x --------------------------------------------------------------------- | |
| 641 | document.getElementById('tenn').onclick = function() {
| |
| 642 | mtenn(); | |
| 643 | } | |
| 644 | document.getElementById('hundredd').onclick = function() {
| |
| 645 | mhundredd(); | |
| 646 | } | |
| 647 | document.getElementById('thousandd').onclick = function() {
| |
| 648 | mthousandd(); | |
| 649 | } | |
| 650 | //5x ----------------------------------------------------------- | |
| 651 | document.getElementById('tennn').onclick = function() {
| |
| 652 | mtennn(); | |
| 653 | } | |
| 654 | document.getElementById('hundreddd').onclick = function() {
| |
| 655 | mhundreddd(); | |
| 656 | } | |
| 657 | document.getElementById('thousanddd').onclick = function() {
| |
| 658 | mthousanddd(); | |
| 659 | } | |
| 660 | //50x --------------------------------------------------------------- | |
| 661 | document.getElementById('tennnn').onclick = function() {
| |
| 662 | mtennnn(); | |
| 663 | } | |
| 664 | document.getElementById('hundredddd').onclick = function() {
| |
| 665 | mhundredddd(); | |
| 666 | } | |
| 667 | document.getElementById('thousandddd').onclick = function() {
| |
| 668 | mthousandddd(); | |
| 669 | // Done stating functions | |
| 670 | //------------------------------------------- | |
| 671 | } | |
| 672 | //spinning predict | |
| 673 | var col = document.createElement("button");
| |
| 674 | var or = document.createTextNode("Color");
| |
| 675 | col.appendChild(or); | |
| 676 | document.getElementById("content-wheel-balance").appendChild(col);
| |
| 677 | col.id = 'predict'; | |
| 678 | var property = document.getElementById('predict');
| |
| 679 | ||
| 680 | var yell = document.createElement('div');
| |
| 681 | document.getElementById('content-wheel-balance').appendChild(yell)
| |
| 682 | yell.id = "yellowc" | |
| 683 | ||
| 684 | function tellme(){
| |
| 685 | if (winner.choice === 0){
| |
| 686 | console.log('Black');
| |
| 687 | property.style.backgroundColor = "#666"; | |
| 688 | } | |
| 689 | else if (winner.choice === 1){
| |
| 690 | console.log('Red');
| |
| 691 | property.style.backgroundColor = "#C8354E" | |
| 692 | } | |
| 693 | else if (winner.choice === 2){
| |
| 694 | console.log('Blue');
| |
| 695 | property.style.backgroundColor = "#45B5DA" | |
| 696 | } | |
| 697 | else if (winner.choice === 3){
| |
| 698 | console.log('Yellow');
| |
| 699 | property.style.backgroundColor = "#FFC870"; | |
| 700 | } | |
| 701 | }; | |
| 702 | var myVari = setInterval(myTimers, 500); | |
| 703 | function myTimers() {
| |
| 704 | tellme(); | |
| 705 | } | |
| 706 | tellme(); | |
| 707 | ||
| 708 | ||
| 709 | //------------------------------------------Sovale | |
| 710 | var streak_array = []; | |
| 711 | var blacks = 0; | |
| 712 | var reds = 0; | |
| 713 | var blues = 0; | |
| 714 | var yellows = 0; | |
| 715 | var streak = 0; | |
| 716 | var max_streak = 0; | |
| 717 | var streak_avg = 0.0; | |
| 718 | var temp = 0; | |
| 719 | var coinswin = 0; | |
| 720 | var abet2 = 10; | |
| 721 | var stats = document.createElement("div");
| |
| 722 | stats.innerHTML = | |
| 723 | '<p><b>Blacks:</b>' + blacks + '</p>' + | |
| 724 | '<p><b>Reds:</b>' + reds + '</p>' + | |
| 725 | '<p><b>Blues:</b>' + blues + '</p>' + | |
| 726 | '<p><b>Yellows:</b>' + yellows + '</p>' + | |
| 727 | '<p><b>Current streak:</b>' + streak + '</p>' + | |
| 728 | '<p><b>Max streak:</b>' + max_streak + '</p>' + | |
| 729 | '<p><b>Average streak:</b>' + streak_avg + '</p>' + | |
| 730 | '<p><b>Win:</b>' + coinswin + '</p>'; | |
| 731 | ||
| 732 | stats.id = 'stats'; | |
| 733 | document.getElementById("content-wheel-balance").appendChild(stats);
| |
| 734 | ||
| 735 | function updateHTML() {
| |
| 736 | stats.innerHTML = | |
| 737 | '<p><b>Blacks:</b>' + blacks + '</p>' + | |
| 738 | '<p><b>Reds:</b>' + reds + '</p>' + | |
| 739 | '<p><b>Blues:</b>' + blues + '</p>' + | |
| 740 | '<p><b>Yellows:</b>' + yellows + '</p>' + | |
| 741 | '<p><b>Current streak:</b>' + streak + '</p>' + | |
| 742 | '<p><b>Max streak:</b>' + max_streak + '</p>' + | |
| 743 | '<p><b>Average streak:</b>' + streak_avg + '</p>' + | |
| 744 | '<p><b>Win:</b>' + coinswin + '</p>'; | |
| 745 | } | |
| 746 | ||
| 747 | function counter(){
| |
| 748 | if (winner.choice === 0){
| |
| 749 | blacks += 1; | |
| 750 | streak += 1; | |
| 751 | temp += 1; | |
| 752 | coinswin -= abet2; | |
| 753 | abet2 += 1; | |
| 754 | updateHTML(); | |
| 755 | } | |
| 756 | else if (winner.choice === 1){
| |
| 757 | reds += 1; | |
| 758 | streak += 1; | |
| 759 | temp += 1; | |
| 760 | coinswin -= abet2; | |
| 761 | abet2 += 1; | |
| 762 | updateHTML(); | |
| 763 | } | |
| 764 | else if (winner.choice === 2){
| |
| 765 | blues += 1; | |
| 766 | streak += 1; | |
| 767 | temp += 1; | |
| 768 | coinswin -= abet2; | |
| 769 | abet2 += 1; | |
| 770 | updateHTML(); | |
| 771 | } | |
| 772 | else if (winner.choice === 3){
| |
| 773 | streak_array[yellows] = streak; | |
| 774 | yellows += 1; | |
| 775 | if (streak > max_streak) {
| |
| 776 | max_streak = streak; | |
| 777 | } | |
| 778 | streak_avg = temp / yellows; | |
| 779 | streak = 0; | |
| 780 | coinswin += abet2*50; | |
| 781 | abet2 = 10; | |
| 782 | updateHTML(); | |
| 783 | } | |
| 784 | }; | |
| 785 | var countInterval = setInterval(counter, 35000); | |
| 786 | //------------------------------------------ | |
| 787 | function yel(){
| |
| 788 | if (winner.choice === 3){
| |
| 789 | window.clearInterval(); | |
| 790 | var doughnut = 0; | |
| 791 | window.setInterval( | |
| 792 | function () {
| |
| 793 | doughnut = doughnut + 1; | |
| 794 | document.getElementById("yellowc").innerHTML = "Rolls since Yellow / 50x:" + doughnut ;
| |
| 795 | ||
| 796 | }, 35000); | |
| 797 | }} | |
| 798 | var myVaris = setInterval(myTimerst, 35000); | |
| 799 | function myTimerst() {
| |
| 800 | yel(); | |
| 801 | } | |
| 802 | yel(); |