SHARE
TWEET

Logowanie JavaScript

vorex Oct 12th, 2017 (edited) 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.onload = function()
  2. {
  3.     var openMenu,closeMenu,mobileMenu,loginOn,code,codeGen;
  4.     openMenu = document.getElementById('openMenu');
  5.     closeMenu = document.getElementById('closeMenu');
  6.     mobileMenu = document.getElementById('mobileMenu');
  7.     loginOn = document.getElementById('loginOn');
  8.     code = document.getElementById('code');
  9.     codeGen = document.getElementById('codeGen');
  10.     var table = ["81231","12341","43211","36530","24877","24106","30393","38375","46861","25122","10049","31602","36273","40952","46320","40428","19844","10572","47741","11614","24526","48254","13840","12681","46762","16544","15111","13717","13438","45403","29734","47891","14442","47886","36695","31635","29465","27145","10583","43037","43823","35978","38981","32664","49463","22484","25381","23589","12028","41340","42677","30256","30650","46260","41749","11987","42383","21327","40072","15549","30823","44680","25206","22002","34362","40895","19718","35761","35953","29646","49265","18868","24296","24197","20330","28529","39294","10431","26947","29688","49841","14943","48773","24297","43994","47501","49264","44382","20389","46529","36910","30166","17122","18833","22160","48930","16208","19153","44332","33115","19943","25539","18837","13824","28816","41561","26037","29074","18653","40354","11481","22047","37337","41531","21020","19129","32949","23021","21881","29447","49903","49607","22346","16753","30842","29292","18485","14641","25540","31410","22643","48373","32411","15467","40880","40986","25007","48849","45554","34667","49663","44291","48186","10875","46349","45977","20312","37133","10447","38267","44116","13814","15166","14304"];
  11.     //Otwieranie mobile menu
  12.     openMenu.addEventListener('click', function()
  13.     {
  14.         mobileMenu.style.display = "block";
  15.     });
  16.     //Zamykanie mobile menu
  17.     closeMenu.addEventListener('click', function()
  18.     {
  19.         mobileMenu.style.display = "none";
  20.     });
  21.     //Logowanie
  22.     loginOn.addEventListener('click', function(){
  23.         for(var i=0; i<table.length; i++)
  24.         {
  25.             if(code.value === table[i])
  26.             {
  27.                 location.replace('premiumPlay.html');
  28.             }
  29.             else if(code.value!="")
  30.             {
  31.                 setTimeout(function(){
  32.                 document.getElementById('badPass').style.display = "block";}, 1);
  33.                 setTimeout(function(){
  34.                 document.getElementById('badPass').style.display = "none";}, 1300);
  35.             }
  36.         }
  37.     });
  38. };
RAW Paste Data
Pastebin PRO Autumn Special!
Get 40% OFF on Pastebin PRO accounts!
Top