Advertisement
Guest User

Untitled

a guest
Dec 28th, 2016
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.     var mySound = new buzz.sound("money", {
  3.         formats: ["wav", "mp3"]
  4.     });
  5.  
  6.     function randomNumber(min, max) {
  7.         return Math.floor((Math.random() * max) + min);
  8.     }
  9.     var names = ['Austin21', 'maya0', 'theMate', 'Sn4k3Bi', 'ElephanT_', 'Thor', 'T0xIciTy', 'ElCabron', 'SupHomie', 'theboylx', 'iLoveCoco', 'BlackNigeo', 'oOcoocOo', 'ZzzzUpp', 'TheDon', 'drapperDon', 'r1ngMa4t3r', 'LordHcabo', 'Biber22', 'Alex2919', 'NikuPetre', 'Gabriell2', 'John888XXa', 'theGamerForever22', 'FoR3v3rAl0n3', 'Wiai999', 'AmigoSimply', 'Muhaha32', 'IS113', 'bigrok25@yahoo.com', 'TheManwith255@gmail.com', 'ohboy255k@gmail.com', 'bigblackS@hotmail.com', 'drippGio@yahoo.com', 'biggie2IW@yahoo.com', 'johnyBoy2k15@hotmail.com', 'junkargond0@gmail.com', 'lordOfMoney@yahoo.com', 'drapicitia992@baliviti.com'];
  10.     var countriesCode = ['fr', 'nl', 'de', 'us', 'ch', 'ca', 'lu', 'au', 'gb', 'be'];
  11.  
  12.     function commentsStart() {
  13.         setInterval(function() {
  14.             $('#loadingActivity').fadeOut(150, function() {
  15.                 $('#onlineActivity').fadeIn().removeClass('hidden');
  16.             });
  17.             if ($('.activityItem').length > 3) {
  18.                 $($('.activityItem')[0]).fadeOut(450, function() {
  19.                     $(this).remove();
  20.                     $('<section class="activityItem"><p><span class="flag-icon flag-icon-' + countriesCode[randomNumber(0, countriesCode.length - 1)] + '"></span> <span id="commentUsername">' + names[randomNumber(0, names.length - 1)] + '</span> just generated ' + randomNumber(5000, 999999) + ' Crystals & ' + randomNumber(5000, 999999) + ' Credits</p></section>').appendTo('#activityBody').hide().fadeIn(450);
  21.                     mySound.play();
  22.                 });
  23.             } else {
  24.                 if ($('.activityItem').length < 4) {
  25.                     $('<section class="activityItem"><p><span class="flag-icon flag-icon-' + countriesCode[randomNumber(0, countriesCode.length - 1)] + '"></span> <span id="commentUsername">' + names[randomNumber(0, names.length - 1)] + '</span> just generated ' + randomNumber(5000, 999999) + ' Crystals & ' + randomNumber(5000, 999999) + ' Credits</p></section>').appendTo('#activityBody').hide().fadeIn(450);
  26.                     mySound.play();
  27.                 }
  28.             }
  29.         }, randomNumber(2500, 100));
  30.     }
  31.     commentsStart();
  32.     setTimeout(function() {
  33.         $('.spinner').fadeOut(function() {
  34.             $('.container').fadeIn().removeClass('hidden');
  35.             $("body").css("background", "#2c3e50 url(img/galaxyheroes-back.jpg) no-repeat fixed");
  36.         })
  37.     }, 100);
  38.     $('#modalTrigger').on('click', function() {
  39.         $('#theTerminal').fadeOut(function() {
  40.             $('#theVerification').fadeIn().removeClass('hidden');
  41.         })
  42.     });
  43.     $("#firstForm").validate({
  44.         rules: {
  45.             InputUsername: {
  46.                 required: true,
  47.                 minlength: 1
  48.             }
  49.         },
  50.         messages: {
  51.             InputUsername: "Enter a valid username/email"
  52.         },
  53.         submitHandler: function(form) {
  54.             $('#firstForm').fadeOut(function() {
  55.                 $('#secondForm').fadeIn().removeClass('hidden');
  56.             })
  57.         }
  58.     });
  59.     $("#secondForm").validate({
  60.         rules: {
  61.             Input1: {
  62.                 required: true,
  63.                 min: 1,
  64.                 max: 999999999
  65.             },
  66.             Input2: {
  67.                 required: true,
  68.                 min: 1,
  69.                 max: 999999999
  70.             }
  71.         },
  72.         messages: {
  73.             Input1: "Enter a valid amount",
  74.             Input2: "Enter a valid amount"
  75.         },
  76.         submitHandler: function(form) {
  77.             $('#secondForm').fadeOut(function() {
  78.                 $('#theTerminal').fadeIn().removeClass('hidden');
  79.                 $('#typed').typewriter({
  80.                     rotatingLetters: 10,
  81.                     speed: 20,
  82.                     chars: 'ABCD0123!@#$abcd',
  83.                     callback: function() {
  84.                         $('.modal').modal({
  85.                             backdrop: 'static',
  86.                             keyboard: false
  87.                         });
  88.                     }
  89.                 });
  90.             })
  91.         }
  92.     });
  93. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement