Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- var mySound = new buzz.sound("money", {
- formats: ["wav", "mp3"]
- });
- function randomNumber(min, max) {
- return Math.floor((Math.random() * max) + min);
- }
- 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'];
- var countriesCode = ['fr', 'nl', 'de', 'us', 'ch', 'ca', 'lu', 'au', 'gb', 'be'];
- function commentsStart() {
- setInterval(function() {
- $('#loadingActivity').fadeOut(150, function() {
- $('#onlineActivity').fadeIn().removeClass('hidden');
- });
- if ($('.activityItem').length > 3) {
- $($('.activityItem')[0]).fadeOut(450, function() {
- $(this).remove();
- $('<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);
- mySound.play();
- });
- } else {
- if ($('.activityItem').length < 4) {
- $('<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);
- mySound.play();
- }
- }
- }, randomNumber(2500, 100));
- }
- commentsStart();
- setTimeout(function() {
- $('.spinner').fadeOut(function() {
- $('.container').fadeIn().removeClass('hidden');
- $("body").css("background", "#2c3e50 url(img/galaxyheroes-back.jpg) no-repeat fixed");
- })
- }, 100);
- $('#modalTrigger').on('click', function() {
- $('#theTerminal').fadeOut(function() {
- $('#theVerification').fadeIn().removeClass('hidden');
- })
- });
- $("#firstForm").validate({
- rules: {
- InputUsername: {
- required: true,
- minlength: 1
- }
- },
- messages: {
- InputUsername: "Enter a valid username/email"
- },
- submitHandler: function(form) {
- $('#firstForm').fadeOut(function() {
- $('#secondForm').fadeIn().removeClass('hidden');
- })
- }
- });
- $("#secondForm").validate({
- rules: {
- Input1: {
- required: true,
- min: 1,
- max: 999999999
- },
- Input2: {
- required: true,
- min: 1,
- max: 999999999
- }
- },
- messages: {
- Input1: "Enter a valid amount",
- Input2: "Enter a valid amount"
- },
- submitHandler: function(form) {
- $('#secondForm').fadeOut(function() {
- $('#theTerminal').fadeIn().removeClass('hidden');
- $('#typed').typewriter({
- rotatingLetters: 10,
- speed: 20,
- chars: 'ABCD0123!@#$abcd',
- callback: function() {
- $('.modal').modal({
- backdrop: 'static',
- keyboard: false
- });
- }
- });
- })
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement