1 2 3 4function filterFunction() { 5 var input, filter, ul, li, a, i; 6 input = document.getElementById("confettis"); 7 filter = input.value.toUpperCase(); 8 div = document.getElementById("confettidropdown"); 9 a = div.getElementsByTagName("a"); 10 for (i = 0; i < a.length; i++) { 11 txtValue = a[i].textContent || a[i].innerText; 12 if (txtValue.toUpperCase().indexOf(filter) > -1) { 13 a[i].style.display = ""; 14 } else { 15 a[i].style.display = "none"; 16 } 17 } 18 } 19 20 function closeconfettimenu() { 21 document.querySelector(".confetti-content").style.display = "none"; 22 } 23 24 25 function noconfetti() { 26 e.stopPropagation(); 27 } 28 29 function confettidefault() { 30 event.preventDefault(); 31 document.querySelector(".confetti-content").style.display = "none"; 32 confetti({ 33 angle: randomInRange(55, 125), 34 spread: randomInRange(100, 200), 35 particleCount: randomInRange(50, 200), 36 ticks: 2000, 37 origin: { x: 0 }, 38 }); 39 confetti({ 40 angle: randomInRange(55, 125), 41 spread: randomInRange(100, 200), 42 particleCount: randomInRange(50, 200), 43 ticks: 2000, 44 origin: { x: 1 }, 45 }); 46 confettisaucy({ 47 angle: randomInRange(55, 125), 48 spread: randomInRange(100, 200), 49 particleCount: randomInRange(50, 200), 50 ticks: 2000, 51 origin: { y: 1 }, 52 }); 53 confetti({ 54 angle: randomInRange(55, 125), 55 spread: randomInRange(100, 200), 56 particleCount: randomInRange(50, 200), 57 ticks: 2000, 58 origin: { y: 0.5 }, 59 }); 60 function randomInRange(min, max) { 61 return Math.random() * (max - min) + min; 62 } 63 } 64 65 66 function confettiblack() { 67 event.preventDefault(); 68 document.querySelector(".confetti-content").style.display = "none"; 69 confetti({ 70 colors: ["#000000"], 71 angle: randomInRange(55, 125), 72 spread: randomInRange(100, 200), 73 particleCount: randomInRange(50, 200), 74 ticks: 2000, 75 origin: { x: 0 }, 76 }); 77 confetti({ 78 colors: ["#000000"], 79 angle: randomInRange(55, 125), 80 spread: randomInRange(100, 200), 81 particleCount: randomInRange(50, 200), 82 ticks: 2000, 83 origin: { x: 1 }, 84 }); 85 confettisaucy({ 86 colors: ["#000000"], 87 angle: randomInRange(55, 125), 88 spread: randomInRange(100, 200), 89 particleCount: randomInRange(50, 200), 90 ticks: 2000, 91 origin: { y: 1 }, 92 }); 93 confetti({ 94 colors: ["#000000"], 95 angle: randomInRange(55, 125), 96 spread: randomInRange(100, 200), 97 particleCount: randomInRange(50, 200), 98 ticks: 2000, 99 origin: { y: 0.5 }, 100 }); 101 function randomInRange(min, max) { 102 return Math.random() * (max - min) + min; 103 } 104 } 105 106 function confettiwhite() { 107 event.preventDefault(); 108 document.querySelector(".confetti-content").style.display = "none"; 109 confetti({ 110 colors: ["#ffffff"], 111 angle: randomInRange(55, 125), 112 spread: randomInRange(100, 200), 113 particleCount: randomInRange(50, 200), 114 ticks: 2000, 115 origin: { x: 0 }, 116 }); 117 confetti({ 118 colors: ["#ffffff"], 119 angle: randomInRange(55, 125), 120 spread: randomInRange(100, 200), 121 particleCount: randomInRange(50, 200), 122 ticks: 2000, 123 origin: { x: 1 }, 124 }); 125 confetti({ 126 colors: ["#ffffff"], 127 angle: randomInRange(55, 125), 128 spread: randomInRange(100, 200), 129 particleCount: randomInRange(50, 200), 130 ticks: 2000, 131 origin: { y: 1 }, 132 }); 133 confettisaucy({ 134 colors: ["#ffffff"], 135 angle: randomInRange(55, 125), 136 spread: randomInRange(100, 200), 137 particleCount: randomInRange(50, 200), 138 ticks: 2000, 139 origin: { y: 0.5 }, 140 }); 141 function randomInRange(min, max) { 142 return Math.random() * (max - min) + min; 143 } 144 } 145 146 function confettired() { 147 event.preventDefault(); 148 document.querySelector(".confetti-content").style.display = "none"; 149 confetti({ 150 colors: ["#ff0000"], 151 angle: randomInRange(55, 125), 152 spread: randomInRange(100, 200), 153 particleCount: randomInRange(50, 200), 154 ticks: 2000,
155 origin: { x: 0 }, 156 }); 157 confetti({ 158 colors: ["#ff0000"], 159 angle: randomInRange(55, 125), 160 spread: randomInRange(100, 200), 161 particleCount: randomInRange(50, 200), 162 ticks: 2000, 163 origin: { x: 1 }, 164 }); 165 confetti({ 166 colors: ["#ff0000"], 167 angle: randomInRange(55, 125), 168 spread: randomInRange(100, 200), 169 particleCount: randomInRange(50, 200), 170 ticks: 2000, 171 origin: { y: 1 }, 172 }); 173 confettisaucy({ 174 colors: ["#ff0000"], 175 angle: randomInRange(55, 125), 176 spread: randomInRange(100, 200), 177 particleCount: randomInRange(50, 200), 178 ticks: 2000, 179 origin: { y: 0.5 }, 180 }); 181 function randomInRange(min, max) { 182 return Math.random() * (max - min) + min; 183 } 184 } 185 186 function confettiorange() { 187 event.preventDefault(); 188 document.querySelector(".confetti-content").style.display = "none"; 189 confetti({ 190 colors: ["#ff8c00"], 191 angle: randomInRange(55, 125), 192 spread: randomInRange(100, 200), 193 particleCount: randomInRange(50, 200), 194 ticks: 2000, 195 origin: { x: 0 }, 196 }); 197 confetti({ 198 colors: ["#ff8c00"], 199 angle: randomInRange(55, 125), 200 spread: randomInRange(100, 200), 201 particleCount: randomInRange(50, 200), 202 ticks: 2000, 203 origin: { x: 1 }, 204 }); 205 confetti({ 206 colors: ["#ff8c00"], 207 angle: randomInRange(55, 125), 208 spread: randomInRange(100, 200), 209 particleCount: randomInRange(50, 200), 210 ticks: 2000, 211 origin: { y: 1 }, 212 }); 213 confettisaucy({ 214 colors: ["#ff8c00"], 215 angle: randomInRange(55, 125), 216 spread: randomInRange(100, 200), 217 particleCount: randomInRange(50, 200), 218 ticks: 2000, 219 origin: { y: 0.5 }, 220 }); 221 function randomInRange(min, max) { 222 return Math.random() * (max - min) + min; 223 } 224 } 225 226 function confettiyellow() { 227 event.preventDefault(); 228 document.querySelector(".confetti-content").style.display = "none"; 229 confetti({ 230 colors: ["#E1AD01"], 231 angle: randomInRange(55, 125), 232 spread: randomInRange(100, 200), 233 particleCount: randomInRange(50, 200), 234 ticks: 2000, 235 origin: { x: 0 }, 236 }); 237 confetti({ 238 colors: ["#E1AD01"], 239 angle: randomInRange(55, 125), 240 spread: randomInRange(100, 200), 241 particleCount: randomInRange(50, 200), 242 ticks: 2000, 243 origin: { x: 1 }, 244 }); 245 confetti({ 246 colors: ["#E1AD01"], 247 angle: randomInRange(55, 125), 248 spread: randomInRange(100, 200), 249 particleCount: randomInRange(50, 200), 250 ticks: 2000, 251 origin: { y: 1 }, 252 }); 253 confetti({ 254 colors: ["#E1AD01"], 255 angle: randomInRange(55, 125), 256 spread: randomInRange(100, 200), 257 particleCount: randomInRange(50, 200), 258 ticks: 2000, 259 origin: { y: 0.5 }, 260 }); 261 function randomInRange(min, max) { 262 return Math.random() * (max - min) + min; 263 } 264 } 265 266 function confettigreen() { 267 event.preventDefault(); 268 document.querySelector(".confetti-content").style.display = "none"; 269 confetti({ 270 colors: ["#006400"], 271 angle: randomInRange(55, 125), 272 spread: randomInRange(100, 200), 273 particleCount: randomInRange(50, 200), 274 ticks: 2000, 275 origin: { x: 0 }, 276 }); 277 confetti({ 278 colors: ["#006400"], 279 angle: randomInRange(55, 125), 280 spread: randomInRange(100, 200), 281 particleCount: randomInRange(50, 200), 282 ticks: 2000, 283 origin: { x: 1 }, 284 }); 285 confetti({ 286 colors: ["#006400"], 287 angle: randomInRange(55, 125), 288 spread: randomInRange(100, 200), 289 particleCount: randomInRange(50, 200), 290 ticks: 2000, 291 origin: { y: 1 }, 292 }); 293 confetti({ 294 colors: ["#006400"], 295 angle: randomInRange(55, 125), 296 spread: randomInRange(100, 200), 297 particleCount: randomInRange(50, 200), 298 ticks: 2000, 299 origin: { y: 0.5 }, 300 }); 301 function randomInRange(min, max) { 302 return Math.random() * (max - min) + min; 303 } 304 } 305 306 function confettiblue() { 307 event.preventDefault(); 308 document.querySelector(".confetti-content").style.display = "none"; 309 confetti({ 310 colors: ["#00008b"], 311 angle: randomInRange(55, 125), 312 spread: randomInRange(100, 200), 313 particleCount: randomInRange(50, 200), 314 ticks: 2000,
315 origin: { x: 0 }, 316 }); 317 confetti({ 318 colors: ["#00008b"], 319 angle: randomInRange(55, 125), 320 spread: randomInRange(100, 200), 321 particleCount: randomInRange(50, 200), 322 ticks: 2000, 323 origin: { x: 1 }, 324 }); 325 confetti({ 326 colors: ["#00008b"], 327 angle: randomInRange(55, 125), 328 spread: randomInRange(100, 200), 329 particleCount: randomInRange(50, 200), 330 ticks: 2000, 331 origin: { y: 1 }, 332 }); 333 confetti({ 334 colors: ["#00008b"], 335 angle: randomInRange(55, 125), 336 spread: randomInRange(100, 200), 337 particleCount: randomInRange(50, 200), 338 ticks: 2000, 339 origin: { y: 0.5 }, 340 }); 341 function randomInRange(min, max) { 342 return Math.random() * (max - min) + min; 343 } 344 } 345 346 function confettipurple() { 347 event.preventDefault(); 348 document.querySelector(".confetti-content").style.display = "none"; 349 confetti({ 350 colors: ["#800080"], 351 angle: randomInRange(55, 125), 352 spread: randomInRange(100, 200), 353 particleCount: randomInRange(50, 200), 354 ticks: 2000, 355 origin: { x: 0 }, 356 }); 357 confetti({ 358 colors: ["#800080"], 359 angle: randomInRange(55, 125), 360 spread: randomInRange(100, 200), 361 particleCount: randomInRange(50, 200), 362 ticks: 2000, 363 origin: { x: 1 }, 364 }); 365 confetti({ 366 colors: ["#800080"], 367 angle: randomInRange(55, 125), 368 spread: randomInRange(100, 200), 369 particleCount: randomInRange(50, 200), 370 ticks: 2000, 371 origin: { y: 1 }, 372 }); 373 confetti({ 374 colors: ["#800080"], 375 angle: randomInRange(55, 125), 376 spread: randomInRange(100, 200), 377 particleCount: randomInRange(50, 200), 378 ticks: 2000, 379 origin: { y: 0.5 }, 380 }); 381 function randomInRange(min, max) { 382 return Math.random() * (max - min) + min; 383 } 384 } 385 386 function confettipink() { 387 event.preventDefault(); 388 document.querySelector(".confetti-content").style.display = "none"; 389 confetti({ 390 colors: ["#e75480"], 391 angle: randomInRange(55, 125), 392 spread: randomInRange(100, 200), 393 particleCount: randomInRange(50, 200), 394 ticks: 2000, 395 origin: { x: 0 }, 396 }); 397 confetti({ 398 colors: ["#e75480"], 399 angle: randomInRange(55, 125), 400 spread: randomInRange(100, 200), 401 particleCount: randomInRange(50, 200), 402 ticks: 2000, 403 origin: { x: 1 }, 404 }); 405 confetti({ 406 colors: ["#e75480"], 407 angle: randomInRange(55, 125), 408 spread: randomInRange(100, 200), 409 particleCount: randomInRange(50, 200), 410 ticks: 2000, 411 origin: { y: 1 }, 412 }); 413 confetti({ 414 colors: ["#e75480"], 415 angle: randomInRange(55, 125), 416 spread: randomInRange(100, 200), 417 particleCount: randomInRange(50, 200), 418 ticks: 2000, 419 origin: { y: 0.5 }, 420 }); 421 function randomInRange(min, max) { 422 return Math.random() * (max - min) + min; 423 } 424 } 425 426 427 428 429 function confettihalloween1() { 430 event.preventDefault(); 431 document.querySelector(".confetti-content").style.display = "none"; 432 confetti({ 433 colors: ["#ff8c00", "#000"], 434 angle: randomInRange(55, 125), 435 spread: randomInRange(100, 200), 436 particleCount: randomInRange(50, 200), 437 ticks: 2000, 438 origin: { x: 0 }, 439 }); 440 confetti({ 441 colors: ["#ff8c00", "#000"], 442 angle: randomInRange(55, 125), 443 spread: randomInRange(100, 200), 444 particleCount: randomInRange(50, 200), 445 ticks: 2000, 446 origin: { x: 1 }, 447 }); 448 confetti({ 449 colors: ["#ff8c00", "#000"], 450 angle: randomInRange(55, 125), 451 spread: randomInRange(100, 200), 452 particleCount: randomInRange(50, 200), 453 ticks: 2000, 454 origin: { y: 1 }, 455 }); 456 confetti({ 457 colors: ["#ff8c00", "#000"], 458 angle: randomInRange(55, 125), 459 spread: randomInRange(100, 200), 460 particleCount: randomInRange(50, 200), 461 ticks: 2000, 462 origin: { y: 0.5 }, 463 }); 464 function randomInRange(min, max) { 465 return Math.random() * (max - min) + min; 466 } 467 } 468 469 470 function confettihalloween2() { 471 event.preventDefault(); 472 document.querySelector(".confetti-content").style.display = "none"; 473 confetti({ 474 colors: ["#ff8c00", "#006400"], 475 angle: randomInRange(55, 125), 476 spread: randomInRange(100, 200), 477 particleCount: randomInRange(50, 200), 478 ticks: 2000,
479 origin: { x: 0 }, 480 }); 481 confetti({ 482 colors: ["#ff8c00", "#006400"], 483 angle: randomInRange(55, 125), 484 spread: randomInRange(100, 200), 485 particleCount: randomInRange(50, 200), 486 ticks: 2000, 487 origin: { x: 1 }, 488 }); 489 confetti({ 490 colors: ["#ff8c00", "#006400"], 491 angle: randomInRange(55, 125), 492 spread: randomInRange(100, 200), 493 particleCount: randomInRange(50, 200), 494 ticks: 2000, 495 origin: { y: 1 }, 496 }); 497 confetti({ 498 colors: ["#ff8c00", "#006400"], 499 angle: randomInRange(55, 125), 500 spread: randomInRange(100, 200), 501 particleCount: randomInRange(50, 200), 502 ticks: 2000, 503 origin: { y: 0.5 }, 504 }); 505 function randomInRange(min, max) { 506 return Math.random() * (max - min) + min; 507 } 508 } 509 510 function confettihalloween3() { 511 event.preventDefault(); 512 document.querySelector(".confetti-content").style.display = "none"; 513 confetti({ 514 colors: ["#800080", "#006400"], 515 angle: randomInRange(55, 125), 516 spread: randomInRange(100, 200), 517 particleCount: randomInRange(50, 200), 518 ticks: 2000, 519 origin: { x: 0 }, 520 }); 521 confetti({ 522 colors: ["#800080", "#006400"], 523 angle: randomInRange(55, 125), 524 spread: randomInRange(100, 200), 525 particleCount: randomInRange(50, 200), 526 ticks: 2000, 527 origin: { x: 1 }, 528 }); 529 confetti({ 530 colors: ["#800080", "#006400"], 531 angle: randomInRange(55, 125), 532 spread: randomInRange(100, 200), 533 particleCount: randomInRange(50, 200), 534 ticks: 2000, 535 origin: { y: 1 }, 536 }); 537 confetti({ 538 colors: ["#800080", "#006400"], 539 angle: randomInRange(55, 125), 540 spread: randomInRange(100, 200), 541 particleCount: randomInRange(50, 200), 542 ticks: 2000, 543 origin: { y: 0.5 }, 544 }); 545 function randomInRange(min, max) { 546 return Math.random() * (max - min) + min; 547 } 548 } 549 550 551 function confettihalloween4() { 552 event.preventDefault(); 553 document.querySelector(".confetti-content").style.display = "none"; 554 confetti({ 555 colors: ["#800080", "#006400", "#ff8c00", "#000"], 556 angle: randomInRange(55, 125), 557 spread: randomInRange(100, 200), 558 particleCount: randomInRange(50, 200), 559 ticks: 2000, 560 origin: { x: 0 }, 561 }); 562 confetti({ 563 colors: ["#800080", "#006400", "#ff8c00", "#000"], 564 angle: randomInRange(55, 125), 565 spread: randomInRange(100, 200), 566 particleCount: randomInRange(50, 200), 567 ticks: 2000, 568 origin: { x: 1 }, 569 }); 570 confetti({ 571 colors: ["#800080", "#006400", "#ff8c00", "#000"], 572 angle: randomInRange(55, 125), 573 spread: randomInRange(100, 200), 574 particleCount: randomInRange(50, 200), 575 ticks: 2000, 576 origin: { y: 1 }, 577 }); 578 confetti({ 579 colors: ["#800080", "#006400", "#ff8c00", "#000"], 580 angle: randomInRange(55, 125), 581 spread: randomInRange(100, 200), 582 particleCount: randomInRange(50, 200), 583 ticks: 2000, 584 origin: { y: 0.5 }, 585 }); 586 function randomInRange(min, max) { 587 return Math.random() * (max - min) + min; 588 } 589 } 590 591 function starshalloween1() { 592 event.preventDefault(); 593 document.querySelector(".confetti-content").style.display = "none"; 594 var duration = 595 15 * 596 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 597 animationEnd = Date.now() + duration, 598 skew = 1; 599 600 function randomInRange(n, a) { 601 return Math.random() * (a - n) + n; 602 } 603 604 function getRandomColor() { 605 // Randomly choose between the two colors 606 return Math.random() < 0.5 ? "#ff8c00" : "#000"; 607 } 608 609 !(function n() { 610 var a = animationEnd - Date.now(), 611 t = Math.max(200, (a / duration) * 500); 612 confetti({ 613 particleCount: 1, 614 startVelocity: 0, 615 ticks: t, 616 origin: { x: Math.random(), y: Math.random() * skew }, 617 colors: [getRandomColor()], 618 shapes: ["circle"], 619 gravity: randomInRange(0, 0), 620 scalar: randomInRange(0.4, 1), 621 drift: randomInRange(0, 0), 622 }), 623 0 < a && requestAnimationFrame(n); 624 })(); 625 } 626 627
628 function starshalloween2() { 629 event.preventDefault(); 630 document.querySelector(".confetti-content").style.display = "none"; 631 var duration = 632 15 * 633 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 634 animationEnd = Date.now() + duration, 635 skew = 1; 636 637 function randomInRange(n, a) { 638 return Math.random() * (a - n) + n; 639 } 640 641 function getRandomColor() { 642 // Randomly choose between the two colors 643 return Math.random() < 0.5 ? "#ff8c00" : "#006400"; 644 } 645 646 647 !(function n() { 648 var a = animationEnd - Date.now(), 649 t = Math.max(200, (a / duration) * 500); 650 confetti({ 651 particleCount: 1, 652 startVelocity: 0, 653 ticks: t, 654 origin: { x: Math.random(), y: Math.random() * skew }, 655 colors: [getRandomColor()], 656 shapes: ["circle"], 657 gravity: randomInRange(0, 0), 658 scalar: randomInRange(0.4, 1), 659 drift: randomInRange(0, 0), 660 }), 661 0 < a && requestAnimationFrame(n); 662 })(); 663 } 664 665 666 667 668 function starshalloween3() { 669 event.preventDefault(); 670 document.querySelector(".confetti-content").style.display = "none"; 671 var duration = 672 15 * 673 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 674 animationEnd = Date.now() + duration, 675 skew = 1; 676 677 function randomInRange(n, a) { 678 return Math.random() * (a - n) + n; 679 } 680 681 function getRandomColor() { 682 // Randomly choose between the two colors 683 return Math.random() < 0.5 ? "#800080" : "#006400"; 684 } 685 686 687 !(function n() { 688 var a = animationEnd - Date.now(), 689 t = Math.max(200, (a / duration) * 500); 690 confetti({ 691 particleCount: 1, 692 startVelocity: 0, 693 ticks: t, 694 origin: { x: Math.random(), y: Math.random() * skew }, 695 colors: [getRandomColor()], 696 shapes: ["circle"], 697 gravity: randomInRange(0, 0), 698 scalar: randomInRange(0.4, 1), 699 drift: randomInRange(0, 0), 700 }), 701 0 < a && requestAnimationFrame(n); 702 })(); 703 } 704 705 function starshalloween4() { 706 event.preventDefault(); 707 document.querySelector(".confetti-content").style.display = "none"; 708 var duration = 709 15 * 710 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 711 animationEnd = Date.now() + duration, 712 skew = 1; 713 714 function randomInRange(n, a) { 715 return Math.random() * (a - n) + n; 716 } 717 718 function getRandomColor() { 719 const colors = ["#800080", "#006400", "#ff8c00", "#000"]; 720 const randomIndex = Math.floor(Math.random() * colors.length); 721 return colors[randomIndex]; 722 } 723 724 !(function n() { 725 var a = animationEnd - Date.now(), 726 t = Math.max(200, (a / duration) * 500); 727 confetti({ 728 particleCount: 1, 729 startVelocity: 0, 730 ticks: t, 731 origin: { x: Math.random(), y: Math.random() * skew }, 732 colors: [getRandomColor()], 733 shapes: ["circle"], 734 gravity: randomInRange(0, 0), 735 scalar: randomInRange(0.4, 1), 736 drift: randomInRange(0, 0), 737 }), 738 0 < a && requestAnimationFrame(n); 739 })(); 740 } 741 742 743 744 function risehalloween1() { 745 event.preventDefault(); 746 document.querySelector(".confetti-content").style.display = "none"; 747 var duration = 748 15 * 749 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 750 animationEnd = Date.now() + duration, 751 skew = 1; 752 753 function randomInRange(a, n) { 754 return Math.random() * (n - a) + a; 755 } 756 757 function getRandomColor() { 758 const colors = ["#ff8c00", "#000"]; 759 const randomIndex = Math.floor(Math.random() * colors.length); 760 return colors[randomIndex]; 761 } 762 763 !(function a() { 764 var n = animationEnd - Date.now(), 765 t = Math.max(200, (n / duration) * 500); 766 (skew = Math.max(0.8, skew - 0.001)), 767 confetti({ 768 particleCount: 1, 769 startVelocity: 0, 770 ticks: t, 771 origin: { x: Math.random(), y: 1 }, 772 colors: [getRandomColor()], 773 shapes: ["square"], 774 gravity: randomInRange(0.4, -2), 775 scalar: randomInRange(0.4, 1), 776 drift: randomInRange(0, 0), 777 }), 778 0 < n && requestAnimationFrame(a); 779 })(); 780 } 781 782 function risehalloween2() { 783 event.preventDefault(); 784 document.querySelector(".confetti-content").style.display = "none"; 785 var duration = 786 15 * 787 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 788 animationEnd = Date.now() + duration, 789 skew = 1; 790 791 function randomInRange(a, n) { 792 return Math.random() * (n - a) + a; 793 } 794 795 function getRandomColor() { 796 const colors = ["#ff8c00", "#006400"]; 797 const randomIndex = Math.floor(Math.random() * colors.length); 798 return colors[randomIndex]; 799 } 800 801 !(function a() { 802 var n = animationEnd - Date.now(), 803 t = Math.max(200, (n / duration) * 500); 804 (skew = Math.max(0.8, skew - 0.001)), 805 confetti({ 806 particleCount: 1, 807 startVelocity: 0, 808 ticks: t, 809 origin: { x: Math.random(), y: 1 }, 810 colors: [getRandomColor()], 811 shapes: ["square"], 812 gravity: randomInRange(0.4, -2), 813 scalar: randomInRange(0.4, 1), 814 drift: randomInRange(0, 0), 815 }), 816 0 < n && requestAnimationFrame(a); 817 })(); 818 } 819 820 function risehalloween3() { 821 event.preventDefault(); 822 document.querySelector(".confetti-content").style.display = "none"; 823 var duration = 824 15 * 825 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 826 animationEnd = Date.now() + duration, 827 skew = 1; 828 829 function randomInRange(a, n) { 830 return Math.random() * (n - a) + a; 831 } 832 833 function getRandomColor() { 834 const colors = ["#800080", "#006400"]; 835 const randomIndex = Math.floor(Math.random() * colors.length); 836 return colors[randomIndex]; 837 } 838 839 !(function a() { 840 var n = animationEnd - Date.now(), 841 t = Math.max(200, (n / duration) * 500); 842 (skew = Math.max(0.8, skew - 0.001)), 843 confetti({ 844 particleCount: 1, 845 startVelocity: 0, 846 ticks: t, 847 origin: { x: Math.random(), y: 1 }, 848 colors: [getRandomColor()], 849 shapes: ["square"], 850 gravity: randomInRange(0.4, -2), 851 scalar: randomInRange(0.4, 1), 852 drift: randomInRange(0, 0), 853 }), 854 0 < n && requestAnimationFrame(a); 855 })(); 856 } 857 858 function risehalloween4() { 859 event.preventDefault(); 860 document.querySelector(".confetti-content").style.display = "none"; 861 var duration = 862 15 * 863 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 864 animationEnd = Date.now() + duration, 865 skew = 1; 866 867 function randomInRange(a, n) { 868 return Math.random() * (n - a) + a; 869 } 870 871 function getRandomColor() { 872 const colors = ["#800080", "#006400", "#ff8c00", "#000"]; 873 const randomIndex = Math.floor(Math.random() * colors.length); 874 return colors[randomIndex]; 875 } 876 877 !(function a() { 878 var n = animationEnd - Date.now(), 879 t = Math.max(200, (n / duration) * 500); 880 (skew = Math.max(0.8, skew - 0.001)), 881 confetti({ 882 particleCount: 1, 883 startVelocity: 0, 884 ticks: t, 885 origin: { x: Math.random(), y: 1 }, 886 colors: [getRandomColor()], 887 shapes: ["square"], 888 gravity: randomInRange(0.4, -2), 889 scalar: randomInRange(0.4, 1), 890 drift: randomInRange(0, 0), 891 }), 892 0 < n && requestAnimationFrame(a); 893 })(); 894 } 895 896
897 function pridehalloween1() { 898 event.preventDefault(); 899 document.querySelector(".confetti-content").style.display = "none"; 900 var end = 901 Date.now() + 902 15 * 903 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 904 905 function getRandomColor() { 906 const colors = ["#ff8c00", "#000"]; 907 const randomIndex = Math.floor(Math.random() * colors.length); 908 return colors[randomIndex]; 909 } 910 911 !(function o() { 912 confetti({ 913 particleCount: 2, 914 angle: 60, 915 spread: 55, 916 origin: { x: 0 }, 917 colors: [getRandomColor()], 918 }), 919 confetti({ 920 particleCount: 2, 921 angle: 120, 922 spread: 55, 923 origin: { x: 1 }, 924 colors: [getRandomColor()], 925 }), 926 Date.now() < end && requestAnimationFrame(o); 927 })(); 928 } 929 930 931 function pridehalloween2() { 932 event.preventDefault(); 933 document.querySelector(".confetti-content").style.display = "none"; 934 var end = 935 Date.now() + 936 15 * 937 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 938 939 function getRandomColor() { 940 const colors = ["#ff8c00", "#006400"]; 941 const randomIndex = Math.floor(Math.random() * colors.length); 942 return colors[randomIndex]; 943 } 944 945 !(function o() { 946 confetti({ 947 particleCount: 2, 948 angle: 60, 949 spread: 55, 950 origin: { x: 0 }, 951 colors: [getRandomColor()], 952 }), 953 confetti({ 954 particleCount: 2, 955 angle: 120, 956 spread: 55, 957 origin: { x: 1 }, 958 colors: [getRandomColor()], 959 }), 960 Date.now() < end && requestAnimationFrame(o); 961 })(); 962 } 963 964 965 function pridehalloween3() { 966 event.preventDefault(); 967 document.querySelector(".confetti-content").style.display = "none"; 968 var end = 969 Date.now() + 970 15 * 971 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 972 973 function getRandomColor() { 974 const colors = ["#800080", "#006400"]; 975 const randomIndex = Math.floor(Math.random() * colors.length); 976 return colors[randomIndex]; 977 } 978 979 !(function o() { 980 confetti({ 981 particleCount: 2, 982 angle: 60, 983 spread: 55, 984 origin: { x: 0 }, 985 colors: [getRandomColor()], 986 }), 987 confetti({ 988 particleCount: 2, 989 angle: 120, 990 spread: 55, 991 origin: { x: 1 }, 992 colors: [getRandomColor()], 993 }), 994 Date.now() < end && requestAnimationFrame(o); 995 })(); 996 } 997 998 999 function pridehalloween4() { 1000 event.preventDefault(); 1001 document.querySelector(".confetti-content").style.display = "none"; 1002 var end = 1003 Date.now() + 1004 15 * 1005 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1006 1007 function getRandomColor() { 1008 const colors = ["#800080", "#006400", "#ff8c00", "#000"]; 1009 const randomIndex = Math.floor(Math.random() * colors.length); 1010 return colors[randomIndex]; 1011 } 1012 1013 !(function o() { 1014 confetti({ 1015 particleCount: 2, 1016 angle: 60, 1017 spread: 55, 1018 origin: { x: 0 }, 1019 colors: [getRandomColor()], 1020 }), 1021 confetti({ 1022 particleCount: 2, 1023 angle: 120, 1024 spread: 55, 1025 origin: { x: 1 }, 1026 colors: [getRandomColor()], 1027 }), 1028 Date.now() < end && requestAnimationFrame(o); 1029 })(); 1030 } 1031 1032 1033 function waveshalloween1() { 1034 event.preventDefault(); 1035 document.querySelector(".confetti-content").style.display = "none"; 1036 1037 var duration = 5000; // Adjust the duration as needed 1038 var animationEnd = Date.now() + duration; 1039 var skew = 1; 1040 1041 function randomInRange(a, n) { 1042 return Math.random() * (n - a) + a; 1043 } 1044 1045 function createHalfAndHalfConfetti() { 1046 var timeRemaining = animationEnd - Date.now(); 1047 var ticks = Math.max(200, (timeRemaining / duration) * 500); 1048 1049 skew = Math.max(0.8, skew - 0.001); 1050 1051 var totalParticles = Math.min(5, ticks); // Set a limit for the total number of particles 1052 1053 var colors = ["#ff8c00", "#000"]; 1054 var colorsCount = colors.length; 1055 var particlesPerColor = Math.floor(totalParticles / colorsCount); 1056 1057 for (let i = 0; i < colorsCount; i++) { 1058 for (let j = 0; j < particlesPerColor; j++) { 1059 confetti({ 1060 particleCount: 1, 1061 startVelocity: 0, 1062 ticks: ticks, 1063 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1064 colors: [colors[i]], 1065 shapes: ["circle"], 1066 gravity: randomInRange(-1, 0.6), 1067 scalar: randomInRange(0.4, 1), 1068 drift: randomInRange(7, 1), 1069 }); 1070 } 1071 } 1072 1073 if (timeRemaining > 0) { 1074 requestAnimationFrame(createHalfAndHalfConfetti); 1075 } 1076 } 1077 1078 createHalfAndHalfConfetti(); 1079 } 1080 1081 function waveshalloween2() { 1082 event.preventDefault(); 1083 document.querySelector(".confetti-content").style.display = "none"; 1084 1085 var duration = 5000; // Adjust the duration as needed 1086 var animationEnd = Date.now() + duration; 1087 var skew = 1; 1088 1089 function randomInRange(a, n) { 1090 return Math.random() * (n - a) + a; 1091 } 1092 1093 function createHalfAndHalfConfetti() { 1094 var timeRemaining = animationEnd - Date.now(); 1095 var ticks = Math.max(200, (timeRemaining / duration) * 500); 1096 1097 skew = Math.max(0.8, skew - 0.001); 1098 1099 var totalParticles = Math.min(5, ticks); // Set a limit for the total number of particles 1100 1101 var colors = ["#ff8c00", "#006400"]; 1102 var colorsCount = colors.length; 1103 var particlesPerColor = Math.floor(totalParticles / colorsCount); 1104 1105 for (let i = 0; i < colorsCount; i++) { 1106 for (let j = 0; j < particlesPerColor; j++) { 1107 confetti({ 1108 particleCount: 1, 1109 startVelocity: 0, 1110 ticks: ticks, 1111 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1112 colors: [colors[i]], 1113 shapes: ["circle"], 1114 gravity: randomInRange(-1, 0.6), 1115 scalar: randomInRange(0.4, 1), 1116 drift: randomInRange(7, 1), 1117 }); 1118 } 1119 } 1120 1121 if (timeRemaining > 0) { 1122 requestAnimationFrame(createHalfAndHalfConfetti); 1123 } 1124 } 1125 1126 createHalfAndHalfConfetti(); 1127 } 1128 1129
1130 function waveshalloween3() { 1131 event.preventDefault(); 1132 document.querySelector(".confetti-content").style.display = "none"; 1133 1134 var duration = 5000; // Adjust the duration as needed 1135 var animationEnd = Date.now() + duration; 1136 var skew = 1; 1137 1138 function randomInRange(a, n) { 1139 return Math.random() * (n - a) + a; 1140 } 1141 1142 function createHalfAndHalfConfetti() { 1143 var timeRemaining = animationEnd - Date.now(); 1144 var ticks = Math.max(200, (timeRemaining / duration) * 500); 1145 1146 skew = Math.max(0.8, skew - 0.001); 1147 1148 var totalParticles = Math.min(5, ticks); // Set a limit for the total number of particles 1149 1150 var colors = ["#800080", "#006400"]; 1151 var colorsCount = colors.length; 1152 var particlesPerColor = Math.floor(totalParticles / colorsCount); 1153 1154 for (let i = 0; i < colorsCount; i++) { 1155 for (let j = 0; j < particlesPerColor; j++) { 1156 confetti({ 1157 particleCount: 1, 1158 startVelocity: 0, 1159 ticks: ticks, 1160 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1161 colors: [colors[i]], 1162 shapes: ["circle"], 1163 gravity: randomInRange(-1, 0.6), 1164 scalar: randomInRange(0.4, 1), 1165 drift: randomInRange(7, 1), 1166 }); 1167 } 1168 } 1169 1170 if (timeRemaining > 0) { 1171 requestAnimationFrame(createHalfAndHalfConfetti); 1172 } 1173 } 1174 1175 createHalfAndHalfConfetti(); 1176 } 1177 1178 function waveshalloween4() { 1179 event.preventDefault(); 1180 document.querySelector(".confetti-content").style.display = "none"; 1181 1182 var duration = 5000; // Adjust the duration as needed 1183 var animationEnd = Date.now() + duration; 1184 var skew = 1; 1185 1186 function randomInRange(a, n) { 1187 return Math.random() * (n - a) + a; 1188 } 1189 1190 function createHalfAndHalfConfetti() { 1191 var timeRemaining = animationEnd - Date.now(); 1192 var ticks = Math.max(200, (timeRemaining / duration) * 500); 1193 1194 skew = Math.max(0.8, skew - 0.001); 1195 1196 var totalParticles = Math.min(5, ticks); // Set a limit for the total number of particles 1197 1198 var colors = ["#800080", "#006400", "#ff8c00", "#000"]; 1199 var colorsCount = colors.length; 1200 var particlesPerColor = Math.floor(totalParticles / colorsCount); 1201 1202 for (let i = 0; i < colorsCount; i++) { 1203 for (let j = 0; j < particlesPerColor; j++) { 1204 confetti({ 1205 particleCount: 1, 1206 startVelocity: 0, 1207 ticks: ticks, 1208 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1209 colors: [colors[i]], 1210 shapes: ["circle"], 1211 gravity: randomInRange(-1, 0.6), 1212 scalar: randomInRange(0.4, 1), 1213 drift: randomInRange(7, 1), 1214 }); 1215 } 1216 } 1217 1218 if (timeRemaining > 0) { 1219 requestAnimationFrame(createHalfAndHalfConfetti); 1220 } 1221 } 1222 1223 createHalfAndHalfConfetti(); 1224 } 1225 1226 1227 function snowhalloween1() { 1228 event.preventDefault(); 1229 document.querySelector(".confetti-content").style.display = "none"; 1230 1231 var duration = 1232 15 * 1233 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1234 var animationEnd = Date.now() + duration; 1235 var skew = 1; 1236 1237 function randomInRange(a, n) { 1238 return Math.random() * (n - a) + a; 1239 } 1240 1241 function createHalfAndHalfConfetti() { 1242 var timeRemaining = animationEnd - Date.now(); 1243 var ticks = Math.max(50, (timeRemaining / duration) * 500); 1244 1245 skew = Math.max(0.8, skew - 0.001); 1246 1247 var totalParticles = Math.min(5, ticks); // Set a limit for the total number of particles 1248 1249 var halfConfettiCount = Math.floor(totalParticles / 2); 1250 1251 for (let i = 0; i < halfConfettiCount; i++) { 1252 confetti({ 1253 particleCount: 1, 1254 startVelocity: 0, 1255 ticks: ticks, 1256 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1257 colors: ["#ff8c00"], // Orange color 1258 shapes: ["circle"], 1259 gravity: randomInRange(0.4, 0.6), 1260 scalar: randomInRange(0.4, 1), 1261 drift: randomInRange(-0.4, 0.4), 1262 }); 1263 } 1264 1265 for (let i = halfConfettiCount; i < totalParticles; i++) { 1266 confetti({ 1267 particleCount: 1, 1268 startVelocity: 0, 1269 ticks: ticks, 1270 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1271 colors: ["#000"], // Black color 1272 shapes: ["circle"], 1273 gravity: randomInRange(0.4, 0.6), 1274 scalar: randomInRange(0.4, 1), 1275 drift: randomInRange(-0.4, 0.4), 1276 }); 1277 } 1278 1279 if (timeRemaining > 0) { 1280 requestAnimationFrame(createHalfAndHalfConfetti); 1281 } 1282 } 1283 1284 createHalfAndHalfConfetti(); 1285 } 1286 1287
1288 function snowhalloween2() { 1289 event.preventDefault(); 1290 document.querySelector(".confetti-content").style.display = "none"; 1291 1292 var duration = 1293 15 * 1294 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1295 var animationEnd = Date.now() + duration; 1296 var skew = 1; 1297 1298 function randomInRange(a, n) { 1299 return Math.random() * (n - a) + a; 1300 } 1301 1302 function createHalfAndHalfConfetti() { 1303 var timeRemaining = animationEnd - Date.now(); 1304 var ticks = Math.max(50, (timeRemaining / duration) * 500); 1305 1306 skew = Math.max(0.8, skew - 0.001); 1307 1308 var totalParticles = Math.min(5, ticks); // Set a limit for the total number of particles 1309 1310 var halfConfettiCount = Math.floor(totalParticles / 2); 1311 1312 for (let i = 0; i < halfConfettiCount; i++) { 1313 confetti({ 1314 particleCount: 1, 1315 startVelocity: 0, 1316 ticks: ticks, 1317 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1318 colors: ["#ff8c00"], // Orange color 1319 shapes: ["circle"], 1320 gravity: randomInRange(0.4, 0.6), 1321 scalar: randomInRange(0.4, 1), 1322 drift: randomInRange(-0.4, 0.4), 1323 }); 1324 } 1325 1326 for (let i = halfConfettiCount; i < totalParticles; i++) { 1327 confetti({ 1328 particleCount: 1, 1329 startVelocity: 0, 1330 ticks: ticks, 1331 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1332 colors: ["#006400"], // Black color 1333 shapes: ["circle"], 1334 gravity: randomInRange(0.4, 0.6), 1335 scalar: randomInRange(0.4, 1), 1336 drift: randomInRange(-0.4, 0.4), 1337 }); 1338 } 1339 1340 if (timeRemaining > 0) { 1341 requestAnimationFrame(createHalfAndHalfConfetti); 1342 } 1343 } 1344 1345 createHalfAndHalfConfetti(); 1346 } 1347 1348 1349 1350 function snowhalloween3() { 1351 event.preventDefault(); 1352 document.querySelector(".confetti-content").style.display = "none"; 1353 1354 var duration = 1355 15 * 1356 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1357 var animationEnd = Date.now() + duration; 1358 var skew = 1; 1359 1360 function randomInRange(a, n) { 1361 return Math.random() * (n - a) + a; 1362 } 1363 1364 function createHalfAndHalfConfetti() { 1365 var timeRemaining = animationEnd - Date.now(); 1366 var ticks = Math.max(50, (timeRemaining / duration) * 500); 1367 1368 skew = Math.max(0.8, skew - 0.001); 1369 1370 var totalParticles = Math.min(5, ticks); // Set a limit for the total number of particles 1371 1372 var halfConfettiCount = Math.floor(totalParticles / 2); 1373 1374 for (let i = 0; i < halfConfettiCount; i++) { 1375 confetti({ 1376 particleCount: 1, 1377 startVelocity: 0, 1378 ticks: ticks, 1379 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1380 colors: ["#800080"], // Orange color 1381 shapes: ["circle"], 1382 gravity: randomInRange(0.4, 0.6), 1383 scalar: randomInRange(0.4, 1), 1384 drift: randomInRange(-0.4, 0.4), 1385 }); 1386 } 1387 1388 for (let i = halfConfettiCount; i < totalParticles; i++) { 1389 confetti({ 1390 particleCount: 1, 1391 startVelocity: 0, 1392 ticks: ticks, 1393 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1394 colors: ["#006400"], // Black color 1395 shapes: ["circle"], 1396 gravity: randomInRange(0.4, 0.6), 1397 scalar: randomInRange(0.4, 1), 1398 drift: randomInRange(-0.4, 0.4), 1399 }); 1400 } 1401 1402 if (timeRemaining > 0) { 1403 requestAnimationFrame(createHalfAndHalfConfetti); 1404 } 1405 } 1406 1407 createHalfAndHalfConfetti(); 1408 } 1409 1410 1411 1412 function snowhalloween4() { 1413 event.preventDefault(); 1414 document.querySelector(".confetti-content").style.display = "none"; 1415 1416 var duration = 1417 15 * 1418 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1419 var animationEnd = Date.now() + duration; 1420 var skew = 1; 1421 1422 function randomInRange(a, n) { 1423 return Math.random() * (n - a) + a; 1424 } 1425 1426 function createHalfAndHalfConfetti() { 1427 var timeRemaining = animationEnd - Date.now(); 1428 var ticks = Math.max(50, (timeRemaining / duration) * 500); 1429 1430 skew = Math.max(0.8, skew - 0.001); 1431 1432 var totalParticles = Math.min(5, ticks); // Set a limit for the total number of particles 1433 1434 var colors = ["#800080", "#006400", "#ff8c00", "#000"]; 1435 var colorsCount = colors.length; 1436 var particlesPerColor = Math.floor(totalParticles / colorsCount); 1437 1438 for (let i = 0; i < colorsCount; i++) { 1439 for (let j = 0; j < particlesPerColor; j++) { 1440 confetti({ 1441 particleCount: 1, 1442 startVelocity: 0, 1443 ticks: ticks, 1444 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1445 colors: [colors[i]], 1446 shapes: ["circle"], 1447 gravity: randomInRange(0.4, 0.6), 1448 scalar: randomInRange(0.4, 1), 1449 drift: randomInRange(-0.4, 0.4), 1450 }); 1451 } 1452 } 1453 1454 if (timeRemaining > 0) { 1455 requestAnimationFrame(createHalfAndHalfConfetti); 1456 } 1457 } 1458 1459 createHalfAndHalfConfetti(); 1460 } 1461 1462
1463 function rainhalloween1() { 1464 event.preventDefault(); 1465 document.querySelector(".confetti-content").style.display = "none"; 1466 var duration = 1467 15 * 1468 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1469 var animationEnd = Date.now() + duration; 1470 var skew = 1; 1471 1472 function randomInRange(a, n) { 1473 return Math.random() * (n - a) + a; 1474 } 1475 1476 function createOneOfEachConfetti() { 1477 var timeRemaining = animationEnd - Date.now(); 1478 var ticks = Math.max(200, (timeRemaining / duration) * 500); 1479 1480 skew = Math.max(0.8, skew - 0.001); 1481 1482 // Define an array of colors to use 1483 var colors = ["#ff8c00", "#000"]; 1484 1485 // Create one confetti for each color 1486 for (let i = 0; i < colors.length; i++) { 1487 confetti({ 1488 particleCount: 1, 1489 startVelocity: 0, 1490 ticks: ticks, 1491 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1492 colors: [colors[i]], 1493 shapes: ["square"], 1494 gravity: randomInRange(1, 0.6), 1495 scalar: randomInRange(0.4, 1), 1496 drift: randomInRange(-0.4, 0.4), 1497 }); 1498 } 1499 1500 if (timeRemaining > 0) { 1501 requestAnimationFrame(createOneOfEachConfetti); 1502 } 1503 } 1504 1505 createOneOfEachConfetti(); 1506 } 1507 1508 1509 function rainhalloween2() { 1510 event.preventDefault(); 1511 document.querySelector(".confetti-content").style.display = "none"; 1512 var duration = 1513 15 * 1514 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1515 var animationEnd = Date.now() + duration; 1516 var skew = 1; 1517 1518 function randomInRange(a, n) { 1519 return Math.random() * (n - a) + a; 1520 } 1521 1522 function createOneOfEachConfetti() { 1523 var timeRemaining = animationEnd - Date.now(); 1524 var ticks = Math.max(200, (timeRemaining / duration) * 500); 1525 1526 skew = Math.max(0.8, skew - 0.001); 1527 1528 // Define an array of colors to use 1529 var colors = ["#ff8c00", "#006400"]; 1530 1531 // Create one confetti for each color 1532 for (let i = 0; i < colors.length; i++) { 1533 confetti({ 1534 particleCount: 1, 1535 startVelocity: 0, 1536 ticks: ticks, 1537 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1538 colors: [colors[i]], 1539 shapes: ["square"], 1540 gravity: randomInRange(1, 0.6), 1541 scalar: randomInRange(0.4, 1), 1542 drift: randomInRange(-0.4, 0.4), 1543 }); 1544 } 1545 1546 if (timeRemaining > 0) { 1547 requestAnimationFrame(createOneOfEachConfetti); 1548 } 1549 } 1550 1551 createOneOfEachConfetti(); 1552 } 1553 1554 1555 function rainhalloween3() { 1556 event.preventDefault(); 1557 document.querySelector(".confetti-content").style.display = "none"; 1558 var duration = 1559 15 * 1560 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1561 var animationEnd = Date.now() + duration; 1562 var skew = 1; 1563 1564 function randomInRange(a, n) { 1565 return Math.random() * (n - a) + a; 1566 } 1567 1568 function createOneOfEachConfetti() { 1569 var timeRemaining = animationEnd - Date.now(); 1570 var ticks = Math.max(200, (timeRemaining / duration) * 500); 1571 1572 skew = Math.max(0.8, skew - 0.001); 1573 1574 // Define an array of colors to use 1575 var colors = ["#800080", "#006400"]; 1576 1577 // Create one confetti for each color 1578 for (let i = 0; i < colors.length; i++) { 1579 confetti({ 1580 particleCount: 1, 1581 startVelocity: 0, 1582 ticks: ticks, 1583 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1584 colors: [colors[i]], 1585 shapes: ["square"], 1586 gravity: randomInRange(1, 0.6), 1587 scalar: randomInRange(0.4, 1), 1588 drift: randomInRange(-0.4, 0.4), 1589 }); 1590 } 1591 1592 if (timeRemaining > 0) { 1593 requestAnimationFrame(createOneOfEachConfetti); 1594 } 1595 } 1596 1597 createOneOfEachConfetti(); 1598 } 1599 1600 1601 function rainhalloween4() { 1602 event.preventDefault(); 1603 document.querySelector(".confetti-content").style.display = "none"; 1604 var duration = 1605 15 * 1606 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1607 var animationEnd = Date.now() + duration; 1608 var skew = 1; 1609 1610 function randomInRange(a, n) { 1611 return Math.random() * (n - a) + a; 1612 } 1613 1614 function createOneOfEachConfetti() { 1615 var timeRemaining = animationEnd - Date.now(); 1616 var ticks = Math.max(200, (timeRemaining / duration) * 500); 1617 1618 skew = Math.max(0.8, skew - 0.001); 1619 1620 // Define an array of colors to use 1621 var colors = ["#800080", "#006400", "#ff8c00", "#000"]; 1622 1623 // Create one confetti for each color 1624 for (let i = 0; i < colors.length; i++) { 1625 confetti({ 1626 particleCount: 1, 1627 startVelocity: 0, 1628 ticks: ticks, 1629 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1630 colors: [colors[i]], 1631 shapes: ["square"], 1632 gravity: randomInRange(1, 0.6), 1633 scalar: randomInRange(0.4, 1), 1634 drift: randomInRange(-0.4, 0.4), 1635 }); 1636 } 1637 1638 if (timeRemaining > 0) { 1639 requestAnimationFrame(createOneOfEachConfetti); 1640 } 1641 } 1642 1643 createOneOfEachConfetti(); 1644 } 1645 1646
1647 function windhalloween1() { 1648 event.preventDefault(); 1649 document.querySelector(".confetti-content").style.display = "none"; 1650 var duration = 1651 15 * 1652 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1653 var animationEnd = Date.now() + duration; 1654 var skew = 1; 1655 1656 function randomInRange(a, b) { 1657 return Math.random() * (b - a) + a; 1658 } 1659 1660 function createHalfAndHalfConfetti() { 1661 var timeRemaining = animationEnd - Date.now(); 1662 var ticks = Math.max(200, (timeRemaining / duration) * 500); 1663 1664 skew = Math.max(0.8, skew - 0.001); 1665 1666 var totalParticles = Math.min(5, ticks); // Set a limit for the total number of particles 1667 1668 var colors = ["#ff8c00", "#000"]; 1669 var colorCount = colors.length; 1670 var particlesPerColor = Math.floor(totalParticles / colorCount); 1671 1672 for (let i = 0; i < colorCount; i++) { 1673 for (let j = 0; j < particlesPerColor / 2; j++) { 1674 confetti({ 1675 particleCount: 1, 1676 startVelocity: 0, 1677 ticks: ticks, 1678 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1679 colors: [colors[i]], 1680 shapes: ["square"], 1681 gravity: randomInRange(0.1, 0.6), 1682 scalar: randomInRange(0.4, 1), 1683 drift: randomInRange(15, 0), 1684 }); 1685 } 1686 } 1687 1688 if (timeRemaining > 0) { 1689 requestAnimationFrame(createHalfAndHalfConfetti); 1690 } 1691 } 1692 1693 createHalfAndHalfConfetti(); 1694 } 1695 1696 1697 function windhalloween2() { 1698 event.preventDefault(); 1699 document.querySelector(".confetti-content").style.display = "none"; 1700 var duration = 1701 15 * 1702 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1703 var animationEnd = Date.now() + duration; 1704 var skew = 1; 1705 1706 function randomInRange(a, b) { 1707 return Math.random() * (b - a) + a; 1708 } 1709 1710 function createHalfAndHalfConfetti() { 1711 var timeRemaining = animationEnd - Date.now(); 1712 var ticks = Math.max(200, (timeRemaining / duration) * 500); 1713 1714 skew = Math.max(0.8, skew - 0.001); 1715 1716 var totalParticles = Math.min(5, ticks); // Set a limit for the total number of particles 1717 1718 var colors = ["#ff8c00", "#006400"]; 1719 var colorCount = colors.length; 1720 var particlesPerColor = Math.floor(totalParticles / colorCount); 1721 1722 for (let i = 0; i < colorCount; i++) { 1723 for (let j = 0; j < particlesPerColor / 2; j++) { 1724 confetti({ 1725 particleCount: 1, 1726 startVelocity: 0, 1727 ticks: ticks, 1728 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1729 colors: [colors[i]], 1730 shapes: ["square"], 1731 gravity: randomInRange(0.1, 0.6), 1732 scalar: randomInRange(0.4, 1), 1733 drift: randomInRange(15, 0), 1734 }); 1735 } 1736 } 1737 1738 if (timeRemaining > 0) { 1739 requestAnimationFrame(createHalfAndHalfConfetti); 1740 } 1741 } 1742 1743 createHalfAndHalfConfetti(); 1744 } 1745 1746 1747 function windhalloween3() { 1748 event.preventDefault(); 1749 document.querySelector(".confetti-content").style.display = "none"; 1750 var duration = 1751 15 * 1752 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1753 var animationEnd = Date.now() + duration; 1754 var skew = 1; 1755 1756 function randomInRange(a, b) { 1757 return Math.random() * (b - a) + a; 1758 } 1759 1760 function createHalfAndHalfConfetti() { 1761 var timeRemaining = animationEnd - Date.now(); 1762 var ticks = Math.max(200, (timeRemaining / duration) * 500); 1763 1764 skew = Math.max(0.8, skew - 0.001); 1765 1766 var totalParticles = Math.min(5, ticks); // Set a limit for the total number of particles 1767 1768 var colors = ["#800080", "#006400"]; 1769 var colorCount = colors.length; 1770 var particlesPerColor = Math.floor(totalParticles / colorCount); 1771 1772 for (let i = 0; i < colorCount; i++) { 1773 for (let j = 0; j < particlesPerColor / 2; j++) { 1774 confetti({ 1775 particleCount: 1, 1776 startVelocity: 0, 1777 ticks: ticks, 1778 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1779 colors: [colors[i]], 1780 shapes: ["square"], 1781 gravity: randomInRange(0.1, 0.6), 1782 scalar: randomInRange(0.4, 1), 1783 drift: randomInRange(15, 0), 1784 }); 1785 } 1786 } 1787 1788 if (timeRemaining > 0) { 1789 requestAnimationFrame(createHalfAndHalfConfetti); 1790 } 1791 } 1792 1793 createHalfAndHalfConfetti(); 1794 } 1795 1796
1797 1798 function windhalloween4() { 1799 event.preventDefault(); 1800 document.querySelector(".confetti-content").style.display = "none"; 1801 var duration = 1802 15 * 1803 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1804 var animationEnd = Date.now() + duration; 1805 var skew = 1; 1806 1807 function randomInRange(a, b) { 1808 return Math.random() * (b - a) + a; 1809 } 1810 1811 function createHalfAndHalfConfetti() { 1812 var timeRemaining = animationEnd - Date.now(); 1813 var ticks = Math.max(200, (timeRemaining / duration) * 500); 1814 1815 skew = Math.max(0.8, skew - 0.001); 1816 1817 var totalParticles = Math.min(5, ticks); // Set a limit for the total number of particles 1818 1819 var colors = ["#800080", "#006400", "#ff8c00", "#000"]; 1820 var colorCount = colors.length; 1821 var particlesPerColor = Math.floor(totalParticles / colorCount); 1822 1823 for (let i = 0; i < colorCount; i++) { 1824 for (let j = 0; j < particlesPerColor / 2; j++) { 1825 confetti({ 1826 particleCount: 1, 1827 startVelocity: 0, 1828 ticks: ticks, 1829 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1830 colors: [colors[i]], 1831 shapes: ["square"], 1832 gravity: randomInRange(0.1, 0.6), 1833 scalar: randomInRange(0.4, 1), 1834 drift: randomInRange(15, 0), 1835 }); 1836 } 1837 } 1838 1839 if (timeRemaining > 0) { 1840 requestAnimationFrame(createHalfAndHalfConfetti); 1841 } 1842 } 1843 1844 createHalfAndHalfConfetti(); 1845 } 1846 1847 1848 1849 function tornadohalloween1() { 1850 event.preventDefault(); 1851 document.querySelector(".confetti-content").style.display = "none"; 1852 var duration = 1853 15 * 1854 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1855 var animationEnd = Date.now() + duration; 1856 var skew = 1; 1857 1858 function randomInRange(n, a) { 1859 return Math.random() * (a - n) + n; 1860 } 1861 1862 function createHalfAndHalfConfetti() { 1863 var timeRemaining = animationEnd - Date.now(); 1864 var ticks = Math.max(5, (timeRemaining / duration) * 500); 1865 1866 skew = Math.max(0.8, skew - 0.001); 1867 1868 // Define an array of colors to use 1869 var colors = ["#ff8c00", "#000"]; 1870 1871 for (let i = 0; i < colors.length; i++) { 1872 confetti({ 1873 angle: randomInRange(55, 125), 1874 spread: randomInRange(50, 7000), 1875 particleCount: 1, 1876 ticks: ticks, 1877 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1878 colors: [colors[i]], 1879 shapes: ["circle"], 1880 gravity: randomInRange(10, 0.6), 1881 scalar: randomInRange(0.4, 1), 1882 drift: randomInRange(100, 1), 1883 }); 1884 } 1885 1886 if (timeRemaining > 0) { 1887 requestAnimationFrame(createHalfAndHalfConfetti); 1888 } 1889 } 1890 1891 createHalfAndHalfConfetti(); 1892 } 1893 1894 function tornadohalloween2() { 1895 event.preventDefault(); 1896 document.querySelector(".confetti-content").style.display = "none"; 1897 var duration = 1898 15 * 1899 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1900 var animationEnd = Date.now() + duration; 1901 var skew = 1; 1902 1903 function randomInRange(n, a) { 1904 return Math.random() * (a - n) + n; 1905 } 1906 1907 function createHalfAndHalfConfetti() { 1908 var timeRemaining = animationEnd - Date.now(); 1909 var ticks = Math.max(5, (timeRemaining / duration) * 500); 1910 1911 skew = Math.max(0.8, skew - 0.001); 1912 1913 // Define an array of colors to use 1914 var colors = ["#ff8c00", "#006400"]; 1915 1916 for (let i = 0; i < colors.length; i++) { 1917 confetti({ 1918 angle: randomInRange(55, 125), 1919 spread: randomInRange(50, 7000), 1920 particleCount: 1, 1921 ticks: ticks, 1922 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1923 colors: [colors[i]], 1924 shapes: ["circle"], 1925 gravity: randomInRange(10, 0.6), 1926 scalar: randomInRange(0.4, 1), 1927 drift: randomInRange(100, 1), 1928 }); 1929 } 1930 1931 if (timeRemaining > 0) { 1932 requestAnimationFrame(createHalfAndHalfConfetti); 1933 } 1934 } 1935 1936 createHalfAndHalfConfetti(); 1937 } 1938 1939
1940 function tornadohalloween3() { 1941 event.preventDefault(); 1942 document.querySelector(".confetti-content").style.display = "none"; 1943 var duration = 1944 15 * 1945 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1946 var animationEnd = Date.now() + duration; 1947 var skew = 1; 1948 1949 function randomInRange(n, a) { 1950 return Math.random() * (a - n) + n; 1951 } 1952 1953 function createHalfAndHalfConfetti() { 1954 var timeRemaining = animationEnd - Date.now(); 1955 var ticks = Math.max(5, (timeRemaining / duration) * 500); 1956 1957 skew = Math.max(0.8, skew - 0.001); 1958 1959 // Define an array of colors to use 1960 var colors = ["#ff8c00", "#000"]; 1961 1962 for (let i = 0; i < colors.length; i++) { 1963 confetti({ 1964 angle: randomInRange(55, 125), 1965 spread: randomInRange(50, 7000), 1966 particleCount: 1, 1967 ticks: ticks, 1968 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 1969 colors: [colors[i]], 1970 shapes: ["circle"], 1971 gravity: randomInRange(10, 0.6), 1972 scalar: randomInRange(0.4, 1), 1973 drift: randomInRange(100, 1), 1974 }); 1975 } 1976 1977 if (timeRemaining > 0) { 1978 requestAnimationFrame(createHalfAndHalfConfetti); 1979 } 1980 } 1981 1982 createHalfAndHalfConfetti(); 1983 } 1984 1985 1986 function tornadohalloween4() { 1987 event.preventDefault(); 1988 document.querySelector(".confetti-content").style.display = "none"; 1989 var duration = 1990 15 * 1991 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 1992 var animationEnd = Date.now() + duration; 1993 var skew = 1; 1994 1995 function randomInRange(n, a) { 1996 return Math.random() * (a - n) + n; 1997 } 1998 1999 function createHalfAndHalfConfetti() { 2000 var timeRemaining = animationEnd - Date.now(); 2001 var ticks = Math.max(5, (timeRemaining / duration) * 500); 2002 2003 skew = Math.max(0.8, skew - 0.001); 2004 2005 // Define an array of colors to use 2006 var colors = ["#800080", "#006400", "#ff8c00", "#000"]; 2007 2008 for (let i = 0; i < colors.length; i++) { 2009 confetti({ 2010 angle: randomInRange(55, 125), 2011 spread: randomInRange(50, 7000), 2012 particleCount: 1, 2013 ticks: ticks, 2014 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 2015 colors: [colors[i]], 2016 shapes: ["circle"], 2017 gravity: randomInRange(10, 0.6), 2018 scalar: randomInRange(0.4, 1), 2019 drift: randomInRange(100, 1), 2020 }); 2021 } 2022 2023 if (timeRemaining > 0) { 2024 requestAnimationFrame(createHalfAndHalfConfetti); 2025 } 2026 } 2027 2028 createHalfAndHalfConfetti(); 2029 } 2030 2031 2032 2033 function fireworkshalloween1() { 2034 event.preventDefault(); 2035 document.querySelector(".confetti-content").style.display = "none"; 2036 var duration = 1.5e101, 2037 animationEnd = Date.now() + 1.5e101, 2038 defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 10 }; 2039 function randomInRange(a, b) { 2040 return Math.random() * (b - a) + a; 2041 } 2042 var interval = setInterval(function () { 2043 var a = animationEnd - Date.now(); 2044 if (0 >= a) return clearInterval(interval); 2045 var b = 50 * (a / duration); 2046 confetti( 2047 Object.assign({}, defaults, { 2048 colors: ["#ff8c00"], 2049 particleCount: b, 2050 origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 }, 2051 }) 2052 ), 2053 confetti( 2054 Object.assign({}, defaults, { 2055 colors: ["#000"], 2056 particleCount: b, 2057 origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 }, 2058 }) 2059 ); 2060 }, 250); 2061 } 2062 2063 function fireworkshalloween2() { 2064 event.preventDefault(); 2065 document.querySelector(".confetti-content").style.display = "none"; 2066 var duration = 1.5e101, 2067 animationEnd = Date.now() + 1.5e101, 2068 defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 10 }; 2069 function randomInRange(a, b) { 2070 return Math.random() * (b - a) + a; 2071 } 2072 var interval = setInterval(function () { 2073 var a = animationEnd - Date.now(); 2074 if (0 >= a) return clearInterval(interval); 2075 var b = 50 * (a / duration); 2076 confetti( 2077 Object.assign({}, defaults, { 2078 colors: ["#ff8c00"], 2079 particleCount: b, 2080 origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 }, 2081 }) 2082 ), 2083 confetti( 2084 Object.assign({}, defaults, { 2085 colors: ["#006400"], 2086 particleCount: b, 2087 origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 }, 2088 }) 2089 ); 2090 }, 250); 2091 } 2092 2093 function fireworkshalloween3() { 2094 event.preventDefault(); 2095 document.querySelector(".confetti-content").style.display = "none"; 2096 var duration = 1.5e101, 2097 animationEnd = Date.now() + 1.5e101, 2098 defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 10 }; 2099 function randomInRange(a, b) { 2100 return Math.random() * (b - a) + a; 2101 } 2102 var interval = setInterval(function () { 2103 var a = animationEnd - Date.now(); 2104 if (0 >= a) return clearInterval(interval); 2105 var b = 50 * (a / duration); 2106 confetti( 2107 Object.assign({}, defaults, { 2108 colors: ["#800080"], 2109 particleCount: b, 2110 origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 }, 2111 }) 2112 ), 2113 confetti( 2114 Object.assign({}, defaults, { 2115 colors: ["#006400"], 2116 particleCount: b, 2117 origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 }, 2118 }) 2119 ); 2120 }, 250); 2121 } 2122 2123 function fireworkshalloween4() { 2124 event.preventDefault(); 2125 document.querySelector(".confetti-content").style.display = "none"; 2126 var duration = 1.5e101, 2127 animationEnd = Date.now() + 1.5e101, 2128 defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 10 }; 2129 function randomInRange(a, b) { 2130 return Math.random() * (b - a) + a; 2131 } 2132 var interval = setInterval(function () { 2133 var a = animationEnd - Date.now(); 2134 if (0 >= a) return clearInterval(interval); 2135 var b = 50 * (a / duration); 2136 confetti( 2137 Object.assign({}, defaults, { 2138 colors: ["#800080"], 2139 particleCount: b, 2140 origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 }, 2141 }) 2142 ), 2143 confetti( 2144 Object.assign({}, defaults, { 2145 colors: ["#006400"], 2146 particleCount: b, 2147 origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 }, 2148 }) 2149 ); 2150 confetti( 2151 Object.assign({}, defaults, { 2152 colors: ["#ff8c00"], 2153 particleCount: b, 2154 origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 }, 2155 }) 2156 ); 2157 confetti( 2158 Object.assign({}, defaults, { 2159 colors: ["#000"], 2160 particleCount: b, 2161 origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 }, 2162 }) 2163 ); 2164 }, 250); 2165 } 2166 2167 function starsblack() { 2168 event.preventDefault(); 2169 document.querySelector(".confetti-content").style.display = "none"; 2170 var duration = 2171 15 * 2172 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2173 animationEnd = Date.now() + duration, 2174 skew = 1; 2175 function randomInRange(n, a) { 2176 return Math.random() * (a - n) + n; 2177 } 2178 !(function n() { 2179 var a = animationEnd - Date.now(), 2180 t = Math.max(200, (a / duration) * 500); 2181 confetti({ 2182 particleCount: 1, 2183 startVelocity: 0, 2184 ticks: t, 2185 origin: { x: Math.random(), y: Math.random() * skew }, 2186 colors: ["#000"], 2187 shapes: ["circle"], 2188 gravity: randomInRange(0, 0), 2189 scalar: randomInRange(0.4, 1), 2190 drift: randomInRange(0, 0), 2191 }), 2192 0 < a && requestAnimationFrame(n); 2193 })(); 2194 } 2195 2196 function starswhite() { 2197 event.preventDefault(); 2198 document.querySelector(".confetti-content").style.display = "none"; 2199 var duration = 2200 15 * 2201 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2202 animationEnd = Date.now() + duration, 2203 skew = 1; 2204 function randomInRange(n, a) { 2205 return Math.random() * (a - n) + n; 2206 } 2207 !(function n() { 2208 var a = animationEnd - Date.now(), 2209 t = Math.max(200, (a / duration) * 500); 2210 confetti({ 2211 particleCount: 1, 2212 startVelocity: 0, 2213 ticks: t, 2214 origin: { x: Math.random(), y: Math.random() * skew }, 2215 colors: ["#ffffff"], 2216 shapes: ["circle"], 2217 gravity: randomInRange(0, 0), 2218 scalar: randomInRange(0.4, 1), 2219 drift: randomInRange(0, 0), 2220 }), 2221 0 < a && requestAnimationFrame(n); 2222 })(); 2223 } 2224 2225 function starsred() { 2226 event.preventDefault(); 2227 document.querySelector(".confetti-content").style.display = "none"; 2228 var duration = 2229 15 * 2230 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2231 animationEnd = Date.now() + duration, 2232 skew = 1; 2233 function randomInRange(n, a) { 2234 return Math.random() * (a - n) + n; 2235 } 2236 !(function n() { 2237 var a = animationEnd - Date.now(), 2238 t = Math.max(200, (a / duration) * 500); 2239 confetti({ 2240 particleCount: 1, 2241 startVelocity: 0, 2242 ticks: t, 2243 origin: { x: Math.random(), y: Math.random() * skew }, 2244 colors: ["#ff0000"], 2245 shapes: ["circle"], 2246 gravity: randomInRange(0, 0), 2247 scalar: randomInRange(0.4, 1), 2248 drift: randomInRange(0, 0), 2249 }), 2250 0 < a && requestAnimationFrame(n); 2251 })(); 2252 } 2253 2254 function starsorange() { 2255 event.preventDefault(); 2256 document.querySelector(".confetti-content").style.display = "none"; 2257 var duration = 2258 15 * 2259 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2260 animationEnd = Date.now() + duration, 2261 skew = 1; 2262 function randomInRange(n, a) { 2263 return Math.random() * (a - n) + n; 2264 } 2265 !(function n() { 2266 var a = animationEnd - Date.now(), 2267 t = Math.max(200, (a / duration) * 500); 2268 confetti({ 2269 particleCount: 1, 2270 startVelocity: 0, 2271 ticks: t, 2272 origin: { x: Math.random(), y: Math.random() * skew }, 2273 colors: ["#ff8c00"], 2274 shapes: ["circle"], 2275 gravity: randomInRange(0, 0), 2276 scalar: randomInRange(0.4, 1), 2277 drift: randomInRange(0, 0), 2278 }), 2279 0 < a && requestAnimationFrame(n); 2280 })(); 2281 } 2282 2283 function starsyellow() { 2284 event.preventDefault(); 2285 document.querySelector(".confetti-content").style.display = "none"; 2286 var duration = 2287 15 * 2288 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2289 animationEnd = Date.now() + duration, 2290 skew = 1; 2291 function randomInRange(n, a) { 2292 return Math.random() * (a - n) + n; 2293 } 2294 !(function n() { 2295 var a = animationEnd - Date.now(), 2296 t = Math.max(200, (a / duration) * 500); 2297 confetti({ 2298 particleCount: 1, 2299 startVelocity: 0, 2300 ticks: t, 2301 origin: { x: Math.random(), y: Math.random() * skew }, 2302 colors: ["#E1AD01"], 2303 shapes: ["circle"], 2304 gravity: randomInRange(0, 0), 2305 scalar: randomInRange(0.4, 1), 2306 drift: randomInRange(0, 0), 2307 }), 2308 0 < a && requestAnimationFrame(n); 2309 })(); 2310 } 2311 2312 function starsgreen() { 2313 event.preventDefault(); 2314 document.querySelector(".confetti-content").style.display = "none"; 2315 var duration = 2316 15 * 2317 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2318 animationEnd = Date.now() + duration, 2319 skew = 1; 2320 function randomInRange(n, a) { 2321 return Math.random() * (a - n) + n; 2322 } 2323 !(function n() { 2324 var a = animationEnd - Date.now(), 2325 t = Math.max(200, (a / duration) * 500); 2326 confetti({ 2327 particleCount: 1, 2328 startVelocity: 0, 2329 ticks: t, 2330 origin: { x: Math.random(), y: Math.random() * skew }, 2331 colors: ["#006400"], 2332 shapes: ["circle"], 2333 gravity: randomInRange(0, 0), 2334 scalar: randomInRange(0.4, 1), 2335 drift: randomInRange(0, 0), 2336 }), 2337 0 < a && requestAnimationFrame(n); 2338 })(); 2339 } 2340 2341 function starsblue() { 2342 event.preventDefault(); 2343 document.querySelector(".confetti-content").style.display = "none"; 2344 var duration = 2345 15 * 2346 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2347 animationEnd = Date.now() + duration, 2348 skew = 1; 2349 function randomInRange(n, a) { 2350 return Math.random() * (a - n) + n; 2351 } 2352 !(function n() { 2353 var a = animationEnd - Date.now(), 2354 t = Math.max(200, (a / duration) * 500); 2355 confetti({ 2356 particleCount: 1, 2357 startVelocity: 0, 2358 ticks: t, 2359 origin: { x: Math.random(), y: Math.random() * skew }, 2360 colors: ["#00008b"], 2361 shapes: ["circle"], 2362 gravity: randomInRange(0, 0), 2363 scalar: randomInRange(0.4, 1), 2364 drift: randomInRange(0, 0), 2365 }), 2366 0 < a && requestAnimationFrame(n); 2367 })(); 2368 } 2369 2370 function starspurple() { 2371 event.preventDefault(); 2372 document.querySelector(".confetti-content").style.display = "none"; 2373 var duration = 2374 15 * 2375 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2376 animationEnd = Date.now() + duration, 2377 skew = 1; 2378 function randomInRange(n, a) { 2379 return Math.random() * (a - n) + n; 2380 } 2381 !(function n() { 2382 var a = animationEnd - Date.now(), 2383 t = Math.max(200, (a / duration) * 500); 2384 confetti({ 2385 particleCount: 1, 2386 startVelocity: 0, 2387 ticks: t, 2388 origin: { x: Math.random(), y: Math.random() * skew }, 2389 colors: ["#800080"], 2390 shapes: ["circle"], 2391 gravity: randomInRange(0, 0), 2392 scalar: randomInRange(0.4, 1), 2393 drift: randomInRange(0, 0), 2394 }), 2395 0 < a && requestAnimationFrame(n); 2396 })(); 2397 } 2398 2399 function starspink() { 2400 event.preventDefault(); 2401 document.querySelector(".confetti-content").style.display = "none"; 2402 var duration = 2403 15 * 2404 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2405 animationEnd = Date.now() + duration, 2406 skew = 1; 2407 function randomInRange(n, a) { 2408 return Math.random() * (a - n) + n; 2409 } 2410 !(function n() { 2411 var a = animationEnd - Date.now(), 2412 t = Math.max(200, (a / duration) * 500); 2413 confetti({ 2414 particleCount: 1, 2415 startVelocity: 0, 2416 ticks: t, 2417 origin: { x: Math.random(), y: Math.random() * skew }, 2418 colors: ["#e75480"], 2419 shapes: ["circle"], 2420 gravity: randomInRange(0, 0), 2421 scalar: randomInRange(0.4, 1), 2422 drift: randomInRange(0, 0), 2423 }), 2424 0 < a && requestAnimationFrame(n); 2425 })(); 2426 } 2427 2428 function riseblack() { 2429 event.preventDefault(); 2430 document.querySelector(".confetti-content").style.display = "none"; 2431 var duration = 2432 15 * 2433 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2434 animationEnd = Date.now() + duration, 2435 skew = 1; 2436 function randomInRange(a, n) { 2437 return Math.random() * (n - a) + a; 2438 } 2439 !(function a() { 2440 var n = animationEnd - Date.now(), 2441 t = Math.max(200, (n / duration) * 500); 2442 (skew = Math.max(0.8, skew - 0.001)), 2443 confetti({ 2444 particleCount: 1, 2445 startVelocity: 0, 2446 ticks: t, 2447 origin: { x: Math.random(), y: 1 }, 2448 colors: ["#000"], 2449 shapes: ["square"], 2450 gravity: randomInRange(0.4, -2), 2451 scalar: randomInRange(0.4, 1), 2452 drift: randomInRange(0, 0), 2453 }), 2454 0 < n && requestAnimationFrame(a); 2455 })(); 2456 } 2457 2458 function risewhite() { 2459 event.preventDefault(); 2460 document.querySelector(".confetti-content").style.display =
2460"none"; 2461 var duration = 2462 15 * 2463 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2464 animationEnd = Date.now() + duration, 2465 skew = 1; 2466 function randomInRange(a, n) { 2467 return Math.random() * (n - a) + a; 2468 } 2469 !(function a() { 2470 var n = animationEnd - Date.now(), 2471 t = Math.max(200, (n / duration) * 500); 2472 (skew = Math.max(0.8, skew - 0.001)), 2473 confetti({ 2474 particleCount: 1, 2475 startVelocity: 0, 2476 ticks: t, 2477 origin: { x: Math.random(), y: 1 }, 2478 colors: ["#ffffff"], 2479 shapes: ["square"], 2480 gravity: randomInRange(0.4, -2), 2481 scalar: randomInRange(0.4, 1), 2482 drift: randomInRange(0, 0), 2483 }), 2484 0 < n && requestAnimationFrame(a); 2485 })(); 2486 } 2487 2488 function risered() { 2489 event.preventDefault(); 2490 document.querySelector(".confetti-content").style.display = "none"; 2491 var duration = 2492 15 * 2493 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2494 animationEnd = Date.now() + duration, 2495 skew = 1; 2496 function randomInRange(a, n) { 2497 return Math.random() * (n - a) + a; 2498 } 2499 !(function a() { 2500 var n = animationEnd - Date.now(), 2501 t = Math.max(200, (n / duration) * 500); 2502 (skew = Math.max(0.8, skew - 0.001)), 2503 confetti({ 2504 particleCount: 1, 2505 startVelocity: 0, 2506 ticks: t, 2507 origin: { x: Math.random(), y: 1 }, 2508 colors: ["#ff0000"], 2509 shapes: ["square"], 2510 gravity: randomInRange(0.4, -2), 2511 scalar: randomInRange(0.4, 1), 2512 drift: randomInRange(0, 0), 2513 }), 2514 0 < n && requestAnimationFrame(a); 2515 })(); 2516 } 2517 2518 function riseorange() { 2519 event.preventDefault(); 2520 document.querySelector(".confetti-content").style.display = "none"; 2521 var duration = 2522 15 * 2523 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2524 animationEnd = Date.now() + duration, 2525 skew = 1; 2526 function randomInRange(a, n) { 2527 return Math.random() * (n - a) + a; 2528 } 2529 !(function a() { 2530 var n = animationEnd - Date.now(), 2531 t = Math.max(200, (n / duration) * 500); 2532 (skew = Math.max(0.8, skew - 0.001)), 2533 confetti({ 2534 particleCount: 1, 2535 startVelocity: 0, 2536 ticks: t, 2537 origin: { x: Math.random(), y: 1 }, 2538 colors: ["#ff8c00"], 2539 shapes: ["square"], 2540 gravity: randomInRange(0.4, -2), 2541 scalar: randomInRange(0.4, 1), 2542 drift: randomInRange(0, 0), 2543 }), 2544 0 < n && requestAnimationFrame(a); 2545 })(); 2546 } 2547 2548 function riseyellow() { 2549 event.preventDefault(); 2550 document.querySelector(".confetti-content").style.display = "none"; 2551 var duration = 2552 15 * 2553 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2554 animationEnd = Date.now() + duration, 2555 skew = 1; 2556 function randomInRange(a, n) { 2557 return Math.random() * (n - a) + a; 2558 } 2559 !(function a() { 2560 var n = animationEnd - Date.now(), 2561 t = Math.max(200, (n / duration) * 500); 2562 (skew = Math.max(0.8, skew - 0.001)), 2563 confetti({ 2564 particleCount: 1, 2565 startVelocity: 0, 2566 ticks: t, 2567 origin: { x: Math.random(), y: 1 }, 2568 colors: ["#E1AD01"], 2569 shapes: ["square"], 2570 gravity: randomInRange(0.4, -2), 2571 scalar: randomInRange(0.4, 1), 2572 drift: randomInRange(0, 0), 2573 }), 2574 0 < n && requestAnimationFrame(a); 2575 })(); 2576 } 2577 2578 function risegreen() { 2579 event.preventDefault(); 2580 document.querySelector(".confetti-content").style.display = "none"; 2581 var duration = 2582 15 * 2583 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2584 animationEnd = Date.now() + duration, 2585 skew = 1; 2586 function randomInRange(a, n) { 2587 return Math.random() * (n - a) + a; 2588 } 2589 !(function a() { 2590 var n = animationEnd - Date.now(), 2591 t = Math.max(200, (n / duration) * 500); 2592 (skew = Math.max(0.8, skew - 0.001)), 2593 confetti({ 2594 particleCount: 1, 2595 startVelocity: 0, 2596 ticks: t, 2597 origin: { x: Math.random(), y: 1 }, 2598 colors: ["#006400"], 2599 shapes: ["square"], 2600 gravity: randomInRange(0.4, -2), 2601 scalar: randomInRange(0.4, 1), 2602 drift: randomInRange(0, 0), 2603 }), 2604 0 < n && requestAnimationFrame(a); 2605 })(); 2606 } 2607 2608 function riseblue() { 2609 event.preventDefault(); 2610 document.querySelector(".confetti-content").style.display = "none"; 2611 var duration = 2612 15 * 2613 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2614 animationEnd = Date.now() + duration, 2615 skew = 1; 2616 function randomInRange(a, n) { 2617 return Math.random() * (n - a) + a; 2618 } 2619 !(function a() { 2620 var n = animationEnd - Date.now(), 2621 t = Math.max(200, (n / duration) * 500); 2622 (skew = Math.max(0.8, skew - 0.001)), 2623 confetti({ 2624 particleCount: 1, 2625 startVelocity: 0, 2626 ticks: t, 2627 origin: { x: Math.random(), y: 1 }, 2628 colors: ["#00008b"], 2629 shapes: ["square"], 2630 gravity: randomInRange(0.4, -2), 2631 scalar: randomInRange(0.4, 1), 2632 drift: randomInRange(0, 0), 2633 }), 2634 0 < n && requestAnimationFrame(a); 2635 })(); 2636 } 2637 2638 function risepurple() { 2639 event.preventDefault(); 2640 document.querySelector(".confetti-content").style.display = "none"; 2641 var duration = 2642 15 * 2643 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2644 animationEnd = Date.now() + duration, 2645 skew = 1; 2646 function randomInRange(a, n) { 2647 return Math.random() * (n - a) + a; 2648 } 2649 !(function a() { 2650 var n = animationEnd - Date.now(), 2651 t = Math.max(200, (n / duration) * 500); 2652 (skew = Math.max(0.8, skew - 0.001)), 2653 confetti({ 2654 particleCount: 1, 2655 startVelocity: 0, 2656 ticks: t, 2657 origin: { x: Math.random(), y: 1 }, 2658 colors: ["#800080"], 2659 shapes: ["square"], 2660 gravity: randomInRange(0.4, -2), 2661 scalar: randomInRange(0.4, 1), 2662 drift: randomInRange(0, 0), 2663 }), 2664 0 < n && requestAnimationFrame(a); 2665 })(); 2666 } 2667 2668 function risepink() { 2669 event.preventDefault(); 2670 document.querySelector(".confetti-content").style.display = "none"; 2671 var duration = 2672 15 * 2673 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2674 animationEnd = Date.now() + duration, 2675 skew = 1; 2676 function randomInRange(a, n) { 2677 return Math.random() * (n - a) + a; 2678 } 2679 !(function a() { 2680 var n = animationEnd - Date.now(), 2681 t = Math.max(200, (n / duration) * 500); 2682 (skew = Math.max(0.8, skew - 0.001)), 2683 confetti({ 2684 particleCount: 1, 2685 startVelocity: 0, 2686 ticks: t, 2687 origin: { x: Math.random(), y: 1 }, 2688 colors: ["#e75480"], 2689 shapes: ["square"], 2690 gravity: randomInRange(0.4, -2), 2691 scalar: randomInRange(0.4, 1), 2692 drift: randomInRange(0, 0), 2693 }), 2694 0 < n && requestAnimationFrame(a); 2695 })(); 2696 } 2697 2698 function prideblack() { 2699 event.preventDefault(); 2700 document.querySelector(".confetti-content").style.display = "none"; 2701 var end = 2702 Date.now() + 2703 15 * 2704 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2705 colors = ["#000"]; 2706 !(function o() { 2707 confetti({ 2708 particleCount: 2, 2709 angle: 60, 2710 spread: 55, 2711 origin: { x: 0 }, 2712 colors: colors, 2713 }), 2714 confetti({ 2715 particleCount: 2, 2716 angle: 120, 2717 spread: 55, 2718 origin: { x: 1 }, 2719 colors: colors, 2720 }), 2721 Date.now() < end && requestAnimationFrame(o); 2722 })(); 2723 } 2724 2725 function pridewhite() { 2726 event.preventDefault(); 2727 document.querySelector(".confetti-content").style.display = "none"; 2728 var end = 2729 Date.now() + 2730 15 * 2731 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2732 colors = ["#ffffff"]; 2733 !(function o() { 2734 confetti({ 2735 particleCount: 2, 2736 angle: 60, 2737 spread: 55, 2738 origin: { x: 0 }, 2739 colors: colors, 2740 }), 2741 confetti({ 2742 particleCount: 2, 2743 angle: 120, 2744 spread: 55, 2745 origin: { x: 1 }, 2746 colors: colors, 2747 }), 2748 Date.now() < end && requestAnimationFrame(o); 2749 })(); 2750 } 2751 2752 function pridered() { 2753 event.preventDefault(); 2754 document.querySelector(".confetti-content").style.display = "none"; 2755 var end = 2756 Date.now() + 2757 15 * 2758 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2759 colors = ["#ff0000"]; 2760 !(function o() { 2761 confetti({ 2762 particleCount: 2, 2763 angle: 60, 2764 spread: 55, 2765 origin: { x: 0 }, 2766 colors: colors, 2767 }), 2768 confetti({ 2769 particleCount: 2, 2770 angle: 120, 2771 spread: 55, 2772 origin: { x: 1 }, 2773 colors: colors, 2774 }), 2775 Date.now() < end && requestAnimationFrame(o); 2776 })(); 2777 } 2778 2779 function prideorange() { 2780 event.preventDefault(); 2781 document.querySelector(".confetti-content").style.display = "none"; 2782 var end = 2783 Date.now() + 2784 15 * 2785 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2786 colors = ["#ff8c00"]; 2787 !(function o() { 2788 confetti({ 2789 particleCount: 2, 2790 angle: 60, 2791 spread: 55, 2792 origin: { x: 0 }, 2793 colors: colors, 2794 }), 2795 confetti({ 2796 particleCount: 2, 2797 angle: 120, 2798 spread: 55, 2799 origin: { x: 1 }, 2800 colors: colors, 2801 }), 2802 Date.now() < end && requestAnimationFrame(o); 2803 })(); 2804 } 2805 2806 function prideyellow() { 2807 event.preventDefault(); 2808 document.querySelector(".confetti-content").style.display = "none"; 2809 var end = 2810 Date.now() + 2811 15 * 2812 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2813 colors = ["#E1AD01"]; 2814 !(function o() { 2815 confetti({ 2816 particleCount: 2, 2817 angle: 60, 2818 spread: 55, 2819 origin: { x: 0 }, 2820 colors: colors, 2821 }), 2822 confetti({ 2823 particleCount: 2, 2824 angle: 120, 2825 spread: 55, 2826 origin: { x: 1 }, 2827 colors: colors, 2828 }), 2829 Date.now() < end && requestAnimationFrame(o); 2830 })(); 2831 } 2832 2833 function pridegreen() { 2834 event.preventDefault(); 2835 document.querySelector(".confetti-content").style.display = "none"; 2836 var end = 2837 Date.now() + 2838 15 * 2839 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2840 colors = ["#006400"]; 2841 !(function o() { 2842 confetti({ 2843 particleCount: 2, 2844 angle: 60, 2845 spread: 55, 2846 origin: { x: 0 }, 2847 colors: colors, 2848 }), 2849 confetti({ 2850 particleCount: 2, 2851 angle: 120, 2852 spread: 55, 2853 origin: { x: 1 }, 2854 colors: colors, 2855 }), 2856 Date.now() < end && requestAnimationFrame(o); 2857 })(); 2858 } 2859 2860 function prideblue() { 2861 event.preventDefault(); 2862 document.querySelector(".confetti-content").style.display = "none"; 2863 var end = 2864 Date.now() + 2865 15 * 2866 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2867 colors = ["#00008b"]; 2868 !(function o() { 2869 confetti({ 2870 particleCount: 2, 2871 angle: 60, 2872 spread: 55, 2873 origin: { x: 0 }, 2874 colors: colors, 2875 }), 2876 confetti({ 2877 particleCount: 2, 2878 angle: 120, 2879 spread: 55, 2880 origin: { x: 1 }, 2881 colors: colors, 2882 }), 2883 Date.now() < end && requestAnimationFrame(o); 2884 })(); 2885 } 2886 2887 function pridepurple() { 2888 event.preventDefault(); 2889 document.querySelector(".confetti-content").style.display = "none"; 2890 var end = 2891 Date.now() + 2892 15 * 2893 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2894 colors = ["#800080"]; 2895 !(function o() { 2896 confetti({ 2897 particleCount: 2, 2898 angle: 60, 2899 spread: 55, 2900 origin: { x: 0 }, 2901 colors: colors, 2902 }), 2903 confetti({ 2904 particleCount: 2, 2905 angle: 120, 2906 spread: 55, 2907 origin: { x: 1 }, 2908 colors: colors, 2909 }), 2910 Date.now() < end && requestAnimationFrame(o); 2911 })(); 2912 } 2913 2914 function pridepink() { 2915 event.preventDefault(); 2916 document.querySelector(".confetti-content").style.display = "none"; 2917 var end = 2918 Date.now() + 2919 15 * 2920 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2921 colors = ["#e75480"]; 2922 !(function o() { 2923 confetti({ 2924 particleCount: 2, 2925 angle: 60, 2926 spread: 55, 2927 origin: { x: 0 }, 2928 colors: colors, 2929 }), 2930 confetti({ 2931 particleCount: 2, 2932 angle: 120, 2933 spread: 55, 2934 origin: { x: 1 }, 2935 colors: colors, 2936 }), 2937 Date.now() < end && requestAnimationFrame(o); 2938 })(); 2939 } 2940 2941 function wavesblack() { 2942 event.preventDefault(); 2943 document.querySelector(".confetti-content").style.display = "none"; 2944 var duration = 2945 15 * 2946 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2947 animationEnd = Date.now() + duration, 2948 skew = 1; 2949 function randomInRange(a, n) { 2950 return Math.random() * (n - a) + a; 2951 } 2952 !(function a() { 2953 var n = animationEnd - Date.now(), 2954 t = Math.max(200, (n / duration) * 500); 2955 (skew = Math.max(0.8, skew - 0.001)), 2956 confetti({ 2957 particleCount: 1, 2958 startVelocity: 0, 2959 ticks: t, 2960 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 2961 colors: ["#000"], 2962 shapes: ["circle"], 2963 gravity: randomInRange(-1, 0.6), 2964 scalar: randomInRange(0.4, 1), 2965 drift: randomInRange(7, 1), 2966 }), 2967 0 < n && requestAnimationFrame(a); 2968 })(); 2969 } 2970 function waveswhite() { 2971 event.preventDefault(); 2972 document.querySelector(".confetti-content").style.display = "none"; 2973 var duration = 2974 15 * 2975 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 2976 animationEnd = Date.now() + duration, 2977 skew = 1; 2978 function randomInRange(a, n) { 2979 return Math.random() * (n - a) + a; 2980 } 2981 !(function a() { 2982 var n = animationEnd - Date.now(), 2983 t = Math.max(200, (n / duration) * 500); 2984 (skew = Math.max(0.8, skew - 0.001)), 2985 confetti({ 2986 particleCount: 1, 2987 startVelocity: 0, 2988 ticks: t, 2989 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 2990 colors: ["#ffffff"], 2991 shapes: ["circle"], 2992 gravity: randomInRange(-1, 0.6), 2993 scalar: randomInRange(0.4, 1), 2994 drift: randomInRange(7, 1), 2995 }), 2996 0 < n && requestAnimationFrame(a); 2997 })(); 2998 } 2999 3000 function wavesred() { 3001 event.preventDefault(); 3002 document.querySelector(".confetti-content").style.display = "none"; 3003 var duration = 3004 15 * 3005 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3006 animationEnd = Date.now() + duration, 3007 skew = 1; 3008 function randomInRange(a, n) { 3009 return Math.random() * (n - a) + a; 3010 } 3011 !(function a() { 3012 var n = animationEnd - Date.now(), 3013 t = Ma
3013th.max(200, (n / duration) * 500); 3014 (skew = Math.max(0.8, skew - 0.001)), 3015 confetti({ 3016 particleCount: 1, 3017 startVelocity: 0, 3018 ticks: t, 3019 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3020 colors: ["#ff0000"], 3021 shapes: ["circle"], 3022 gravity: randomInRange(-1, 0.6), 3023 scalar: randomInRange(0.4, 1), 3024 drift: randomInRange(7, 1), 3025 }), 3026 0 < n && requestAnimationFrame(a); 3027 })(); 3028 } 3029 3030 function wavesorange() { 3031 event.preventDefault(); 3032 document.querySelector(".confetti-content").style.display = "none"; 3033 var duration = 3034 15 * 3035 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3036 animationEnd = Date.now() + duration, 3037 skew = 1; 3038 function randomInRange(a, n) { 3039 return Math.random() * (n - a) + a; 3040 } 3041 !(function a() { 3042 var n = animationEnd - Date.now(), 3043 t = Math.max(200, (n / duration) * 500); 3044 (skew = Math.max(0.8, skew - 0.001)), 3045 confetti({ 3046 particleCount: 1, 3047 startVelocity: 0, 3048 ticks: t, 3049 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3050 colors: ["#ff8c00"], 3051 shapes: ["circle"], 3052 gravity: randomInRange(-1, 0.6), 3053 scalar: randomInRange(0.4, 1), 3054 drift: randomInRange(7, 1), 3055 }), 3056 0 < n && requestAnimationFrame(a); 3057 })(); 3058 } 3059 3060 function wavesyellow() { 3061 event.preventDefault(); 3062 document.querySelector(".confetti-content").style.display = "none"; 3063 var duration = 3064 15 * 3065 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3066 animationEnd = Date.now() + duration, 3067 skew = 1; 3068 function randomInRange(a, n) { 3069 return Math.random() * (n - a) + a; 3070 } 3071 !(function a() { 3072 var n = animationEnd - Date.now(), 3073 t = Math.max(200, (n / duration) * 500); 3074 (skew = Math.max(0.8, skew - 0.001)), 3075 confetti({ 3076 particleCount: 1, 3077 startVelocity: 0, 3078 ticks: t, 3079 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3080 colors: ["#E1AD01"], 3081 shapes: ["circle"], 3082 gravity: randomInRange(-1, 0.6), 3083 scalar: randomInRange(0.4, 1), 3084 drift: randomInRange(7, 1), 3085 }), 3086 0 < n && requestAnimationFrame(a); 3087 })(); 3088 } 3089 3090 function wavesgreen() { 3091 event.preventDefault(); 3092 document.querySelector(".confetti-content").style.display = "none"; 3093 var duration = 3094 15 * 3095 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3096 animationEnd = Date.now() + duration, 3097 skew = 1; 3098 function randomInRange(a, n) { 3099 return Math.random() * (n - a) + a; 3100 } 3101 !(function a() { 3102 var n = animationEnd - Date.now(), 3103 t = Math.max(200, (n / duration) * 500); 3104 (skew = Math.max(0.8, skew - 0.001)), 3105 confetti({ 3106 particleCount: 1, 3107 startVelocity: 0, 3108 ticks: t, 3109 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3110 colors: ["#006400"], 3111 shapes: ["circle"], 3112 gravity: randomInRange(-1, 0.6), 3113 scalar: randomInRange(0.4, 1), 3114 drift: randomInRange(7, 1), 3115 }), 3116 0 < n && requestAnimationFrame(a); 3117 })(); 3118 } 3119 3120 function wavesblue() { 3121 event.preventDefault(); 3122 document.querySelector(".confetti-content").style.display = "none"; 3123 var duration = 3124 15 * 3125 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3126 animationEnd = Date.now() + duration, 3127 skew = 1; 3128 function randomInRange(a, n) { 3129 return Math.random() * (n - a) + a; 3130 } 3131 !(function a() { 3132 var n = animationEnd - Date.now(), 3133 t = Math.max(200, (n / duration) * 500); 3134 (skew = Math.max(0.8, skew - 0.001)), 3135 confetti({ 3136 particleCount: 1, 3137 startVelocity: 0, 3138 ticks: t, 3139 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3140 colors: ["#00008b"], 3141 shapes: ["circle"], 3142 gravity: randomInRange(-1, 0.6), 3143 scalar: randomInRange(0.4, 1), 3144 drift: randomInRange(7, 1), 3145 }), 3146 0 < n && requestAnimationFrame(a); 3147 })(); 3148 } 3149 3150 function wavespurple() { 3151 event.preventDefault(); 3152 document.querySelector(".confetti-content").style.display = "none"; 3153 var duration = 3154 15 * 3155 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3156 animationEnd = Date.now() + duration, 3157 skew = 1; 3158 function randomInRange(a, n) { 3159 return Math.random() * (n - a) + a; 3160 } 3161 !(function a() { 3162 var n = animationEnd - Date.now(), 3163 t = Math.max(200, (n / duration) * 500); 3164 (skew = Math.max(0.8, skew - 0.001)), 3165 confetti({ 3166 particleCount: 1, 3167 startVelocity: 0, 3168 ticks: t, 3169 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3170 colors: ["#800080"], 3171 shapes: ["circle"], 3172 gravity: randomInRange(-1, 0.6), 3173 scalar: randomInRange(0.4, 1), 3174 drift: randomInRange(7, 1), 3175 }), 3176 0 < n && requestAnimationFrame(a); 3177 })(); 3178 } 3179 3180 function wavespink() { 3181 event.preventDefault(); 3182 document.querySelector(".confetti-content").style.display = "none"; 3183 var duration = 3184 15 * 3185 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3186 animationEnd = Date.now() + duration, 3187 skew = 1; 3188 function randomInRange(a, n) { 3189 return Math.random() * (n - a) + a; 3190 } 3191 !(function a() { 3192 var n = animationEnd - Date.now(), 3193 t = Math.max(200, (n / duration) * 500); 3194 (skew = Math.max(0.8, skew - 0.001)), 3195 confetti({ 3196 particleCount: 1, 3197 startVelocity: 0, 3198 ticks: t, 3199 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3200 colors: ["#e75480"], 3201 shapes: ["circle"], 3202 gravity: randomInRange(-1, 0.6), 3203 scalar: randomInRange(0.4, 1), 3204 drift: randomInRange(7, 1), 3205 }), 3206 0 < n && requestAnimationFrame(a); 3207 })(); 3208 } 3209 3210 function snowblack() { 3211 event.preventDefault(); 3212 document.querySelector(".confetti-content").style.display = "none"; 3213 var duration = 3214 15 * 3215 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3216 animationEnd = Date.now() + duration, 3217 skew = 1; 3218 function randomInRange(a, n) { 3219 return Math.random() * (n - a) + a; 3220 } 3221 !(function a() { 3222 var n = animationEnd - Date.now(), 3223 t = Math.max(200, (n / duration) * 500); 3224 (skew = Math.max(0.8, skew - 0.001)), 3225 confetti({ 3226 particleCount: 1, 3227 startVelocity: 0, 3228 ticks: t, 3229 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3230 colors: ["#000000"], 3231 shapes: ["circle"], 3232 gravity: randomInRange(0.4, 0.6), 3233 scalar: randomInRange(0.4, 1), 3234 drift: randomInRange(-0.4, 0.4), 3235 }), 3236 n > 0 && requestAnimationFrame(a); 3237 })(); 3238 } 3239 3240 function snowwhite() { 3241 event.preventDefault(); 3242 document.querySelector(".confetti-content").style.display = "none"; 3243 var duration = 3244 15 * 3245 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3246 animationEnd = Date.now() + duration, 3247 skew = 1; 3248 function randomInRange(a, n) { 3249 return Math.random() * (n - a) + a; 3250 } 3251 !(function a() { 3252 var n = animationEnd - Date.now(), 3253 t = Math.max(200, (n / duration) * 500); 3254 (skew = Math.max(0.8, skew - 0.001)), 3255 confetti({ 3256 particleCount: 1, 3257 startVelocity: 0, 3258 ticks: t, 3259 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3260 colors: ["#ffffff"], 3261 shapes: ["circle"], 3262 gravity: randomInRange(0.4, 0.6), 3263 scalar: randomInRange(0.4, 1), 3264 drift: randomInRange(-0.4, 0.4), 3265 }), 3266 n > 0 && requestAnimationFrame(a); 3267 })(); 3268 } 3269 3270 function snowred() { 3271 event.preventDefault(); 3272 document.querySelector(".confetti-content").style.display = "none"; 3273 var duration = 3274 15 * 3275 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3276 animationEnd = Date.now() + duration, 3277 skew = 1; 3278 function randomInRange(a, n) { 3279 return Math.random() * (n - a) + a; 3280 } 3281 !(function a() { 3282 var n = animationEnd - Date.now(), 3283 t = Math.max(200, (n / duration) * 500); 3284 (skew = Math.max(0.8, skew - 0.001)), 3285 confetti({ 3286 particleCount: 1, 3287 startVelocity: 0, 3288 ticks: t, 3289 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3290 colors: ["#ff0000"], 3291 shapes: ["circle"], 3292 gravity: randomInRange(0.4, 0.6), 3293 scalar: randomInRange(0.4, 1), 3294 drift: randomInRange(-0.4, 0.4), 3295 }), 3296 n > 0 && requestAnimationFrame(a); 3297 })(); 3298 } 3299 3300 function snoworange() { 3301 event.preventDefault(); 3302 document.querySelector(".confetti-content").style.display = "none"; 3303 var duration = 3304 15 * 3305 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3306 animationEnd = Date.now() + duration, 3307 skew = 1; 3308 function randomInRange(a, n) { 3309 return Math.random() * (n - a) + a; 3310 } 3311 !(function a() { 3312 var n = animationEnd - Date.now(), 3313 t = Math.max(200, (n / duration) * 500); 3314 (skew = Math.max(0.8, skew - 0.001)), 3315 confetti({ 3316 particleCount: 1, 3317 startVelocity: 0, 3318 ticks: t, 3319 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3320 colors: ["#ff8c00"], 3321 shapes: ["circle"], 3322 gravity: randomInRange(0.4, 0.6), 3323 scalar: randomInRange(0.4, 1), 3324 drift: randomInRange(-0.4, 0.4), 3325 }), 3326 n > 0 && requestAnimationFrame(a); 3327 })(); 3328 } 3329 3330 function snowyellow() { 3331 event.preventDefault(); 3332 document.querySelector(".confetti-content").style.display = "none"; 3333 var duration = 3334 15 * 3335 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3336 animationEnd = Date.now() + duration, 3337 skew = 1; 3338 function randomInRange(a, n) { 3339 return Math.random() * (n - a) + a; 3340 } 3341 !(function a() { 3342 var n = animationEnd - Date.now(), 3343 t = Math.max(200, (n / duration) * 500); 3344 (skew = Math.max(0.8, skew - 0.001)), 3345 confetti({ 3346 particleCount: 1, 3347 startVelocity: 0, 3348 ticks: t, 3349 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3350 colors: ["#E1AD01"], 3351 shapes: ["circle"], 3352 gravity: randomInRange(0.4, 0.6), 3353 scalar: randomInRange(0.4, 1), 3354 drift: randomInRange(-0.4, 0.4), 3355 }), 3356 n > 0 && requestAnimationFrame(a); 3357 })(); 3358 } 3359 3360 function snowgreen() { 3361 event.preventDefault(); 3362 document.querySelector(".confetti-content").style.display = "none"; 3363 var duration = 3364 15 * 3365 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3366 animationEnd = Date.now() + duration, 3367 skew = 1; 3368 function randomInRange(a, n) { 3369 return Math.random() * (n - a) + a; 3370 } 3371 !(function a() { 3372 var n = animationEnd - Date.now(), 3373 t = Math.max(200, (n / duration) * 500); 3374 (skew = Math.max(0.8, skew - 0.001)), 3375 confetti({ 3376 particleCount: 1, 3377 startVelocity: 0, 3378 ticks: t, 3379 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3380 colors: ["#006400"], 3381 shapes: ["circle"], 3382 gravity: randomInRange(0.4, 0.6), 3383 scalar: randomInRange(0.4, 1), 3384 drift: randomInRange(-0.4, 0.4), 3385 }), 3386 n > 0 && requestAnimationFrame(a); 3387 })(); 3388 } 3389 3390 function snowblue() { 3391 event.preventDefault(); 3392 document.querySelector(".confetti-content").style.display = "none"; 3393 var duration = 3394 15 * 3395 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3396 animationEnd = Date.now() + duration, 3397 skew = 1; 3398 function randomInRange(a, n) { 3399 return Math.random() * (n - a) + a; 3400 } 3401 !(function a() { 3402 var n = animationEnd - Date.now(), 3403 t = Math.max(200, (n / duration) * 500); 3404 (skew = Math.max(0.8, skew - 0.001)), 3405 confetti({ 3406 particleCount: 1, 3407 startVelocity: 0, 3408 ticks: t, 3409 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3410 colors: ["#00008b"], 3411 shapes: ["circle"], 3412 gravity: randomInRange(0.4, 0.6), 3413 scalar: randomInRange(0.4, 1), 3414 drift: randomInRange(-0.4, 0.4), 3415 }), 3416 n > 0 && requestAnimationFrame(a); 3417 })(); 3418 } 3419 3420 function snowpurple() { 3421 event.preventDefault(); 3422 document.querySelector(".confetti-content").style.display = "none"; 3423 var duration = 3424 15 * 3425 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3426 animationEnd = Date.now() + duration, 3427 skew = 1; 3428 function randomInRange(a, n) { 3429 return Math.random() * (n - a) + a; 3430 } 3431 !(function a() { 3432 var n = animationEnd - Date.now(), 3433 t = Math.max(200, (n / duration) * 500); 3434 (skew = Math.max(0.8, skew - 0.001)), 3435 confetti({ 3436 particleCount: 1, 3437 startVelocity: 0, 3438 ticks: t, 3439 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3440 colors: ["#800080"], 3441 shapes: ["circle"], 3442 gravity: randomInRange(0.4, 0.6), 3443 scalar: randomInRange(0.4, 1), 3444 drift: randomInRange(-0.4, 0.4), 3445 }), 3446 n > 0 && requestAnimationFrame(a); 3447 })(); 3448 } 3449 3450 function snowpink() { 3451 event.preventDefault(); 3452 document.querySelector(".confetti-content").style.display = "none"; 3453 var duration = 3454 15 * 3455 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3456 animationEnd = Date.now() + duration, 3457 skew = 1; 3458 function randomInRange(a, n) { 3459 return Math.random() * (n - a) + a; 3460 } 3461 !(function a() { 3462 var n = animationEnd - Date.now(), 3463 t = Math.max(200, (n / duration) * 500); 3464 (skew = Math.max(0.8, skew - 0.001)), 3465 confetti({ 3466 particleCount: 1, 3467 startVelocity: 0, 3468 ticks: t, 3469 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3470 colors: ["#e75480"], 3471 shapes: ["circle"], 3472 gravity: randomInRange(0.4, 0.6), 3473 scalar: randomInRange(0.4, 1), 3474 drift: randomInRange(-0.4, 0.4), 3475 }), 3476 n > 0 && requestAnimationFrame(a); 3477 })(); 3478 } 3479 3480 function rainblack() { 3481 event.preventDefault(); 3482 document.querySelector(".confetti-content").style.display = "none"; 3483 var duration = 3484 15 * 3485 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3486 animationEnd = Date.now() + duration, 3487 skew = 1; 3488 function randomInRange(a, n) { 3489 return Math.random() * (n - a) + a; 3490 } 3491 !(function a() { 3492 var n = animationEnd - Date.now(), 3493 t = Math.max(200, (n / duration) * 500); 3494 (skew = Math.max(0.8, skew - 0.001)), 3495 confetti({ 3496 particleCount: 1, 3497 startVelocity: 0, 3498 ticks: t, 3499 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3500 colors: ["#000"], 3501 shapes: ["square"], 3502 gravity: randomInRange(1, 0.6), 3503 scalar: randomInRange(0.4, 1), 3504 drift: randomInRange(-0.4, 0.4), 3505 }), 3506 0 < n && requestAnimationFrame(a); 3507 })(); 3508 } 3509 3510 function rainwhite() { 3511 ev
3511ent.preventDefault(); 3512 document.querySelector(".confetti-content").style.display = "none"; 3513 var duration = 3514 15 * 3515 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3516 animationEnd = Date.now() + duration, 3517 skew = 1; 3518 function randomInRange(a, n) { 3519 return Math.random() * (n - a) + a; 3520 } 3521 !(function a() { 3522 var n = animationEnd - Date.now(), 3523 t = Math.max(200, (n / duration) * 500); 3524 (skew = Math.max(0.8, skew - 0.001)), 3525 confetti({ 3526 particleCount: 1, 3527 startVelocity: 0, 3528 ticks: t, 3529 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3530 colors: ["#ffffff"], 3531 shapes: ["square"], 3532 gravity: randomInRange(1, 0.6), 3533 scalar: randomInRange(0.4, 1), 3534 drift: randomInRange(-0.4, 0.4), 3535 }), 3536 0 < n && requestAnimationFrame(a); 3537 })(); 3538 } 3539 3540 function rainred() { 3541 event.preventDefault(); 3542 document.querySelector(".confetti-content").style.display = "none"; 3543 var duration = 3544 15 * 3545 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3546 animationEnd = Date.now() + duration, 3547 skew = 1; 3548 function randomInRange(a, n) { 3549 return Math.random() * (n - a) + a; 3550 } 3551 !(function a() { 3552 var n = animationEnd - Date.now(), 3553 t = Math.max(200, (n / duration) * 500); 3554 (skew = Math.max(0.8, skew - 0.001)), 3555 confetti({ 3556 particleCount: 1, 3557 startVelocity: 0, 3558 ticks: t, 3559 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3560 colors: ["#ff0000"], 3561 shapes: ["square"], 3562 gravity: randomInRange(1, 0.6), 3563 scalar: randomInRange(0.4, 1), 3564 drift: randomInRange(-0.4, 0.4), 3565 }), 3566 0 < n && requestAnimationFrame(a); 3567 })(); 3568 } 3569 3570 function rainorange() { 3571 event.preventDefault(); 3572 document.querySelector(".confetti-content").style.display = "none"; 3573 var duration = 3574 15 * 3575 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3576 animationEnd = Date.now() + duration, 3577 skew = 1; 3578 function randomInRange(a, n) { 3579 return Math.random() * (n - a) + a; 3580 } 3581 !(function a() { 3582 var n = animationEnd - Date.now(), 3583 t = Math.max(200, (n / duration) * 500); 3584 (skew = Math.max(0.8, skew - 0.001)), 3585 confetti({ 3586 particleCount: 1, 3587 startVelocity: 0, 3588 ticks: t, 3589 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3590 colors: ["#ff8c00"], 3591 shapes: ["square"], 3592 gravity: randomInRange(1, 0.6), 3593 scalar: randomInRange(0.4, 1), 3594 drift: randomInRange(-0.4, 0.4), 3595 }), 3596 0 < n && requestAnimationFrame(a); 3597 })(); 3598 } 3599 3600 function rainyellow() { 3601 event.preventDefault(); 3602 document.querySelector(".confetti-content").style.display = "none"; 3603 var duration = 3604 15 * 3605 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3606 animationEnd = Date.now() + duration, 3607 skew = 1; 3608 function randomInRange(a, n) { 3609 return Math.random() * (n - a) + a; 3610 } 3611 !(function a() { 3612 var n = animationEnd - Date.now(), 3613 t = Math.max(200, (n / duration) * 500); 3614 (skew = Math.max(0.8, skew - 0.001)), 3615 confetti({ 3616 particleCount: 1, 3617 startVelocity: 0, 3618 ticks: t, 3619 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3620 colors: ["#E1AD01"], 3621 shapes: ["square"], 3622 gravity: randomInRange(1, 0.6), 3623 scalar: randomInRange(0.4, 1), 3624 drift: randomInRange(-0.4, 0.4), 3625 }), 3626 0 < n && requestAnimationFrame(a); 3627 })(); 3628 } 3629 3630 function raingreen() { 3631 event.preventDefault(); 3632 document.querySelector(".confetti-content").style.display = "none"; 3633 var duration = 3634 15 * 3635 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3636 animationEnd = Date.now() + duration, 3637 skew = 1; 3638 function randomInRange(a, n) { 3639 return Math.random() * (n - a) + a; 3640 } 3641 !(function a() { 3642 var n = animationEnd - Date.now(), 3643 t = Math.max(200, (n / duration) * 500); 3644 (skew = Math.max(0.8, skew - 0.001)), 3645 confetti({ 3646 particleCount: 1, 3647 startVelocity: 0, 3648 ticks: t, 3649 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3650 colors: ["#006400"], 3651 shapes: ["square"], 3652 gravity: randomInRange(1, 0.6), 3653 scalar: randomInRange(0.4, 1), 3654 drift: randomInRange(-0.4, 0.4), 3655 }), 3656 0 < n && requestAnimationFrame(a); 3657 })(); 3658 } 3659 3660 function rainblue() { 3661 event.preventDefault(); 3662 document.querySelector(".confetti-content").style.display = "none"; 3663 var duration = 3664 15 * 3665 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3666 animationEnd = Date.now() + duration, 3667 skew = 1; 3668 function randomInRange(a, n) { 3669 return Math.random() * (n - a) + a; 3670 } 3671 !(function a() { 3672 var n = animationEnd - Date.now(), 3673 t = Math.max(200, (n / duration) * 500); 3674 (skew = Math.max(0.8, skew - 0.001)), 3675 confetti({ 3676 particleCount: 1, 3677 startVelocity: 0, 3678 ticks: t, 3679 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3680 colors: ["#00008b"], 3681 shapes: ["square"], 3682 gravity: randomInRange(1, 0.6), 3683 scalar: randomInRange(0.4, 1), 3684 drift: randomInRange(-0.4, 0.4), 3685 }), 3686 0 < n && requestAnimationFrame(a); 3687 })(); 3688 } 3689 3690 function rainpurple() { 3691 event.preventDefault(); 3692 document.querySelector(".confetti-content").style.display = "none"; 3693 var duration = 3694 15 * 3695 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3696 animationEnd = Date.now() + duration, 3697 skew = 1; 3698 function randomInRange(a, n) { 3699 return Math.random() * (n - a) + a; 3700 } 3701 !(function a() { 3702 var n = animationEnd - Date.now(), 3703 t = Math.max(200, (n / duration) * 500); 3704 (skew = Math.max(0.8, skew - 0.001)), 3705 confetti({ 3706 particleCount: 1, 3707 startVelocity: 0, 3708 ticks: t, 3709 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3710 colors: ["#800080"], 3711 shapes: ["square"], 3712 gravity: randomInRange(1, 0.6), 3713 scalar: randomInRange(0.4, 1), 3714 drift: randomInRange(-0.4, 0.4), 3715 }), 3716 0 < n && requestAnimationFrame(a); 3717 })(); 3718 } 3719 3720 function rainpink() { 3721 event.preventDefault(); 3722 document.querySelector(".confetti-content").style.display = "none"; 3723 var duration = 3724 15 * 3725 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3726 animationEnd = Date.now() + duration, 3727 skew = 1; 3728 function randomInRange(a, n) { 3729 return Math.random() * (n - a) + a; 3730 } 3731 !(function a() { 3732 var n = animationEnd - Date.now(), 3733 t = Math.max(200, (n / duration) * 500); 3734 (skew = Math.max(0.8, skew - 0.001)), 3735 confetti({ 3736 particleCount: 1, 3737 startVelocity: 0, 3738 ticks: t, 3739 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3740 colors: ["#e75480"], 3741 shapes: ["square"], 3742 gravity: randomInRange(1, 0.6), 3743 scalar: randomInRange(0.4, 1), 3744 drift: randomInRange(-0.4, 0.4), 3745 }), 3746 0 < n && requestAnimationFrame(a); 3747 })(); 3748 } 3749 3750 function windblack() { 3751 event.preventDefault(); 3752 document.querySelector(".confetti-content").style.display = "none"; 3753 var duration = 3754 15 * 3755 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3756 animationEnd = Date.now() + duration, 3757 skew = 1; 3758 function randomInRange(a, b) { 3759 return Math.random() * (b - a) + a; 3760 } 3761 (function a() { 3762 var b = animationEnd - Date.now(), 3763 c = Math.max(200, 500 * (b / duration)); 3764 (skew = Math.max(0.8, skew - 0.001)), 3765 confetti({ 3766 particleCount: 1, 3767 startVelocity: 0, 3768 ticks: c, 3769 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3770 colors: ["#000"], 3771 shapes: ["square"], 3772 gravity: randomInRange(0.1, 0.6), 3773 scalar: randomInRange(0.4, 1), 3774 drift: randomInRange(15, 0), 3775 }), 3776 0 < b && requestAnimationFrame(a); 3777 })(); 3778 } 3779 3780 function windwhite() { 3781 event.preventDefault(); 3782 document.querySelector(".confetti-content").style.display = "none"; 3783 var duration = 3784 15 * 3785 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3786 animationEnd = Date.now() + duration, 3787 skew = 1; 3788 function randomInRange(a, b) { 3789 return Math.random() * (b - a) + a; 3790 } 3791 (function a() { 3792 var b = animationEnd - Date.now(), 3793 c = Math.max(200, 500 * (b / duration)); 3794 (skew = Math.max(0.8, skew - 0.001)), 3795 confetti({ 3796 particleCount: 1, 3797 startVelocity: 0, 3798 ticks: c, 3799 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3800 colors: ["#ffffff"], 3801 shapes: ["square"], 3802 gravity: randomInRange(0.1, 0.6), 3803 scalar: randomInRange(0.4, 1), 3804 drift: randomInRange(15, 0), 3805 }), 3806 0 < b && requestAnimationFrame(a); 3807 })(); 3808 } 3809 3810 function windred() { 3811 event.preventDefault(); 3812 document.querySelector(".confetti-content").style.display = "none"; 3813 var duration = 3814 15 * 3815 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3816 animationEnd = Date.now() + duration, 3817 skew = 1; 3818 function randomInRange(a, b) { 3819 return Math.random() * (b - a) + a; 3820 } 3821 (function a() { 3822 var b = animationEnd - Date.now(), 3823 c = Math.max(200, 500 * (b / duration)); 3824 (skew = Math.max(0.8, skew - 0.001)), 3825 confetti({ 3826 particleCount: 1, 3827 startVelocity: 0, 3828 ticks: c, 3829 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3830 colors: ["#ff0000"], 3831 shapes: ["square"], 3832 gravity: randomInRange(0.1, 0.6), 3833 scalar: randomInRange(0.4, 1), 3834 drift: randomInRange(15, 0), 3835 }), 3836 0 < b && requestAnimationFrame(a); 3837 })(); 3838 } 3839 3840 function windorange() { 3841 event.preventDefault(); 3842 document.querySelector(".confetti-content").style.display = "none"; 3843 var duration = 3844 15 * 3845 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3846 animationEnd = Date.now() + duration, 3847 skew = 1; 3848 function randomInRange(a, b) { 3849 return Math.random() * (b - a) + a; 3850 } 3851 (function a() { 3852 var b = animationEnd - Date.now(), 3853 c = Math.max(200, 500 * (b / duration)); 3854 (skew = Math.max(0.8, skew - 0.001)), 3855 confetti({ 3856 particleCount: 1, 3857 startVelocity: 0, 3858 ticks: c, 3859 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3860 colors: ["#ff8c00"], 3861 shapes: ["square"], 3862 gravity: randomInRange(0.1, 0.6), 3863 scalar: randomInRange(0.4, 1), 3864 drift: randomInRange(15, 0), 3865 }), 3866 0 < b && requestAnimationFrame(a); 3867 })(); 3868 } 3869 3870 function windyellow() { 3871 event.preventDefault(); 3872 document.querySelector(".confetti-content").style.display = "none"; 3873 var duration = 3874 15 * 3875 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3876 animationEnd = Date.now() + duration, 3877 skew = 1; 3878 function randomInRange(a, b) { 3879 return Math.random() * (b - a) + a; 3880 } 3881 (function a() { 3882 var b = animationEnd - Date.now(), 3883 c = Math.max(200, 500 * (b / duration)); 3884 (skew = Math.max(0.8, skew - 0.001)), 3885 confetti({ 3886 particleCount: 1, 3887 startVelocity: 0, 3888 ticks: c, 3889 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3890 colors: ["#E1AD01"], 3891 shapes: ["square"], 3892 gravity: randomInRange(0.1, 0.6), 3893 scalar: randomInRange(0.4, 1), 3894 drift: randomInRange(15, 0), 3895 }), 3896 0 < b && requestAnimationFrame(a); 3897 })(); 3898 } 3899 3900 function windgreen() { 3901 event.preventDefault(); 3902 document.querySelector(".confetti-content").style.display = "none"; 3903 var duration = 3904 15 * 3905 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3906 animationEnd = Date.now() + duration, 3907 skew = 1; 3908 function randomInRange(a, b) { 3909 return Math.random() * (b - a) + a; 3910 } 3911 (function a() { 3912 var b = animationEnd - Date.now(), 3913 c = Math.max(200, 500 * (b / duration)); 3914 (skew = Math.max(0.8, skew - 0.001)), 3915 confetti({ 3916 particleCount: 1, 3917 startVelocity: 0, 3918 ticks: c, 3919 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3920 colors: ["#006400"], 3921 shapes: ["square"], 3922 gravity: randomInRange(0.1, 0.6), 3923 scalar: randomInRange(0.4, 1), 3924 drift: randomInRange(15, 0), 3925 }), 3926 0 < b && requestAnimationFrame(a); 3927 })(); 3928 } 3929 3930 function windblue() { 3931 event.preventDefault(); 3932 document.querySelector(".confetti-content").style.display = "none"; 3933 var duration = 3934 15 * 3935 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3936 animationEnd = Date.now() + duration, 3937 skew = 1; 3938 function randomInRange(a, b) { 3939 return Math.random() * (b - a) + a; 3940 } 3941 (function a() { 3942 var b = animationEnd - Date.now(), 3943 c = Math.max(200, 500 * (b / duration)); 3944 (skew = Math.max(0.8, skew - 0.001)), 3945 confetti({ 3946 particleCount: 1, 3947 startVelocity: 0, 3948 ticks: c, 3949 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3950 colors: ["#00008b"], 3951 shapes: ["square"], 3952 gravity: randomInRange(0.1, 0.6), 3953 scalar: randomInRange(0.4, 1), 3954 drift: randomInRange(15, 0), 3955 }), 3956 0 < b && requestAnimationFrame(a); 3957 })(); 3958 } 3959 3960 function windpurple() { 3961 event.preventDefault(); 3962 document.querySelector(".confetti-content").style.display = "none"; 3963 var duration = 3964 15 * 3965 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3966 animationEnd = Date.now() + duration, 3967 skew = 1; 3968 function randomInRange(a, b) { 3969 return Math.random() * (b - a) + a; 3970 } 3971 (function a() { 3972 var b = animationEnd - Date.now(), 3973 c = Math.max(200, 500 * (b / duration)); 3974 (skew = Math.max(0.8, skew - 0.001)), 3975 confetti({ 3976 particleCount: 1, 3977 startVelocity: 0, 3978 ticks: c, 3979 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 3980 colors: ["#800080"], 3981 shapes: ["square"], 3982 gravity: randomInRange(0.1, 0.6), 3983 scalar: randomInRange(0.4, 1), 3984 drift: randomInRange(15, 0), 3985 }), 3986 0 < b && requestAnimationFrame(a); 3987 })(); 3988 } 3989 3990 function windpink() { 3991 event.preventDefault(); 3992 document.querySelector(".confetti-content").style.display = "none"; 3993 var duration = 3994 15 * 3995 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 3996 animationEnd = Date.now() + duration, 3997 skew = 1; 3998 function randomInRange(a, b) { 3999 return Math.random() * (b - a) + a; 4000 } 4001 (function a() { 4002 var b = animationEnd - Date.now(), 4003 c = Math.max(200, 500 * (b / duration)); 4004 (skew = Math.max(0.8, skew - 0.001)), 4005 confetti({ 4006
4006 particleCount: 1, 4007 startVelocity: 0, 4008 ticks: c, 4009 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 4010 colors: ["#e75480"], 4011 shapes: ["square"], 4012 gravity: randomInRange(0.1, 0.6), 4013 scalar: randomInRange(0.4, 1), 4014 drift: randomInRange(15, 0), 4015 }), 4016 0 < b && requestAnimationFrame(a); 4017 })(); 4018 } 4019 4020 function tornadoblack() { 4021 event.preventDefault(); 4022 document.querySelector(".confetti-content").style.display = "none"; 4023 var duration = 4024 15 * 4025 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 4026 animationEnd = Date.now() + duration, 4027 skew = 1; 4028 function randomInRange(n, a) { 4029 return Math.random() * (a - n) + n; 4030 } 4031 function randomInRange(n, a) { 4032 return Math.random() * (a - n) + n; 4033 } 4034 !(function n() { 4035 var a = animationEnd - Date.now(), 4036 r = Math.max(200, (a / duration) * 500); 4037 (skew = Math.max(0.8, skew - 0.001)), 4038 confetti({ 4039 angle: randomInRange(55, 125), 4040 spread: randomInRange(50, 7e3), 4041 particleCount: 1, 4042 ticks: r, 4043 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 4044 colors: ["#000"], 4045 shapes: ["circle"], 4046 gravity: randomInRange(10, 0.6), 4047 scalar: randomInRange(0.4, 1), 4048 drift: randomInRange(100, 1), 4049 }), 4050 0 < a && requestAnimationFrame(n); 4051 })(); 4052 } 4053 4054 function tornadowhite() { 4055 event.preventDefault(); 4056 document.querySelector(".confetti-content").style.display = "none"; 4057 var duration = 4058 15 * 4059 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 4060 animationEnd = Date.now() + duration, 4061 skew = 1; 4062 function randomInRange(n, a) { 4063 return Math.random() * (a - n) + n; 4064 } 4065 function randomInRange(n, a) { 4066 return Math.random() * (a - n) + n; 4067 } 4068 !(function n() { 4069 var a = animationEnd - Date.now(), 4070 r = Math.max(200, (a / duration) * 500); 4071 (skew = Math.max(0.8, skew - 0.001)), 4072 confetti({ 4073 angle: randomInRange(55, 125), 4074 spread: randomInRange(50, 7e3), 4075 particleCount: 1, 4076 ticks: r, 4077 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 4078 colors: ["#ffffff"], 4079 shapes: ["circle"], 4080 gravity: randomInRange(10, 0.6), 4081 scalar: randomInRange(0.4, 1), 4082 drift: randomInRange(100, 1), 4083 }), 4084 0 < a && requestAnimationFrame(n); 4085 })(); 4086 } 4087 4088 function tornadored() { 4089 event.preventDefault(); 4090 document.querySelector(".confetti-content").style.display = "none"; 4091 var duration = 4092 15 * 4093 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 4094 animationEnd = Date.now() + duration, 4095 skew = 1; 4096 function randomInRange(n, a) { 4097 return Math.random() * (a - n) + n; 4098 } 4099 function randomInRange(n, a) { 4100 return Math.random() * (a - n) + n; 4101 } 4102 !(function n() { 4103 var a = animationEnd - Date.now(), 4104 r = Math.max(200, (a / duration) * 500); 4105 (skew = Math.max(0.8, skew - 0.001)), 4106 confetti({ 4107 angle: randomInRange(55, 125), 4108 spread: randomInRange(50, 7e3), 4109 particleCount: 1, 4110 ticks: r, 4111 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 4112 colors: ["#ff0000"], 4113 shapes: ["circle"], 4114 gravity: randomInRange(10, 0.6), 4115 scalar: randomInRange(0.4, 1), 4116 drift: randomInRange(100, 1), 4117 }), 4118 0 < a && requestAnimationFrame(n); 4119 })(); 4120 } 4121 4122 function tornadoorange() { 4123 event.preventDefault(); 4124 document.querySelector(".confetti-content").style.display = "none"; 4125 var duration = 4126 15 * 4127 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 4128 animationEnd = Date.now() + duration, 4129 skew = 1; 4130 function randomInRange(n, a) { 4131 return Math.random() * (a - n) + n; 4132 } 4133 function randomInRange(n, a) { 4134 return Math.random() * (a - n) + n; 4135 } 4136 !(function n() { 4137 var a = animationEnd - Date.now(), 4138 r = Math.max(200, (a / duration) * 500); 4139 (skew = Math.max(0.8, skew - 0.001)), 4140 confetti({ 4141 angle: randomInRange(55, 125), 4142 spread: randomInRange(50, 7e3), 4143 particleCount: 1, 4144 ticks: r, 4145 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 4146 colors: ["#ff8c00"], 4147 shapes: ["circle"], 4148 gravity: randomInRange(10, 0.6), 4149 scalar: randomInRange(0.4, 1), 4150 drift: randomInRange(100, 1), 4151 }), 4152 0 < a && requestAnimationFrame(n); 4153 })(); 4154 } 4155 4156 function tornadoyellow() { 4157 event.preventDefault(); 4158 document.querySelector(".confetti-content").style.display = "none"; 4159 var duration = 4160 15 * 4161 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 4162 animationEnd = Date.now() + duration, 4163 skew = 1; 4164 function randomInRange(n, a) { 4165 return Math.random() * (a - n) + n; 4166 } 4167 function randomInRange(n, a) { 4168 return Math.random() * (a - n) + n; 4169 } 4170 !(function n() { 4171 var a = animationEnd - Date.now(), 4172 r = Math.max(200, (a / duration) * 500); 4173 (skew = Math.max(0.8, skew - 0.001)), 4174 confetti({ 4175 angle: randomInRange(55, 125), 4176 spread: randomInRange(50, 7e3), 4177 particleCount: 1, 4178 ticks: r, 4179 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 4180 colors: ["#E1AD01"], 4181 shapes: ["circle"], 4182 gravity: randomInRange(10, 0.6), 4183 scalar: randomInRange(0.4, 1), 4184 drift: randomInRange(100, 1), 4185 }), 4186 0 < a && requestAnimationFrame(n); 4187 })(); 4188 } 4189 4190 function tornadogreen() { 4191 event.preventDefault(); 4192 document.querySelector(".confetti-content").style.display = "none"; 4193 var duration = 4194 15 * 4195 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 4196 animationEnd = Date.now() + duration, 4197 skew = 1; 4198 function randomInRange(n, a) { 4199 return Math.random() * (a - n) + n; 4200 } 4201 function randomInRange(n, a) { 4202 return Math.random() * (a - n) + n; 4203 } 4204 !(function n() { 4205 var a = animationEnd - Date.now(), 4206 r = Math.max(200, (a / duration) * 500); 4207 (skew = Math.max(0.8, skew - 0.001)), 4208 confetti({ 4209 angle: randomInRange(55, 125), 4210 spread: randomInRange(50, 7e3), 4211 particleCount: 1, 4212 ticks: r, 4213 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 4214 colors: ["#006400"], 4215 shapes: ["circle"], 4216 gravity: randomInRange(10, 0.6), 4217 scalar: randomInRange(0.4, 1), 4218 drift: randomInRange(100, 1), 4219 }), 4220 0 < a && requestAnimationFrame(n); 4221 })(); 4222 } 4223 4224 function tornadoblue() { 4225 event.preventDefault(); 4226 document.querySelector(".confetti-content").style.display = "none"; 4227 var duration = 4228 15 * 4229 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 4230 animationEnd = Date.now() + duration, 4231 skew = 1; 4232 function randomInRange(n, a) { 4233 return Math.random() * (a - n) + n; 4234 } 4235 function randomInRange(n, a) { 4236 return Math.random() * (a - n) + n; 4237 } 4238 !(function n() { 4239 var a = animationEnd - Date.now(), 4240 r = Math.max(200, (a / duration) * 500); 4241 (skew = Math.max(0.8, skew - 0.001)), 4242 confetti({ 4243 angle: randomInRange(55, 125), 4244 spread: randomInRange(50, 7e3), 4245 particleCount: 1, 4246 ticks: r, 4247 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 4248 colors: ["#00008b"], 4249 shapes: ["circle"], 4250 gravity: randomInRange(10, 0.6), 4251 scalar: randomInRange(0.4, 1), 4252 drift: randomInRange(100, 1), 4253 }), 4254 0 < a && requestAnimationFrame(n); 4255 })(); 4256 } 4257 4258 function tornadopurple() { 4259 event.preventDefault(); 4260 document.querySelector(".confetti-content").style.display = "none"; 4261 var duration = 4262 15 * 4263 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 4264 animationEnd = Date.now() + duration, 4265 skew = 1; 4266 function randomInRange(n, a) { 4267 return Math.random() * (a - n) + n; 4268 } 4269 function randomInRange(n, a) { 4270 return Math.random() * (a - n) + n; 4271 } 4272 !(function n() { 4273 var a = animationEnd - Date.now(), 4274 r = Math.max(200, (a / duration) * 500); 4275 (skew = Math.max(0.8, skew - 0.001)), 4276 confetti({ 4277 angle: randomInRange(55, 125), 4278 spread: randomInRange(50, 7e3), 4279 particleCount: 1, 4280 ticks: r, 4281 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 4282 colors: ["#800080"], 4283 shapes: ["circle"], 4284 gravity: randomInRange(10, 0.6), 4285 scalar: randomInRange(0.4, 1), 4286 drift: randomInRange(100, 1), 4287 }), 4288 0 < a && requestAnimationFrame(n); 4289 })(); 4290 } 4291 4292 function tornadopink() { 4293 event.preventDefault(); 4294 document.querySelector(".confetti-content").style.display = "none"; 4295 var duration = 4296 15 * 4297 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 4298 animationEnd = Date.now() + duration, 4299 skew = 1; 4300 function randomInRange(n, a) { 4301 return Math.random() * (a - n) + n; 4302 } 4303 function randomInRange(n, a) { 4304 return Math.random() * (a - n) + n; 4305 } 4306 !(function n() { 4307 var a = animationEnd - Date.now(), 4308 r = Math.max(200, (a / duration) * 500); 4309 (skew = Math.max(0.8, skew - 0.001)), 4310 confetti({ 4311 angle: randomInRange(55, 125), 4312 spread: randomInRange(50, 7e3), 4313 particleCount: 1, 4314 ticks: r, 4315 origin: { x: Math.random(), y: Math.random() * skew - 0.2 }, 4316 colors: ["#e75480"], 4317 shapes: ["circle"], 4318 gravity: randomInRange(10, 0.6), 4319 scalar: randomInRange(0.4, 1), 4320 drift: randomInRange(100, 1), 4321 }), 4322 0 < a && requestAnimationFrame(n); 4323 })(); 4324 } 4325 4326 function fireworksdefault() { 4327 document.querySelector(".confetti-content").style.display = "none"; 4328 var duration = 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 4329 animationEnd = 4330 Date.now() + 4331 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, 4332 defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 10 }; 4333 function randomInRange(a, b) { 4334 return Math.random() * (b - a) + a; 4335 } 4336 var interval = setInterval(function () { 4337 var a = animationEnd - Date.now(); 4338 if (0 >= a) return clearInterval(interval); 4339 var b = 50 * (a / duration); 4340 confetti( 4341 Object.assign({}, defaults, { 4342 particleCount: b, 4343 origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 }, 4344 }) 4345 ), 4346 confetti( 4347 Object.assign({}, defaults, { 4348 particleCount: b, 4349 origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 }, 4350 }) 4351 ); 4352 }, 250); 4353 } 4354 4355 function fireworksblack() { 4356 document.querySelector(".confetti-content").style.display = "none"; 4357 var duration = 1.5e101, 4358 animationEnd = Date.now() + 1.5e101, 4359 defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 10 }; 4360 function randomInRange(a, b) { 4361 return Math.random() * (b - a) + a; 4362 } 4363 var interval = setInterval(function () { 4364 var a = animationEnd - Date.now(); 4365 if (0 >= a) return clearInterval(interval); 4366 var b = 50 * (a / duration); 4367 confetti( 4368 Object.assign({}, defaults, { 4369 colors: ["#000000"], 4370 particleCount: b, 4371 origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 }, 4372 }) 4373 ), 4374 confetti( 4375 Object.assign({}, defaults, { 4376 colors: ["#000000"], 4377 particleCount: b, 4378 origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 }, 4379 }) 4380 ); 4381 }, 250); 4382 } 4383 4384 function fireworkswhite() { 4385 event.preventDefault(); 4386 document.querySelector(".confetti-content").style.display = "none"; 4387 var duration = 1.5e101, 4388 animationEnd = Date.now() + 1.5e101, 4389 defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 10 }; 4390 function randomInRange(a, b) { 4391 return Math.random() * (b - a) + a; 4392 } 4393 var interval = setInterval(function () { 4394 var a = animationEnd - Date.now(); 4395 if (0 >= a) return clearInterval(interval); 4396 var b = 50 * (a / duration); 4397 confetti( 4398 Object.assign({}, defaults, { 4399 colors: ["#ffffff"], 4400 particleCount: b, 4401 origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 }, 4402 }) 4403 ), 4404 confetti( 4405 Object.assign({}, defaults, { 4406 colors: ["#ffffff"], 4407 particleCount: b, 4408 origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 }, 4409 }) 4410 ); 4411 }, 250); 4412 } 4413 4414 function fireworksred() { 4415 event.preventDefault(); 4416 document.querySelector(".confetti-content").style.display = "none"; 4417 var duration = 1.5e101, 4418 animationEnd = Date.now() + 1.5e101, 4419 defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 10 }; 4420 function randomInRange(a, b) { 4421 return Math.random() * (b - a) + a; 4422 } 4423 var interval = setInterval(function () { 4424 var a = animationEnd - Date.now(); 4425 if (0 >= a) return clearInterval(interval); 4426 var b = 50 * (a / duration); 4427 confetti( 4428 Object.assign({}, defaults, { 4429 colors: ["#ff0000"], 4430 particleCount: b, 4431 origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 }, 4432 }) 4433 ), 4434 confetti( 4435 Object.assign({}, defaults, { 4436 colors: ["#ff0000"], 4437 particleCount: b, 4438 origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 }, 4439 }) 4440 ); 4441 }, 250); 4442 } 4443 4444 function fireworksorange() { 4445 event.preventDefault(); 4446 document.querySelector(".confetti-content").style.display = "none"; 4447 var duration = 1.5e101, 4448 animationEnd = Date.now() + 1.5e101, 4449 defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 10 }; 4450 function randomInRange(a, b) { 4451 return Math.random() * (b - a) + a; 4452 } 4453 var interval = setInterval(function () { 4454 var a = animationEnd - Date.now(); 4455 if (0 >= a) return clearInterval(interval); 4456 var b = 50 * (a / duration); 4457 confetti( 4458 Object.assign({}, defaults, { 4459 colors: ["#ff8c00"], 4460 particleCount: b, 4461 origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 }, 4462 }) 4463 ), 4464 confetti( 4465 Object.assign({}, defaults, { 4466 colors: ["#ff8c00"], 4467 particleCount: b, 4468 origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 }, 4469 }) 4470 ); 4471 }, 250); 4472 } 4473 4474 function fireworksyellow() { 4475 event.preventDefault(); 4476 document.querySelector(".confetti-content").style.display = "none"; 4477 var duration = 1.5e101, 4478 animationEnd = Date.now() + 1.5e101, 4479 defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 10 }; 4480 function randomInRange(a, b) { 4481 return Math.random() * (b - a) + a; 4482 } 4483 var interval = setInterval(function () { 4484 var a = animationEnd - Date.now(); 4485 if (0 >= a) return clearInterval(interval); 4486 var b = 50 * (a / duration); 4487 confetti( 4488 Object.assign({}, defaults, { 4489 colors: ["#E1AD01"], 4490 particleCount: b, 4491 origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 }, 4492 }) 4493 ), 4494 confetti( 4495 Object.assign({}, defaults, { 4496 colors: ["#E1AD01"], 4497
4497 particleCount: b, 4498 origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 }, 4499 }) 4500 ); 4501 }, 250); 4502 } 4503 4504 function fireworksgreen() { 4505 event.preventDefault(); 4506 document.querySelector(".confetti-content").style.display = "none"; 4507 var duration = 1.5e101, 4508 animationEnd = Date.now() + 1.5e101, 4509 defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 10 }; 4510 function randomInRange(a, b) { 4511 return Math.random() * (b - a) + a; 4512 } 4513 var interval = setInterval(function () { 4514 var a = animationEnd - Date.now(); 4515 if (0 >= a) return clearInterval(interval); 4516 var b = 50 * (a / duration); 4517 confetti( 4518 Object.assign({}, defaults, { 4519 colors: ["#006400"], 4520 particleCount: b, 4521 origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 }, 4522 }) 4523 ), 4524 confetti( 4525 Object.assign({}, defaults, { 4526 colors: ["#006400"], 4527 particleCount: b, 4528 origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 }, 4529 }) 4530 ); 4531 }, 250); 4532 } 4533 4534 function fireworksblue() { 4535 event.preventDefault(); 4536 document.querySelector(".confetti-content").style.display = "none"; 4537 var duration = 1.5e101, 4538 animationEnd = Date.now() + 1.5e101, 4539 defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 10 }; 4540 function randomInRange(a, b) { 4541 return Math.random() * (b - a) + a; 4542 } 4543 var interval = setInterval(function () { 4544 var a = animationEnd - Date.now(); 4545 if (0 >= a) return clearInterval(interval); 4546 var b = 50 * (a / duration); 4547 confetti( 4548 Object.assign({}, defaults, { 4549 colors: ["#00008b"], 4550 particleCount: b, 4551 origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 }, 4552 }) 4553 ), 4554 confetti( 4555 Object.assign({}, defaults, { 4556 colors: ["#00008b"], 4557 particleCount: b, 4558 origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 }, 4559 }) 4560 ); 4561 }, 250); 4562 } 4563 4564 function fireworkspurple() { 4565 event.preventDefault(); 4566 document.querySelector(".confetti-content").style.display = "none"; 4567 var duration = 1.5e101, 4568 animationEnd = Date.now() + 1.5e101, 4569 defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 10 }; 4570 function randomInRange(a, b) { 4571 return Math.random() * (b - a) + a; 4572 } 4573 var interval = setInterval(function () { 4574 var a = animationEnd - Date.now(); 4575 if (0 >= a) return clearInterval(interval); 4576 var b = 50 * (a / duration); 4577 confetti( 4578 Object.assign({}, defaults, { 4579 colors: ["#800080"], 4580 particleCount: b, 4581 origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 }, 4582 }) 4583 ), 4584 confetti( 4585 Object.assign({}, defaults, { 4586 colors: ["#800080"], 4587 particleCount: b, 4588 origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 }, 4589 }) 4590 ); 4591 }, 250); 4592 } 4593 4594 function fireworkspink() { 4595 event.preventDefault(); 4596 document.querySelector(".confetti-content").style.display = "none"; 4597 var duration = 1.5e101, 4598 animationEnd = Date.now() + 1.5e101, 4599 defaults = { startVelocity: 30, spread: 360, ticks: 60, zIndex: 10 }; 4600 function randomInRange(a, b) { 4601 return Math.random() * (b - a) + a; 4602 } 4603 var interval = setInterval(function () { 4604 var a = animationEnd - Date.now(); 4605 if (0 >= a) return clearInterval(interval); 4606 var b = 50 * (a / duration); 4607 confetti( 4608 Object.assign({}, defaults, { 4609 colors: ["#e75480"], 4610 particleCount: b, 4611 origin: { x: randomInRange(0.1, 0.3), y: Math.random() - 0.2 }, 4612 }) 4613 ), 4614 confetti( 4615 Object.assign({}, defaults, { 4616 colors: ["#e75480"], 4617 particleCount: b, 4618 origin: { x: randomInRange(0.7, 0.9), y: Math.random() - 0.2 }, 4619 }) 4620 ); 4621 }, 250); 4622 } 4623 4624 function confettisoptions() { 4625 confettisaucy1 = true; 4626 document.querySelector("#saucy_ul3").style.display = "none"; 4627 document.querySelector("#closesaucybox3").style.display = "none"; 4628 document.querySelector("#saucyboxright").style.display = "none"; 4629 document.querySelector(".confetti-content").style.display = "block"; 4630 document.getElementById("confettis").focus(); 4631 document.querySelector("#iframe5").style.display = "none"; 4632 }
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.