blob: 355ffa3d96b1c4ac31a066a1b070f43237f351ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
console.log("Type \"document.cookie=1000000\" to cheat cookies.");
console.log("Now I messed you the whole fun, didn't I?");
var messages=[];
var stats=[];
var statupdates=[];
var cps=0;
updateCps();
if(!parseInt(document.cookie)){
document.cookie=0;
}
setTimeout(updateDisp,100,parseInt(document.cookie));
function clicked(){
var cookies=parseInt(document.cookie);
cookies++;
cps++;
document.cookie=cookies;
updateDisp(cookies);
}
function updateDisp(cookies){
document.getElementsByName('disp')[0].innerHTML=document.cookie.split(';')[0];
if(messages[parseInt(document.cookie)]){
document.getElementById('messages').innerHTML=messages[parseInt(document.cookie)];
anim();
}
var stat=stats[statupdates.lastIndexOf(true,cookies)];
document.getElementById('playerinfo').style.backgroundColor=stat.color;
document.getElementById('playerinfo').innerHTML=stat.name;
if(stat.name==="LION KING"){
document.getElementById('playerinfo').style.color='white';
}
}
var theCookie=document.getElementById('cookie');
function down(){
theCookie.style.width="180px";
theCookie.style.height="180px";
theCookie.style.top="10px";
}
function up(){
theCookie.style.width="200px";
theCookie.style.height="200px";
theCookie.style.top="0px";
}
function anim(){
var cont=true;
var fs=parseInt(document.getElementById('messages').style.top.replace(/px/,''));
document.getElementById('messages').style.top=fs+5+"px";
if(fs>=100){
document.getElementById('messages').style.opacity-=0.01;
}
if(fs===600){
document.getElementById('messages').innerHTML="";
document.getElementById('messages').style.top="40px";
document.getElementById('messages').style.opacity=1;
cont=false;
}
if(cont){
setTimeout(anim,20);
}
}
function updateCps(){
document.getElementsByName('freqdis')[0].innerHTML=cps;
switch(cps){
case(0):{col="#1000f0";break;}
case(1):{col="#3000d0";break;}
case(2):{col="#5000a0";break;}
case(3):{col="#700090";break;}
case(4):{col="#900070";break;}
case(5):{col="#a00050";break;}
case(6):{col="#d00030";break;}
case(7):{col="#f00010";break;}
default:{col="#f00000";break;}
}
document.getElementById('freq').style.backgroundColor=col;
cps=0;
setTimeout(updateCps,1000)
}
|