Diff
checker
텍스트
텍스트
이미지
문서
Excel
폴더
Legal
Enterprise
데스크톱
요금제
로그인
데스크톱 앱 다운로드
텍스트 비교
두 텍스트 파일의 차이점을 찾아보세요
도구
기록
표시
레이아웃
나란히 보기
합쳐 보기
실시간 편집
공백 변경 숨기기
변경 없는 행 숨기기
줄바꿈 비활성화
비교 단위
스마트
구문
없음
모양 변경
처리
제외
텍스트 변환
첫 변경으로
수정
Diffchecker Desktop
가장 안전하게 Diffchecker를 사용하는 방법. 데스크톱 앱을 사용하면 비교 데이터가 외부로 전송되지 않습니다!
데스크톱 앱 받기
Untitled diff
생성일
11년 전
비교 결과 만료 없음
초기화
내보내기
공유
설명
5 삭제
행
총
삭제
글자
총
삭제
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
585 행
복사
73 추가
행
총
추가
글자
총
추가
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
647 행
복사
<!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>
저장된 비교 결과
원본
파일 열기
<!DOCTYPE html> <html> <head> <title>Pokemon Forever Pokeradar Modified</title> <!-- CSS required for the counter --> <link href='http://fonts.googleapis.com/css?family=Ubuntu+Mono:700' rel='stylesheet' type='text/css'> <style> #version { position: absolute; top: 135px; left: 120px; font-size: 0.6em; text-align: left; } #charm { position: absolute; bottom: 65px; left: 120px; font-size: 0.6em; text-align: left; } #mode { position: absolute; bottom: 65px; right: 235px; font-size: 0.6em; text-align: right; } #broken { position: absolute; top: 184px; left: 125px; width: 230px; height: 80px; background-color: black; color: red; visibility: hidden; } #counter { position: relative; background: url(http://pokemonforever.com/images/counterbg2.png); color: white; font-family: 'Ubuntu Mono'; font-size: 1.5em; margin: 0 auto; padding: 10px; width: 580px; height: 330px; text-align: center; } #chain { font-size: 1em; margin-top: 175px; margin-left: -115px; } #forty { font-size: 0.7em; margin-left: -115px; } #instructions { margin: -110px auto 0 auto; width: 500px; padding: 100px 15px 15px 15px; font-size: 0.8em; text-align: center; background: #666666; color: #ffffff; border: 1px solid #000000; border-bottom-right-radius: 25px; border-bottom-left-radius: 25px; box-shadow: 0 0px 8px; z-index: -1; } #instructions a, #instructions a:visited{ color: orange; text-decoration: none; } #instructions a:hover{ color: orange; text-decoration: underline; } .keys { color: #000000; font-family: monospace; font-size: 1.2em; font-weight: bold; border: 1px solid black; border-radius: 5px; padding: 0 4px; background-color: white; box-shadow: 0 1px 3px; } </style> </head> <body> <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"> <div id="broken">CHAIN BROKEN!<br />:(</div> <div id="chain">ENCOUNTERS: 0</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="mode">DEXNAV MODE</div> <div id="version">VERSION: ORAS</div> <map name="buttons"> <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="543, 216, 24" alt="Reset" href="Javascript:count(0);"> <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="258, 299, 356, 315" alt="Mode" href="Javascript:toggleMode();"> <area shape="rect" coords="125, 108, 223, 124" alt="Version" href="Javascript:toggleVersion();"> </map> </div> <script> var chain = 0; var fastMusic = 0; var shinyCharm = 0; var chainBroken = 0; var version = "ORAS"; var mode = "DEXNAV"; 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] // ******************************************************* \\ // This function handles all changes to the current chain. \\ // ******************************************************* \\ function count(i){ if (i < 0){ if (chain > 0) chain--; } else if (i > 0){ chain++; } else { chain = 0; chainBroken = 1; setTimeout(function(){ document.getElementById("broken").style.visibility = "hidden"; },1000); } fastMusic = 0; update(); } function toggleCharm(){ shinyCharm = shinyCharm ? 0 : 1; 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"; } fastMusic = 0; update(); } function toggleMusic(){ if (mode === "POKERADAR") { fastMusic = fastMusic ? 0 : 1; document.getElementById("mode").innerHTML = "DANCE MODE"; update(); } } // Toggle the version of the game that the counter uses for its formulas. #2 function toggleVersion(){ if (version === "ORAS"){ version = "XY"; } else if (version === "XY"){ version = "DPP"; } else if (version === "DPP"){ version = "ORAS"; } document.getElementById("version").innerHTML = "VERSION: " + version; mode = ""; fastMusic = 0; toggleMode(); } function toggleMode(){ if (version === "DPP"){ if (mode === "POKERADAR"){ mode = "MASUDA"; } else if (mode === "MASUDA") { mode = "SR"; } else { mode = "POKERADAR"; } } else if (version === "XY"){ if (mode === "POKERADAR") { mode = "FISHING"; } else if (mode === "FISHING") { mode = "FS"; } else if (mode === "FS"){ mode = "MASUDA" } else if (mode === "MASUDA"){ mode = "HORDE" } else if (mode === "HORDE"){ mode = "SR"; } else { mode = "POKERADAR"; } } else if (version === "ORAS") { if (mode === "DEXNAV") { mode = "FISHING"; } else if (mode === "FISHING") { mode = "MASUDA"; } else if (mode === "MASUDA"){ mode = "HORDE" } else if (mode === "HORDE"){ mode = "SR"; } else { mode = "DEXNAV"; } } document.getElementById("mode").innerHTML = mode + " MODE"; update(); } // ************************************************************************** \\ // This entire function makes the calculations required to update the text \\ // It also actually updates the text when done. \\ // ************************************************************************** \\ function update(){ if (chain < 10){ document.getElementById("chain").innerHTML = "CURRENT CHAIN: " + chain; } else { document.getElementById("chain").innerHTML = "CURRENT CHAIN: " + chain; } if (chainBroken){ document.getElementById("broken").style.visibility = "visible"; chainBroken = 0; } else { document.getElementById("broken").style.visibility = "hidden"; } if (mode === "POKERADAR"){ // Setting up the formula based on what version was selected. switch (version){ case 'DPP': /* The original formula for DPP nchance = (65535 / ((shinyCharm * 2 + 1)*(65535 / (8200 - chain * 200)).toFixed(0))).toFixed(0); if (nchance < 200) nchance = 200; */ if (chain > 40){ nchance = 200; } else { nchance = (65535 / ((shinyCharm * 2 + 1)*(65535 / (8200 - chain * 200)).toFixed(0))).toFixed(0); if (nchance < 200) nchance = 200; } break; case 'ORAS': default: /* My modified shiny chance formula for XY nchance = (65535 / ((shinyCharm * 2 + 1)*(65535 / (8200 - (chain / 2 + 20) * 200)).toFixed(0))).toFixed(0); if (nchance < 200) nchance = 200; Double Formula nchance = (chances[chain] / 2).toFixed(0); */ if (chain > 40){ nchance = 200; } else { nchance = (65535 / ((shinyCharm * 2 + 1)*(65535 / (8200 - (chain / 2 + 20) * 200)).toFixed(0))).toFixed(0); if (nchance < 200) nchance = 200; } break; } if (fastMusic) { document.getElementById("chain").innerHTML = "<span id='highlight'>FAST MUSIC!</span>"; document.getElementById("forty").innerHTML = "1/200 CHANCE OF SHINY!"; starteffect(); } else if (chain >= 40) { document.getElementById("forty").innerHTML = "CHAIN MAXED! (1/200)"; } else { document.getElementById("forty").innerHTML = "1/" + nchance + " CHANCE OF SHINY!"; if (typeof flash != 'undefined') stopeffect(); } } else if (mode === "FISHING"){ if (chain < 10){ fishChance = "NOT HAPPENING"; } else if (chain < 20) { fishChance = "NOT LIKELY"; } else if (chain < 30) { fishChance = "POSSIBLE"; } else if (chain < 40) { fishChance = "LIKELY!"; } else if (chain < 50) { fishChance = "HIGHLY LIKELY!"; } else if (chain < 60) { fishChance = "SUPER LIKELY!"; } else if (chain < 100) { fishChance = "ALMOST GUARANTEED!"; } else { fishChance = "YOU SHOULD HAVE ONE BY NOW"; } document.getElementById("forty").innerHTML = fishChance; } else if (mode === "FS"){ if (chain < 10){ document.getElementById("chain").innerHTML = "FRIEND SAFARI: " + chain; } else { document.getElementById("chain").innerHTML = "FRIEND SAFARI: " + chain; } document.getElementById("forty").innerHTML = "1/512 CHANCE OF SHINY!"; } else if (mode === "MASUDA"){ if (chain < 10){ document.getElementById("chain").innerHTML = "EGGS HATCHED: " + chain; } else { document.getElementById("chain").innerHTML = "EGGS HATCHED: " + chain; } if (version === "DPP"){ var forty = shinyCharm ? "1/1024" : "1/1366"; } else { var forty = shinyCharm ? "1/527" : "1/683"; } document.getElementById("forty").innerHTML = forty + " CHANCE OF SHINY!"; } else if (mode === "HORDE"){ if (chain < 10){ document.getElementById("chain").innerHTML = "HORDE ENCOUNTERS: " + chain; } else { document.getElementById("chain").innerHTML = "HORDE ENCOUNTERS: " + chain; } var forty = shinyCharm ? "1/273" : "1/819"; document.getElementById("forty").innerHTML = forty + " CHANCE OF SHINY!"; } else if (mode === "DEXNAV"){ switch (chain){ case 0: dchance = "ARE YOU READY?"; break; case 1: dchance = "FIRST BLOOD!"; break; case 2: dchance = "DOUBLE KILL!"; break; case 3: dchance = "MULTIKILL!"; break; case 4: dchance = "KILLTACULAR!"; break; case 10: case 14: dchance = "DOING WORK"; break; case 12: dchance = "A DOZEN DOWN"; break; case 13: dchance = "BAKER'S DOZEN"; break; case 20: dchance = "YOU'RE ON YOUR WAY"; break; case 30: dchance = "GONNA GO FAR, KID"; break; case 40: case 43: dchance = "CHAIN MAXED! (JK)"; break; case 42: dchance = "MEANING OF LIFE CONFIRMED"; break; case 50: dchance = "MAYBE..."; break; case 51: dchance = "ALL IT TAKES IS..."; break; case 52: dchance = "A BASEBALL BAT"; break; case 53: dchance = "ACTUALLY, MAYBE NOT"; break; case 54: dchance = "DO DE DO DE DOO~"; break; case 60: dchance = "YOU'RE GETTING CLOSER"; break; case 100: dchance = "DID YOU SAY 'PLEASE?'"; break; case 120: dchance = "TRY ASKING NICELY"; break; case 150: dchance = "150/3 = 50..."; break; case 151: dchance = "CHAIN 50 = \"MAYBE...\""; break; case 152: dchance = "HALF LIFE 3 MAYBE CONFIRMED"; break; case 153: dchance = "NINTENDO PLS"; break; case 170: dchance = "TIME TO PRAY TO GOOMY"; break; case 180: dchance = "GOOMY IS JUST WARMING UP"; break; case 190: dchance = "GOOMY HAS FORSAKEN US!"; break; case 200: dchance = "HOW MANY MUST DIE?!"; break; case 210: dchance = "MAYBE THIS ISN'T WORTH IT"; break; case 225: dchance = "I FEEL LIKE ONE'S COMING"; break; case 250: dchance = "ANY TIME NOW..."; break; case 275: dchance = "I BELIEVE IN YOU"; break; case 300: dchance = "YOU SHOULD TRY A LUCK POTION"; break; case 325: dchance = "BRB. ON MY BREAK"; break; case 350: dchance = "YOU SHOULD HAVE ONE BY NOW"; break; case 375: dchance = "I JUST FOUND ONE! DID YOU?"; break; case 400: case 421: dchance = "I'M OUT OF THINGS TO SAY"; break; case 420: dchance = "BLAZE IT!"; break; default: break; } document.getElementById("forty").innerHTML = dchance; if (chain < 10){ document.getElementById("chain").innerHTML = "ENCOUNTERS: " + chain; } else { document.getElementById("chain").innerHTML = "ENCOUNTERS: " + chain; } } else if (mode === "SR") { if (chain < 10){ document.getElementById("chain").innerHTML = "SOFT RESETS: " + chain; } else { document.getElementById("chain").innerHTML = "SOFT RESETS: " + chain; } if (version === "DPP"){ nchance = shinyCharm ? 2731 : 8192; } else { nchance = shinyCharm ? 1365 : 4096; } document.getElementById("forty").innerHTML = "1/" + nchance + " CHANCE OF SHINY!"; } else { document.getElementById("chain").innerHTML = "ERROR:"; document.getElementById("forty").innerHTML = "Invalid mode."; } } // ******************************************* \\ // This function handles all keyboard controls \\ // ******************************************* \\ function counter(e) { var unicode = e.keyCode ? e.keyCode : e.charCode; switch (unicode) { case 43: case 61: case 107: case 187: case 32: // if + is pressed, add to chain count(1); e.preventDefault(); break; case 45: case 173: case 109: case 189: // if either - is press, subtract from chain count(-1); break; case 82: // if R is pressed, reset chain count(0); break; case 70: // if F is pressed, toggle FASTMUSIC! toggleMusic(); break; default: fastMusic = 0; update(); break; } } // When a key is pressed, run the function to handle it. document.onkeydown = counter; // ******************************* \\ // CODE BELOW IS FOR THE FONT ONLY \\ // ******************************* \\ /* RAINBOW TEXT Script by Matt Hedgecoe (c) 2002 Featured on JavaScript Kit For this script, visit http://www.javascriptkit.com Edited and repurposed by Jeff Delgado */ var text="RAINBOW TEXT"; // YOUR TEXT var speed=20; // SPEED OF FADE var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0"); var r=1; var g=1; var b=1; var seq=1; function changetext(){ rainbow="#"+hex[r]+hex[g]+hex[b]; document.getElementById("highlight").style.color=rainbow; } function change(){ if (seq==6){ b--; if (b===0) seq=1; } if (seq==5){ r++; if (r==12) seq=6; } if (seq==4){ g--; if (g===0) seq=5; } if (seq==3){ b++; if (b==12) seq=4; } if (seq==2){ r--; if (r===0) seq=3; } if (seq==1){ g++; if (g==12) seq=2; } changetext(); } function starteffect(){ flash=setInterval(change,speed); } function stopeffect(){ clearInterval(flash); document.getElementById("mode").innerHTML = mode + " MODE"; } </script> </body> </html>
수정본
파일 열기
<!DOCTYPE html> <html> <head> <title>Pokemon Forever Pokeradar Modified</title> <!-- CSS required for the counter --> <link href='http://fonts.googleapis.com/css?family=Ubuntu+Mono:700' rel='stylesheet' type='text/css'> <style> #version { position: absolute; top: 135px; left: 120px; font-size: 0.6em; text-align: left; } #charm { position: absolute; bottom: 65px; left: 120px; font-size: 0.6em; text-align: left; } #mode { position: absolute; bottom: 65px; right: 235px; font-size: 0.6em; text-align: right; } #broken { position: absolute; top: 184px; left: 125px; width: 230px; height: 80px; background-color: black; color: red; visibility: hidden; } #counter { position: relative; background: url(http://pokemonforever.com/images/counterbg2.png); color: white; font-family: 'Ubuntu Mono'; font-size: 1.5em; margin: 0 auto; padding: 10px; width: 580px; height: 330px; text-align: center; } #chain { font-size: 1em; margin-top: 175px; margin-left: -115px; } #forty { font-size: 0.7em; margin-left: -115px; } #instructions { margin: -110px auto 0 auto; width: 500px; padding: 100px 15px 15px 15px; font-size: 0.8em; text-align: center; background: #666666; color: #ffffff; border: 1px solid #000000; border-bottom-right-radius: 25px; border-bottom-left-radius: 25px; box-shadow: 0 0px 8px; z-index: -1; } #instructions a, #instructions a:visited{ color: orange; text-decoration: none; } #instructions a:hover{ color: orange; text-decoration: underline; } .keys { color: #000000; font-family: monospace; font-size: 1.2em; font-weight: bold; border: 1px solid black; border-radius: 5px; padding: 0 4px; background-color: white; box-shadow: 0 1px 3px; } </style> </head> <body> <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"> <div id="broken">CHAIN BROKEN!<br />:(</div> <div id="chain">ENCOUNTERS: 0</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="mode">DEXNAV MODE</div> <div id="version">VERSION: ORAS</div> <map name="buttons"> <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="543, 216, 24" alt="Reset" href="Javascript:count(0);"> <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="258, 299, 356, 315" alt="Mode" href="Javascript:toggleMode();"> <area shape="rect" coords="125, 108, 223, 124" alt="Version" href="Javascript:toggleVersion();"> </map> </div> <script> //constants containing the cookie names const CHAINC = "chain"; const FASTMUSICC = "fastMusic"; const SHINYCHARMC = "shinyCharm"; const VERSIONC = "version"; 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] 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. \\ // ******************************************************* \\ function count(i){ if (i < 0){ if (chain > 0) chain--; } else if (i > 0){ chain++; } else { chain = 0; chainBroken = 1; setTimeout(function(){ document.getElementById("broken").style.visibility = "hidden"; },1000); } setCookie(CHAINC, chain); fastMusic = 0; update(); } function toggleCharm(){ shinyCharm = shinyCharm ? 0 : 1; 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"; } fastMusic = 0; setCookie(SHINYCHARMC, shinyCharm); update(); } function toggleMusic(){ if (mode === "POKERADAR") { fastMusic = fastMusic ? 0 : 1; document.getElementById("mode").innerHTML = "DANCE MODE"; setCookie(FASTMUSICC, fastMusic); update(); } } // Toggle the version of the game that the counter uses for its formulae. #2 function toggleVersion(){ if (version === "ORAS"){ version = "XY"; } else if (version === "XY"){ version = "DPP"; } else if (version === "DPP"){ version = "ORAS"; } document.getElementById("version").innerHTML = "VERSION: " + version; mode = ""; setCookie(VERSIONC, version); fastMusic = 0; toggleMode(); } function toggleMode(){ if (version === "DPP"){ if (mode === "POKERADAR"){ mode = "MASUDA"; } else if (mode === "MASUDA") { mode = "SR"; } else { mode = "POKERADAR"; } } else if (version === "XY"){ if (mode === "POKERADAR") { mode = "FISHING"; } else if (mode === "FISHING") { mode = "FS"; } else if (mode === "FS"){ mode = "MASUDA" } else if (mode === "MASUDA"){ mode = "HORDE" } else if (mode === "HORDE"){ mode = "SR"; } else { mode = "POKERADAR"; } } else if (version === "ORAS") { if (mode === "DEXNAV") { mode = "FISHING"; } else if (mode === "FISHING") { mode = "MASUDA"; } else if (mode === "MASUDA"){ mode = "HORDE" } else if (mode === "HORDE"){ mode = "SR"; } else { mode = "DEXNAV"; } } setCookie(MODEC, mode); document.getElementById("mode").innerHTML = mode + " MODE"; update(); } // ************************************************************************** \\ // This entire function makes the calculations required to update the text \\ // It also actually updates the text when done. \\ // ************************************************************************** \\ function update(){ if (chain < 10){ document.getElementById("chain").innerHTML = "CURRENT CHAIN: " + chain; } else { document.getElementById("chain").innerHTML = "CURRENT CHAIN: " + chain; } if (chainBroken){ document.getElementById("broken").style.visibility = "visible"; chainBroken = 0; } else { document.getElementById("broken").style.visibility = "hidden"; } if (mode === "POKERADAR"){ // Setting up the formula based on what version was selected. switch (version){ case 'DPP': /* The original formula for DPP nchance = (65535 / ((shinyCharm * 2 + 1)*(65535 / (8200 - chain * 200)).toFixed(0))).toFixed(0); if (nchance < 200) nchance = 200; */ if (chain > 40){ nchance = 200; } else { nchance = (65535 / ((shinyCharm * 2 + 1)*(65535 / (8200 - chain * 200)).toFixed(0))).toFixed(0); if (nchance < 200) nchance = 200; } break; case 'ORAS': default: /* My modified shiny chance formula for XY nchance = (65535 / ((shinyCharm * 2 + 1)*(65535 / (8200 - (chain / 2 + 20) * 200)).toFixed(0))).toFixed(0); if (nchance < 200) nchance = 200; Double Formula nchance = (chances[chain] / 2).toFixed(0); */ if (chain > 40){ nchance = 200; } else { nchance = (65535 / ((shinyCharm * 2 + 1)*(65535 / (8200 - (chain / 2 + 20) * 200)).toFixed(0))).toFixed(0); if (nchance < 200) nchance = 200; } break; } if (fastMusic) { document.getElementById("chain").innerHTML = "<span id='highlight'>FAST MUSIC!</span>"; document.getElementById("forty").innerHTML = "1/200 CHANCE OF SHINY!"; starteffect(); } else if (chain >= 40) { document.getElementById("forty").innerHTML = "CHAIN MAXED! (1/200)"; } else { document.getElementById("forty").innerHTML = "1/" + nchance + " CHANCE OF SHINY!"; if (typeof flash != 'undefined') stopeffect(); } } else if (mode === "FISHING"){ if (chain < 10){ fishChance = "NOT HAPPENING"; } else if (chain < 20) { fishChance = "NOT LIKELY"; } else if (chain < 30) { fishChance = "POSSIBLE"; } else if (chain < 40) { fishChance = "LIKELY!"; } else if (chain < 50) { fishChance = "HIGHLY LIKELY!"; } else if (chain < 60) { fishChance = "SUPER LIKELY!"; } else if (chain < 100) { fishChance = "ALMOST GUARANTEED!"; } else { fishChance = "YOU SHOULD HAVE ONE BY NOW"; } document.getElementById("forty").innerHTML = fishChance; } else if (mode === "FS"){ if (chain < 10){ document.getElementById("chain").innerHTML = "FRIEND SAFARI: " + chain; } else { document.getElementById("chain").innerHTML = "FRIEND SAFARI: " + chain; } document.getElementById("forty").innerHTML = "1/512 CHANCE OF SHINY!"; } else if (mode === "MASUDA"){ if (chain < 10){ document.getElementById("chain").innerHTML = "EGGS HATCHED: " + chain; } else { document.getElementById("chain").innerHTML = "EGGS HATCHED: " + chain; } if (version === "DPP"){ var forty = shinyCharm ? "1/1024" : "1/1366"; } else { var forty = shinyCharm ? "1/527" : "1/683"; } document.getElementById("forty").innerHTML = forty + " CHANCE OF SHINY!"; } else if (mode === "HORDE"){ if (chain < 10){ document.getElementById("chain").innerHTML = "HORDE ENCOUNTERS: " + chain; } else { document.getElementById("chain").innerHTML = "HORDE ENCOUNTERS: " + chain; } var forty = shinyCharm ? "1/273" : "1/819"; document.getElementById("forty").innerHTML = forty + " CHANCE OF SHINY!"; } else if (mode === "DEXNAV"){ switch (chain){ case 0: dchance = "ARE YOU READY?"; break; case 1: dchance = "FIRST BLOOD!"; break; case 2: dchance = "DOUBLE KILL!"; break; case 3: dchance = "MULTIKILL!"; break; case 4: dchance = "KILLTACULAR!"; break; case 10: case 14: dchance = "DOING WORK"; break; case 12: dchance = "A DOZEN DOWN"; break; case 13: dchance = "BAKER'S DOZEN"; break; case 20: dchance = "YOU'RE ON YOUR WAY"; break; case 30: dchance = "GONNA GO FAR, KID"; break; case 40: case 43: dchance = "CHAIN MAXED! (JK)"; break; case 42: dchance = "MEANING OF LIFE CONFIRMED"; break; case 50: dchance = "MAYBE..."; break; case 51: dchance = "ALL IT TAKES IS..."; break; case 52: dchance = "A BASEBALL BAT"; break; case 53: dchance = "ACTUALLY, MAYBE NOT"; break; case 54: dchance = "DO DE DO DE DOO~"; break; case 60: dchance = "YOU'RE GETTING CLOSER"; break; case 100: dchance = "DID YOU SAY 'PLEASE?'"; break; case 120: dchance = "TRY ASKING NICELY"; break; case 150: dchance = "150/3 = 50..."; break; case 151: dchance = "CHAIN 50 = \"MAYBE...\""; break; case 152: dchance = "HALF LIFE 3 MAYBE CONFIRMED"; break; case 153: dchance = "NINTENDO PLS"; break; case 170: dchance = "TIME TO PRAY TO GOOMY"; break; case 180: dchance = "GOOMY IS JUST WARMING UP"; break; case 190: dchance = "GOOMY HAS FORSAKEN US!"; break; case 200: dchance = "HOW MANY MUST DIE?!"; break; case 210: dchance = "MAYBE THIS ISN'T WORTH IT"; break; case 225: dchance = "I FEEL LIKE ONE'S COMING"; break; case 250: dchance = "ANY TIME NOW..."; break; case 275: dchance = "I BELIEVE IN YOU"; break; case 300: dchance = "YOU SHOULD TRY A LUCK POTION"; break; case 325: dchance = "BRB. ON MY BREAK"; break; case 350: dchance = "YOU SHOULD HAVE ONE BY NOW"; break; case 375: dchance = "I JUST FOUND ONE! DID YOU?"; break; case 400: case 421: dchance = "I'M OUT OF THINGS TO SAY"; break; case 420: dchance = "BLAZE IT!"; break; default: break; } document.getElementById("forty").innerHTML = dchance; if (chain < 10){ document.getElementById("chain").innerHTML = "ENCOUNTERS: " + chain; } else { document.getElementById("chain").innerHTML = "ENCOUNTERS: " + chain; } } else if (mode === "SR") { if (chain < 10){ document.getElementById("chain").innerHTML = "SOFT RESETS: " + chain; } else { document.getElementById("chain").innerHTML = "SOFT RESETS: " + chain; } if (version === "DPP"){ nchance = shinyCharm ? 2731 : 8192; } else { nchance = shinyCharm ? 1365 : 4096; } document.getElementById("forty").innerHTML = "1/" + nchance + " CHANCE OF SHINY!"; } else { document.getElementById("chain").innerHTML = "ERROR:"; document.getElementById("forty").innerHTML = "Invalid mode."; } } // ******************************************* \\ // This function handles all keyboard controls \\ // ******************************************* \\ function counter(e) { var unicode = e.keyCode ? e.keyCode : e.charCode; switch (unicode) { case 43: case 61: case 107: case 187: case 32: // if + is pressed, add to chain count(1); e.preventDefault(); break; case 45: case 173: case 109: case 189: // if either - is press, subtract from chain count(-1); break; case 82: // if R is pressed, reset chain count(0); break; case 70: // if F is pressed, toggle FASTMUSIC! toggleMusic(); break; default: fastMusic = 0; update(); break; } } // When a key is pressed, run the function to handle it. 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 \\ // ******************************* \\ /* RAINBOW TEXT Script by Matt Hedgecoe (c) 2002 Featured on JavaScript Kit For this script, visit http://www.javascriptkit.com Edited and repurposed by Jeff Delgado */ var text="RAINBOW TEXT"; // YOUR TEXT var speed=20; // SPEED OF FADE var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0"); var r=1; var g=1; var b=1; var seq=1; function changetext(){ rainbow="#"+hex[r]+hex[g]+hex[b]; document.getElementById("highlight").style.color=rainbow; } function change(){ if (seq==6){ b--; if (b===0) seq=1; } if (seq==5){ r++; if (r==12) seq=6; } if (seq==4){ g--; if (g===0) seq=5; } if (seq==3){ b++; if (b==12) seq=4; } if (seq==2){ r--; if (r===0) seq=3; } if (seq==1){ g++; if (g==12) seq=2; } changetext(); } function starteffect(){ flash=setInterval(change,speed); } function stopeffect(){ clearInterval(flash); document.getElementById("mode").innerHTML = mode + " MODE"; } </script> </body> </html>
비교하기