Comparing sensitive data, confidential files or internal emails?

Most legal and privacy policies prohibit uploading sensitive data online. Diffchecker Desktop ensures your confidential information never leaves your computer. Work offline and compare documents securely.

Untitled diff

Created Diff never expires
7 removals
585 lines
71 additions
647 lines
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<title>Pokemon Forever Pokeradar Modified</title>
<title>Pokemon Forever Pokeradar Modified</title>


<!-- CSS required for the counter -->
<!-- CSS required for the counter -->
<link href='http://fonts.googleapis.com/css?family=Ubuntu+Mono:700' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Ubuntu+Mono:700' rel='stylesheet' type='text/css'>
<style>
<style>
#version {
#version {
position: absolute;
position: absolute;
top: 135px;
top: 135px;
left: 120px;
left: 120px;
font-size: 0.6em;
font-size: 0.6em;
text-align: left;
text-align: left;
}
}
#charm {
#charm {
position: absolute;
position: absolute;
bottom: 65px;
bottom: 65px;
left: 120px;
left: 120px;
font-size: 0.6em;
font-size: 0.6em;
text-align: left;
text-align: left;
}
}
#mode {
#mode {
position: absolute;
position: absolute;
bottom: 65px;
bottom: 65px;
right: 235px;
right: 235px;
font-size: 0.6em;
font-size: 0.6em;
text-align: right;
text-align: right;
}
}
#broken {
#broken {
position: absolute;
position: absolute;
top: 184px;
top: 184px;
left: 125px;
left: 125px;
width: 230px;
width: 230px;
height: 80px;
height: 80px;
background-color: black;
background-color: black;
color: red;
color: red;
visibility: hidden;
visibility: hidden;
}
}
#counter {
#counter {
position: relative;
position: relative;
background: url(http://pokemonforever.com/images/counterbg2.png);
background: url(http://pokemonforever.com/images/counterbg2.png);
color: white;
color: white;
font-family: 'Ubuntu Mono';
font-family: 'Ubuntu Mono';
font-size: 1.5em;
font-size: 1.5em;
margin: 0 auto;
margin: 0 auto;
padding: 10px;
padding: 10px;
width: 580px;
width: 580px;
height: 330px;
height: 330px;
text-align: center;
text-align: center;
}
}
#chain {
#chain {
font-size: 1em;
font-size: 1em;
margin-top: 175px;
margin-top: 175px;
margin-left: -115px;
margin-left: -115px;
}
}
#forty {
#forty {
font-size: 0.7em;
font-size: 0.7em;
margin-left: -115px;
margin-left: -115px;
}
}


#instructions {
#instructions {
margin: -110px auto 0 auto;
margin: -110px auto 0 auto;
width: 500px;
width: 500px;
padding: 100px 15px 15px 15px;
padding: 100px 15px 15px 15px;
font-size: 0.8em;
font-size: 0.8em;
text-align: center;
text-align: center;
background: #666666;
background: #666666;
color: #ffffff;
color: #ffffff;
border: 1px solid #000000;
border: 1px solid #000000;
border-bottom-right-radius: 25px;
border-bottom-right-radius: 25px;
border-bottom-left-radius: 25px;
border-bottom-left-radius: 25px;
box-shadow: 0 0px 8px;
box-shadow: 0 0px 8px;
z-index: -1;
z-index: -1;
}
}


#instructions a, #instructions a:visited{
#instructions a, #instructions a:visited{
color: orange;
color: orange;
text-decoration: none;
text-decoration: none;
}
}


#instructions a:hover{
#instructions a:hover{
color: orange;
color: orange;
text-decoration: underline;
text-decoration: underline;
}
}


.keys {
.keys {
color: #000000;
color: #000000;
font-family: monospace;
font-family: monospace;
font-size: 1.2em;
font-size: 1.2em;
font-weight: bold;
font-weight: bold;
border: 1px solid black;
border: 1px solid black;
border-radius: 5px;
border-radius: 5px;
padding: 0 4px;
padding: 0 4px;
background-color: white;
background-color: white;
box-shadow: 0 1px 3px;
box-shadow: 0 1px 3px;
}
}
</style>
</style>


</head>
</head>


<body>
<body>
<div id="counter">
<div id="counter">
<img style="position: absolute; top: 0; left: 0; opacity: 0; width: 100%; height: 100%;" src="http://i.imgur.com/AeteHcm.png" usemap="#buttons">
<img style="position: absolute; top: 0; left: 0; opacity: 0; width: 100%; height: 100%;" src="http://i.imgur.com/AeteHcm.png" usemap="#buttons">
<div id="broken">CHAIN BROKEN!<br />:(</div>
<div id="broken">CHAIN BROKEN!<br />:(</div>
<div id="chain">ENCOUNTERS: &nbsp;0</div>
<div id="chain">ENCOUNTERS: &nbsp;0</div>
<div id="forty">ARE YOU READY?</div>
<div id="forty">ARE YOU READY?</div>
<div id="charm">SHINY CHARM: <span id="charm_status" style="color: red;">OFF</span></div>
<div id="charm">SHINY CHARM: <span id="charm_status" style="color: red;">OFF</span></div>
<div id="mode">DEXNAV MODE</div>
<div id="mode">DEXNAV MODE</div>
<div id="version">VERSION: ORAS</div>
<div id="version">VERSION: ORAS</div>
<map name="buttons">
<map name="buttons">
<area shape="circle" coords="486, 166, 24" alt="+" href="Javascript:count(1);">
<area shape="circle" coords="486, 166, 24" alt="+" href="Javascript:count(1);">
<area shape="circle" coords="440, 212, 24" alt="-" href="Javascript:count(-1);">
<area shape="circle" coords="440, 212, 24" alt="-" href="Javascript:count(-1);">
<area shape="circle" coords="543, 216, 24" alt="Reset" href="Javascript:count(0);">
<area shape="circle" coords="543, 216, 24" alt="Reset" href="Javascript:count(0);">
<area shape="circle" coords="498, 263, 24" alt="Fast Music" href="Javascript:toggleMusic();">
<area shape="circle" coords="498, 263, 24" alt="Fast Music" href="Javascript:toggleMusic();">
<area shape="rect" coords="125, 299, 223, 315" alt="Shiny Charm" href="Javascript:toggleCharm();">
<area shape="rect" coords="125, 299, 223, 315" alt="Shiny Charm" href="Javascript:toggleCharm();">
<area shape="rect" coords="258, 299, 356, 315" alt="Mode" href="Javascript:toggleMode();">
<area shape="rect" coords="258, 299, 356, 315" alt="Mode" href="Javascript:toggleMode();">
<area shape="rect" coords="125, 108, 223, 124" alt="Version" href="Javascript:toggleVersion();">
<area shape="rect" coords="125, 108, 223, 124" alt="Version" href="Javascript:toggleVersion();">
</map>
</map>
</div>
</div>


<script>
<script>
var chain = 0;
//constants containing the cookie names
var fastMusic = 0;
const CHAINC = "chain";
var shinyCharm = 0;
const FASTMUSICC = "fastMusic";
var chainBroken = 0;
const SHINYCHARMC = "shinyCharm";
var version = "ORAS";
const VERSIONC = "version";
var mode = "DEXNAV";
const MODEC = "mode";

//load the variables from the cookies if the respective cookie was set, use default values if not set
//we'll initialize the cookies later, if need be.
//also, since cookies get stored as string, we need to do some casting.
var chain = (getCookie(CHAINC) == "") ? 0 : Number(getCookie(CHAINC));
var fastMusic = (getCookie(FASTMUSICC) == "") ? 0 : Number(getCookie(FASTMUSICC)); //since booleans are very much like numbers in JS, this works.
var shinyCharm = (getCookie(SHINYCHARMC) == "") ? 0 : Number(getCookie(SHINYCHARMC));
var chainBroken = 0; //we don't need to store this with a cookie.
var version = (getCookie(VERSIONC) == "") ? "ORAS" : getCookie(VERSIONC);
var mode = (getCookie(MODEC) == "") ? "DEXNAV" : getCookie(MODEC);
var chances = [8192,7282,7282,7282,7282,6554,6554,6554,6554,5958,5958,5958,5461,5461,5041,5041,4681,4681,4369,4369,4096,3855,3641,3449,3277,3121,2979,2731,2521,2341,2185,1986,1771,1598,1394,1192,993,799,596,400,200]
var chances = [8192,7282,7282,7282,7282,6554,6554,6554,6554,5958,5958,5958,5461,5461,5041,5041,4681,4681,4369,4369,4096,3855,3641,3449,3277,3121,2979,2731,2521,2341,2185,1986,1771,1598,1394,1192,993,799,596,400,200]


initialize();

//after loading from the cookies, we need to update the respective elements
function initialize(){
//shiny charm
if (shinyCharm){
document.getElementById("charm_status").innerHTML = "ON";
document.getElementById("charm_status").style.color = "green";
} else {
document.getElementById("charm_status").innerHTML = "OFF";
document.getElementById("charm_status").style.color = "red";
}

//mode
document.getElementById("mode").innerHTML = mode + " MODE";

//version
document.getElementById("version").innerHTML = "VERSION: " + version;

//counter & text
update();

//we also need to initialize the cookies in case none have been set; overwriting them all every time the script is loaded should do.
setCookie(CHAINC, chain);
setCookie(FASTMUSICC, fastMusic);
setCookie(SHINYCHARMC, shinyCharm);
setCookie(VERSIONC, version);
setCookie(MODEC, mode);
}

// ******************************************************* \\
// ******************************************************* \\
// This function handles all changes to the current chain. \\
// This function handles all changes to the current chain. \\
// ******************************************************* \\
// ******************************************************* \\
function count(i){
function count(i){
if (i < 0){
if (i < 0){
if (chain > 0) chain--;
if (chain > 0) chain--;
} else if (i > 0){
} else if (i > 0){
chain++;
chain++;
} else {
} else {
chain = 0;
chain = 0;
chainBroken = 1;
chainBroken = 1;
setTimeout(function(){
setTimeout(function(){
document.getElementById("broken").style.visibility = "hidden";
document.getElementById("broken").style.visibility = "hidden";
},1000);
},1000);
}
}
setCookie(CHAINC, chain);
fastMusic = 0;
fastMusic = 0;
update();
update();
}
}


function toggleCharm(){
function toggleCharm(){
shinyCharm = shinyCharm ? 0 : 1;
shinyCharm = shinyCharm ? 0 : 1;
if (shinyCharm){
if (shinyCharm){
document.getElementById("charm_status").innerHTML = "ON";
document.getElementById("charm_status").innerHTML = "ON";
document.getElementById("charm_status").style.color = "green";
document.getElementById("charm_status").style.color = "green";
} else {
} else {
document.getElementById("charm_status").innerHTML = "OFF";
document.getElementById("charm_status").innerHTML = "OFF";
document.getElementById("charm_status").style.color = "red";
document.getElementById("charm_status").style.color = "red";
}
}
fastMusic = 0;
fastMusic = 0;
setCookie(SHINYCHARMC, shinyCharm);
update();
update();
}
}


function toggleMusic(){
function toggleMusic(){
if (mode === "POKERADAR") {
if (mode === "POKERADAR") {
fastMusic = fastMusic ? 0 : 1;
fastMusic = fastMusic ? 0 : 1;
document.getElementById("mode").innerHTML = "DANCE MODE";
document.getElementById("mode").innerHTML = "DANCE MODE";
setCookie(FASTMUSICC, fastMusic);
update();
update();
}
}
}
}


// Toggle the version of the game that the counter uses for its formulas. #2
// Toggle the version of the game that the counter uses for its formulae. #2
function toggleVersion(){
function toggleVersion(){
if (version === "ORAS"){
if (version === "ORAS"){
version = "XY";
version = "XY";
} else if (version === "XY"){
} else if (version === "XY"){
version = "DPP";
version = "DPP";
} else if (version === "DPP"){
} else if (version === "DPP"){
version = "ORAS";
version = "ORAS";
}
}
document.getElementById("version").innerHTML = "VERSION: " + version;
document.getElementById("version").innerHTML = "VERSION: " + version;
mode = "";
mode = "";
setCookie(VERSIONC, version);
fastMusic = 0;
fastMusic = 0;
toggleMode();
toggleMode();
}
}


function toggleMode(){
function toggleMode(){
if (version === "DPP"){
if (version === "DPP"){
if (mode === "POKERADAR"){
if (mode === "POKERADAR"){
mode = "MASUDA";
mode = "MASUDA";
} else if (mode === "MASUDA") {
} else if (mode === "MASUDA") {
mode = "SR";
mode = "SR";
} else {
} else {
mode = "POKERADAR";
mode = "POKERADAR";
}
}
} else if (version === "XY"){
} else if (version === "XY"){
if (mode === "POKERADAR") {
if (mode === "POKERADAR") {
mode = "FISHING";
mode = "FISHING";
} else if (mode === "FISHING") {
} else if (mode === "FISHING") {
mode = "FS";
mode = "FS";
} else if (mode === "FS"){
} else if (mode === "FS"){
mode = "MASUDA"
mode = "MASUDA"
} else if (mode === "MASUDA"){
} else if (mode === "MASUDA"){
mode = "HORDE"
mode = "HORDE"
} else if (mode === "HORDE"){
} else if (mode === "HORDE"){
mode = "SR";
mode = "SR";
} else {
} else {
mode = "POKERADAR";
mode = "POKERADAR";
}
}
} else if (version === "ORAS") {
} else if (version === "ORAS") {
if (mode === "DEXNAV") {
if (mode === "DEXNAV") {
mode = "FISHING";
mode = "FISHING";
} else if (mode === "FISHING") {
} else if (mode === "FISHING") {
mode = "MASUDA";
mode = "MASUDA";
} else if (mode === "MASUDA"){
} else if (mode === "MASUDA"){
mode = "HORDE"
mode = "HORDE"
} else if (mode === "HORDE"){
} else if (mode === "HORDE"){
mode = "SR";
mode = "SR";
} else {
} else {
mode = "DEXNAV";
mode = "DEXNAV";
}
}
}
}

setCookie(MODEC, mode);
document.getElementById("mode").innerHTML = mode + " MODE";
document.getElementById("mode").innerHTML = mode + " MODE";
update();
update();
}
}


// ************************************************************************** \\
// ************************************************************************** \\
// This entire function makes the calculations required to update the text \\
// This entire function makes the calculations required to update the text \\
// It also actually updates the text when done. \\
// It also actually updates the text when done. \\
// ************************************************************************** \\
// ************************************************************************** \\
function update(){
function update(){
if (chain < 10){
if (chain < 10){
document.getElementById("chain").innerHTML = "CURRENT CHAIN: &nbsp;" + chain;
document.getElementById("chain").innerHTML = "CURRENT CHAIN: &nbsp;" + chain;
} else {
} else {
document.getElementById("chain").innerHTML = "CURRENT CHAIN: " + chain;
document.getElementById("chain").innerHTML = "CURRENT CHAIN: " + chain;
}
}
if (chainBroken){
if (chainBroken){
document.getElementById("broken").style.visibility = "visible";
document.getElementById("broken").style.visibility = "visible";
chainBroken = 0;
chainBroken = 0;
} else {
} else {
document.getElementById("broken").style.visibility = "hidden";
document.getElementById("broken").style.visibility = "hidden";
}
}
if (mode === "POKERADAR"){
if (mode === "POKERADAR"){
// Setting up the formula based on what version was selected.
// Setting up the formula based on what version was selected.
switch (version){
switch (version){
case 'DPP':
case 'DPP':
/* The original formula for DPP
/* The original formula for DPP
nchance = (65535 / ((shinyCharm * 2 + 1)*(65535 / (8200 - chain * 200)).toFixed(0))).toFixed(0);
nchance = (65535 / ((shinyCharm * 2 + 1)*(65535 / (8200 - chain * 200)).toFixed(0))).toFixed(0);
if (nchance < 200) nchance = 200;
if (nchance < 200) nchance = 200;
*/
*/
if (chain > 40){
if (chain > 40){
nchance = 200;
nchance = 200;
} else {
} else {
nchance = (65535 / ((shinyCharm * 2 + 1)*(65535 / (8200 - chain * 200)).toFixed(0))).toFixed(0);
nchance = (65535 / ((shinyCharm * 2 + 1)*(65535 / (8200 - chain * 200)).toFixed(0))).toFixed(0);
if (nchance < 200) nchance = 200;
if (nchance < 200) nchance = 200;
}
}
break;
break;
case 'ORAS':
case 'ORAS':
default:
default:
/* My modified shiny chance formula for XY
/* My modified shiny chance formula for XY
nchance = (65535 / ((shinyCharm * 2 + 1)*(65535 / (8200 - (chain / 2 + 20) * 200)).toFixed(0))).toFixed(0);
nchance = (65535 / ((shinyCharm * 2 + 1)*(65535 / (8200 - (chain / 2 + 20) * 200)).toFixed(0))).toFixed(0);
if (nchance < 200) nchance = 200;
if (nchance < 200) nchance = 200;


Double Formula
Double Formula
nchance = (chances[chain] / 2).toFixed(0);
nchance = (chances[chain] / 2).toFixed(0);
*/
*/
if (chain > 40){
if (chain > 40){
nchance = 200;
nchance = 200;
} else {
} else {
nchance = (65535 / ((shinyCharm * 2 + 1)*(65535 / (8200 - (chain / 2 + 20) * 200)).toFixed(0))).toFixed(0);
nchance = (65535 / ((shinyCharm * 2 + 1)*(65535 / (8200 - (chain / 2 + 20) * 200)).toFixed(0))).toFixed(0);
if (nchance < 200) nchance = 200;
if (nchance < 200) nchance = 200;
}
}


break;
break;
}
}
if (fastMusic) {
if (fastMusic) {
document.getElementById("chain").innerHTML = "<span id='highlight'>FAST MUSIC!</span>";
document.getElementById("chain").innerHTML = "<span id='highlight'>FAST MUSIC!</span>";
document.getElementById("forty").innerHTML = "1/200 CHANCE OF SHINY!";
document.getElementById("forty").innerHTML = "1/200 CHANCE OF SHINY!";
starteffect();
starteffect();
} else if (chain >= 40) {
} else if (chain >= 40) {
document.getElementById("forty").innerHTML = "CHAIN MAXED! (1/200)";
document.getElementById("forty").innerHTML = "CHAIN MAXED! (1/200)";
} else {
} else {
document.getElementById("forty").innerHTML = "1/" + nchance + " CHANCE OF SHINY!";
document.getElementById("forty").innerHTML = "1/" + nchance + " CHANCE OF SHINY!";
if (typeof flash != 'undefined') stopeffect();
if (typeof flash != 'undefined') stopeffect();
}
}
} else if (mode === "FISHING"){
} else if (mode === "FISHING"){
if (chain < 10){
if (chain < 10){
fishChance = "NOT HAPPENING";
fishChance = "NOT HAPPENING";
} else if (chain < 20) {
} else if (chain < 20) {
fishChance = "NOT LIKELY";
fishChance = "NOT LIKELY";
} else if (chain < 30) {
} else if (chain < 30) {
fishChance = "POSSIBLE";
fishChance = "POSSIBLE";
} else if (chain < 40) {
} else if (chain < 40) {
fishChance = "LIKELY!";
fishChance = "LIKELY!";
} else if (chain < 50) {
} else if (chain < 50) {
fishChance = "HIGHLY LIKELY!";
fishChance = "HIGHLY LIKELY!";
} else if (chain < 60) {
} else if (chain < 60) {
fishChance = "SUPER LIKELY!";
fishChance = "SUPER LIKELY!";
} else if (chain < 100) {
} else if (chain < 100) {
fishChance = "ALMOST GUARANTEED!";
fishChance = "ALMOST GUARANTEED!";
} else {
} else {
fishChance = "YOU SHOULD HAVE ONE BY NOW";
fishChance = "YOU SHOULD HAVE ONE BY NOW";
}
}
document.getElementById("forty").innerHTML = fishChance;
document.getElementById("forty").innerHTML = fishChance;
} else if (mode === "FS"){
} else if (mode === "FS"){
if (chain < 10){
if (chain < 10){
document.getElementById("chain").innerHTML = "FRIEND SAFARI: &nbsp;" + chain;
document.getElementById("chain").innerHTML = "FRIEND SAFARI: &nbsp;" + chain;
} else {
} else {
document.getElementById("chain").innerHTML = "FRIEND SAFARI: " + chain;
document.getElementById("chain").innerHTML = "FRIEND SAFARI: " + chain;
}
}
document.getElementById("forty").innerHTML = "1/512 CHANCE OF SHINY!";
document.getElementById("forty").innerHTML = "1/512 CHANCE OF SHINY!";
} else if (mode === "MASUDA"){
} else if (mode === "MASUDA"){
if (chain < 10){
if (chain < 10){
document.getElementById("chain").innerHTML = "EGGS HATCHED: &nbsp;" + chain;
document.getElementById("chain").innerHTML = "EGGS HATCHED: &nbsp;" + chain;
} else {
} else {
document.getElementById("chain").innerHTML = "EGGS HATCHED: " + chain;
document.getElementById("chain").innerHTML = "EGGS HATCHED: " + chain;
}
}
if (version === "DPP"){
if (version === "DPP"){
var forty = shinyCharm ? "1/1024" : "1/1366";
var forty = shinyCharm ? "1/1024" : "1/1366";
} else {
} else {
var forty = shinyCharm ? "1/527" : "1/683";
var forty = shinyCharm ? "1/527" : "1/683";
}
}
document.getElementById("forty").innerHTML = forty + " CHANCE OF SHINY!";
document.getElementById("forty").innerHTML = forty + " CHANCE OF SHINY!";
} else if (mode === "HORDE"){
} else if (mode === "HORDE"){
if (chain < 10){
if (chain < 10){
document.getElementById("chain").innerHTML = "HORDE ENCOUNTERS: &nbsp;" + chain;
document.getElementById("chain").innerHTML = "HORDE ENCOUNTERS: &nbsp;" + chain;
} else {
} else {
document.getElementById("chain").innerHTML = "HORDE ENCOUNTERS: " + chain;
document.getElementById("chain").innerHTML = "HORDE ENCOUNTERS: " + chain;
}
}
var forty = shinyCharm ? "1/273" : "1/819";
var forty = shinyCharm ? "1/273" : "1/819";
document.getElementById("forty").innerHTML = forty + " CHANCE OF SHINY!";
document.getElementById("forty").innerHTML = forty + " CHANCE OF SHINY!";
} else if (mode === "DEXNAV"){
} else if (mode === "DEXNAV"){
switch (chain){
switch (chain){
case 0:
case 0:
dchance = "ARE YOU READY?";
dchance = "ARE YOU READY?";
break;
break;
case 1:
case 1:
dchance = "FIRST BLOOD!";
dchance = "FIRST BLOOD!";
break;
break;
case 2:
case 2:
dchance = "DOUBLE KILL!";
dchance = "DOUBLE KILL!";
break;
break;
case 3:
case 3:
dchance = "MULTIKILL!";
dchance = "MULTIKILL!";
break;
break;
case 4:
case 4:
dchance = "KILLTACULAR!";
dchance = "KILLTACULAR!";
break;
break;
case 10:
case 10:
case 14:
case 14:
dchance = "DOING WORK";
dchance = "DOING WORK";
break;
break;
case 12:
case 12:
dchance = "A DOZEN DOWN";
dchance = "A DOZEN DOWN";
break;
break;
case 13:
case 13:
dchance = "BAKER'S DOZEN";
dchance = "BAKER'S DOZEN";
break;
break;
case 20:
case 20:
dchance = "YOU'RE ON YOUR WAY";
dchance = "YOU'RE ON YOUR WAY";
break;
break;
case 30:
case 30:
dchance = "GONNA GO FAR, KID";
dchance = "GONNA GO FAR, KID";
break;
break;
case 40:
case 40:
case 43:
case 43:
dchance = "CHAIN MAXED! (JK)";
dchance = "CHAIN MAXED! (JK)";
break;
break;
case 42:
case 42:
dchance = "MEANING OF LIFE CONFIRMED";
dchance = "MEANING OF LIFE CONFIRMED";
break;
break;
case 50:
case 50:
dchance = "MAYBE...";
dchance = "MAYBE...";
break;
break;
case 51:
case 51:
dchance = "ALL IT TAKES IS...";
dchance = "ALL IT TAKES IS...";
break;
break;
case 52:
case 52:
dchance = "A BASEBALL BAT";
dchance = "A BASEBALL BAT";
break;
break;
case 53:
case 53:
dchance = "ACTUALLY, MAYBE NOT";
dchance = "ACTUALLY, MAYBE NOT";
break;
break;
case 54:
case 54:
dchance = "DO DE DO DE DOO~";
dchance = "DO DE DO DE DOO~";
break;
break;
case 60:
case 60:
dchance = "YOU'RE GETTING CLOSER";
dchance = "YOU'RE GETTING CLOSER";
break;
break;
case 100:
case 100:
dchance = "DID YOU SAY 'PLEASE?'";
dchance = "DID YOU SAY 'PLEASE?'";
break;
break;
case 120:
case 120:
dchance = "TRY ASKING NICELY";
dchance = "TRY ASKING NICELY";
break;
break;
case 150:
case 150:
dchance = "150/3 = 50...";
dchance = "150/3 = 50...";
break;
break;
case 151:
case 151:
dchance = "CHAIN 50 = \"MAYBE...\"";
dchance = "CHAIN 50 = \"MAYBE...\"";
break;
break;
case 152:
case 152:
dchance = "HALF LIFE 3 MAYBE CONFIRMED";
dchance = "HALF LIFE 3 MAYBE CONFIRMED";
break;
break;
case 153:
case 153:
dchance = "NINTENDO PLS";
dchance = "NINTENDO PLS";
break;
break;
case 170:
case 170:
dchance = "TIME TO PRAY TO GOOMY";
dchance = "TIME TO PRAY TO GOOMY";
break;
break;
case 180:
case 180:
dchance = "GOOMY IS JUST WARMING UP";
dchance = "GOOMY IS JUST WARMING UP";
break;
break;
case 190:
case 190:
dchance = "GOOMY HAS FORSAKEN US!";
dchance = "GOOMY HAS FORSAKEN US!";
break;
break;
case 200:
case 200:
dchance = "HOW MANY MUST DIE?!";
dchance = "HOW MANY MUST DIE?!";
break;
break;
case 210:
case 210:
dchance = "MAYBE THIS ISN'T WORTH IT";
dchance = "MAYBE THIS ISN'T WORTH IT";
break;
break;
case 225:
case 225:
dchance = "I FEEL LIKE ONE'S COMING";
dchance = "I FEEL LIKE ONE'S COMING";
break;
break;
case 250:
case 250:
dchance = "ANY TIME NOW...";
dchance = "ANY TIME NOW...";
break;
break;
case 275:
case 275:
dchance = "I BELIEVE IN YOU";
dchance = "I BELIEVE IN YOU";
break;
break;
case 300:
case 300:
dchance = "YOU SHOULD TRY A LUCK POTION";
dchance = "YOU SHOULD TRY A LUCK POTION";
break;
break;
case 325:
case 325:
dchance = "BRB. ON MY BREAK";
dchance = "BRB. ON MY BREAK";
break;
break;
case 350:
case 350:
dchance = "YOU SHOULD HAVE ONE BY NOW";
dchance = "YOU SHOULD HAVE ONE BY NOW";
break;
break;
case 375:
case 375:
dchance = "I JUST FOUND ONE! DID YOU?";
dchance = "I JUST FOUND ONE! DID YOU?";
break;
break;
case 400:
case 400:
case 421:
case 421:
dchance = "I'M OUT OF THINGS TO SAY";
dchance = "I'M OUT OF THINGS TO SAY";
break;
break;
case 420:
case 420:
dchance = "BLAZE IT!";
dchance = "BLAZE IT!";
break;
break;
default:
default:
break;
break;
}
}
document.getElementById("forty").innerHTML = dchance;
document.getElementById("forty").innerHTML = dchance;
if (chain < 10){
if (chain < 10){
document.getElementById("chain").innerHTML = "ENCOUNTERS: &nbsp;" + chain;
document.getElementById("chain").innerHTML = "ENCOUNTERS: &nbsp;" + chain;
} else {
} else {
document.getElementById("chain").innerHTML = "ENCOUNTERS: " + chain;
document.getElementById("chain").innerHTML = "ENCOUNTERS: " + chain;
}
}
} else if (mode === "SR") {
} else if (mode === "SR") {
if (chain < 10){
if (chain < 10){
document.getElementById("chain").innerHTML = "SOFT RESETS: &nbsp;" + chain;
document.getElementById("chain").innerHTML = "SOFT RESETS: &nbsp;" + chain;
} else {
} else {
document.getElementById("chain").innerHTML = "SOFT RESETS: " + chain;
document.getElementById("chain").innerHTML = "SOFT RESETS: " + chain;
}
}
if (version === "DPP"){
if (version === "DPP"){
nchance = shinyCharm ? 2731 : 8192;
nchance = shinyCharm ? 2731 : 8192;
} else {
} else {
nchance = shinyCharm ? 1365 : 4096;
nchance = shinyCharm ? 1365 : 4096;
}
}
document.getElementById("forty").innerHTML = "1/" + nchance + " CHANCE OF SHINY!";
document.getElementById("forty").innerHTML = "1/" + nchance + " CHANCE OF SHINY!";
} else {
} else {
document.getElementById("chain").innerHTML = "ERROR:";
document.getElementById("chain").innerHTML = "ERROR:";
document.getElementById("forty").innerHTML = "Invalid mode.";
document.getElementById("forty").innerHTML = "Invalid mode.";


}
}
}
}


// ******************************************* \\
// ******************************************* \\
// This function handles all keyboard controls \\
// This function handles all keyboard controls \\
// ******************************************* \\
// ******************************************* \\


function counter(e) {
function counter(e) {
var unicode = e.keyCode ? e.keyCode : e.charCode;
var unicode = e.keyCode ? e.keyCode : e.charCode;
switch (unicode) {
switch (unicode) {
case 43:
case 43:
case 61:
case 61:
case 107:
case 107:
case 187:
case 187:
case 32:
case 32:
// if + is pressed, add to chain
// if + is pressed, add to chain
count(1);
count(1);
e.preventDefault();
e.preventDefault();
break;
break;
case 45:
case 45:
case 173:
case 173:
case 109:
case 109:
case 189:
case 189:
// if either - is press, subtract from chain
// if either - is press, subtract from chain
count(-1);
count(-1);
break;
break;
case 82:
case 82:
// if R is pressed, reset chain
// if R is pressed, reset chain
count(0);
count(0);
break;
break;
case 70:
case 70:
// if F is pressed, toggle FASTMUSIC!
// if F is pressed, toggle FASTMUSIC!
toggleMusic();
toggleMusic();
break;
break;
default:
default:
fastMusic = 0;
fastMusic = 0;
update();
update();
break;
break;
}
}
}
}


// When a key is pressed, run the function to handle it.
// When a key is pressed, run the function to handle it.
document.onkeydown = counter;
document.onkeydown = counter;


//Function to retrieve a cookie by name, taken from http://www.w3schools.com/js/js_cookies.asp
function getCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for(var i=0; i<ca.length; i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1);
if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
}
return "";
}


//Function to set a cookie, give the name and value; from http://www.w3schools.com/js/js_cookies.asp
function setCookie(cname, cvalue) {
var d = new Date();
d.setTime(d.getTime() + (1000*24*60*60*1000)); //retained for 1000 days
var expires = "expires="+d.toUTCString();
document.cookie = cname + "=" + cvalue;
}
// ******************************* \\
// ******************************* \\
// CODE BELOW IS FOR THE FONT ONLY \\
// CODE BELOW IS FOR THE FONT ONLY \\
// ******************************* \\
// ******************************* \\


/*
/*
RAINBOW TEXT Script by Matt Hedgecoe (c) 2002
RAINBOW TEXT Script by Matt Hedgecoe (c) 2002
Featured on JavaScript Kit
Featured on JavaScript Kit
For this script, visit http://www.javascriptkit.com
For this script, visit http://www.javascriptkit.com
Edited and repurposed by Jeff Delgado
Edited and repurposed by Jeff Delgado
*/
*/


var text="RAINBOW TEXT"; // YOUR TEXT
var text="RAINBOW TEXT"; // YOUR TEXT
var speed=20; // SPEED OF FADE
var speed=20; // SPEED OF FADE


var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0");
var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0");
var r=1;
var r=1;
var g=1;
var g=1;
var b=1;
var b=1;
var seq=1;
var seq=1;
function changetext(){
function changetext(){
rainbow="#"+hex[r]+hex[g]+hex[b];
rainbow="#"+hex[r]+hex[g]+hex[b];
document.getElementById("highlight").style.color=rainbow;
document.getElementById("highlight").style.color=rainbow;
}
}
function change(){
function change(){
if (seq==6){
if (seq==6){
b--;
b--;
if (b===0) seq=1;
if (b===0) seq=1;
}
}
if (seq==5){
if (seq==5){
r++;
r++;
if (r==12) seq=6;
if (r==12) seq=6;
}
}
if (seq==4){
if (seq==4){
g--;
g--;
if (g===0) seq=5;
if (g===0) seq=5;
}
}
if (seq==3){
if (seq==3){
b++;
b++;
if (b==12) seq=4;
if (b==12) seq=4;
}
}
if (seq==2){
if (seq==2){
r--;
r--;
if (r===0) seq=3;
if (r===0) seq=3;
}
}
if (seq==1){
if (seq==1){
g++;
g++;
if (g==12) seq=2;
if (g==12) seq=2;
}
}
changetext();
changetext();
}
}
function starteffect(){
function starteffect(){
flash=setInterval(change,speed);
flash=setInterval(change,speed);
}
}
function stopeffect(){
function stopeffect(){
clearInterval(flash);
clearInterval(flash);
document.getElementById("mode").innerHTML = mode + " MODE";
document.getElementById("mode").innerHTML = mode + " MODE";
}
}
</script>
</script>
</body>
</body>
</html>
</html>