NoNameCracksInc icon

HTML game

NoNameCracksInc | PRO | 04/08/14 08:24:49 PM UTC | 0 ⭐ | 747 👁️ | Never ⏰ | []
JavaScript |

13.83 KB

|

None

|

0 👍

/

0 👎

<!DOCTYPE html><html><head></head>
 <body onLoad="randomize();document.getElementById('level').innerHTML='Level: '+document.cookie.toString();level_req();"style="overflow:hidden" background="http://i.imgur.com/LMrmzsX.jpg"><style> #enemy_container{width:400px;height:300px;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;border-radius:20px;background:url("http://w8themes.com/wp-content/uploads/2013/11/Blue-Wallpaper-HD.jpg");transition:opacity 0.4s;}#photo{width:150px;height:250px;position:absolute;left:50%; border-style:inset;}#name_bar{width:150px;height:20px;position:absolute;top:90%;left:50%;text-align:center;font-family:"Trebuchet MS", Helvetica, sans-serif;transition:background 0.4s;}#name_bar:hover{background:white;} #desc{width:165px;height:150px;position:absolute;left:3%;top:40%;font-family:"Trebuchet MS", Helvetica, sans-serif;}#attack{width:100px;height:20px;position:absolute;left:10%;top:90%;font-family:"Trebuchet MS", Helvetica, sans-serif;}#health_bar{width:150px;height:10px;position:absolute;top:5%;left:5%;border-radius:20px;background:red;transition:width 0.4s;}#difficulty{width:50px;height:50px;position:absolute;top:15%;left:17%;font-size:300%;text-align:center;}#player_container{width:300px;height:80px;position:absolute;top:2%;left:2%;margin:auto;transition:opacity 0.4s; }#health{width:250px;height:10px;position:absolute;left:10%;top:10%;border-radius:20px;background:red;transition:width 0.4s;}#weapon{width:40px;height:10px;position:absolute;left:83%;top:75%;border-style:inset;transition:opacity 0.4s;}#weapon:hover{background:white;opacity:0.4;}#level{width:150px;height:40px;position:absolute;top:45%;font-family:"Trebuchet MS", Helvetica, sans-serif;font-size:200%;}#spell_one{width:40px;height:40px;position:absolute;top:40%;left:45%;opacity:0.5;transition:opacity 0.4s;}#spell_one:hover{opacity:1;}#spell_two{width:40px;height:40px;position:absolute;top:40%;left:65%;opacity:0.5;transition:opacity 0.4s;}#spell_two:hover{opacity:1;}#combo_box{width:200px;height:200px;position:absolute;left:-3%;opacity:0;transition:opacity 0.7s;}
#title_container{width:300px;height:100px;position:absolute;left:50%;}#title_1{width:300px;height:25px;position:absolute;text-align:center;font-family:"Trebuchet MS", Helvetica, sans-serif;transition:opacity 0.4s, width 0.2s;}#title_2{width:300px;height:25px;position:absolute;top:25px;text-align:center;font-family:"Trebuchet MS", Helvetica, sans-serif;transition:opacity 0.4s, width 0.2s;}#title_3{width:300px;height:25px;position:absolute;top:50px;text-align:center;font-family:"Trebuchet MS", Helvetica, sans-serif;transition:opacity 0.4s, width 0.2s;}#title_4{width:300px;height:25px;position:absolute;top:75px;text-align:center;font-family:"Trebuchet MS", Helvetica, sans-serif;transition:opacity 0.4s, width 0.2s;}#title_1:hover{background:white;opacity:0.4;width:250px;}#title_2:hover{background:white;opacity:0.4;width:250px}#title_3:hover{background:white;opacity:0.4;width:250px}#title_4:hover{background:white;opacity:0.4;width:250px} #weapon_container{width:300px;height:200px; position:absolute;left:30%;background:white;border-radius:20px;background:url("http://s59.radikal.ru/i166/1008/e6/dd326cda89a2.jpg");border-style:inset;opacity:0;transition:opacity 0.4s;}#weapon_icon{width:64px;height:64px;position:absolute;top:3%;left:3%;}#weapon_name{width:200px;height:20px;position:absolute;top:3%;left:30%;font-family:"Comic Sans MS", cursive, sans-serif;text-align:center;}#weapon_damage{width:200px;height:20px;position:absolute;top:18%;left:30%;font-family: Rockwell, "Courier Bold", Courier, Georgia, Times, "Times New Roman", serif;color:#D00000;}#weapon_ilevel{width:200px;height:10px;position:absolute;top:29%;left:30%;font-family: Rockwell, "Courier Bold", Courier, Georgia, Times, "Times New Roman", serif;font-size:80%;color:#D00000; }#weapon_info{width:250px;height:100px;position:absolute;top:40%;left:3%;font-style:oblique;color:#00FF00;} </style><script>var enemy;var level=0;var clicked=0;var diced=0;var title="";if(document.cookie=="")document.cookie=0;function randomize(){enemy=Math.floor(Math.random()*4)+1;if(enemy==1){document.getElementById("photo").style.background="url('http://www.comingsoon.net/nextraimages/assassinscreedarticle.jpg')";document.getElementById("name_bar").innerHTML="Assassin";document.getElementById("desc").innerHTML="Smart enemy.Uses his hidden blades to attack you.Spells: cut, ambush.Average health.High damage.";document.getElementById("difficulty").innerHTML="2";}if(enemy==2){document.getElementById("photo").style.background="url('http://puu.sh/6Iti1.png?dateline=1391433723')";document.getElementById("name_bar").innerHTML="Devourer";document.getElementById("desc").innerHTML="Exceptional enemy.Very strong damage.Has no spells, but has balanced offensive and defensive stats.";document.getElementById("difficulty").innerHTML="3";}if(enemy==3{document.getElementById("photo").style.background="url('http://tribogamer.com/forum/download/file.phpavatar=1193_1386590207.png')";document.getElementById("name_bar").innerHTML="Curser";document.getElementById("desc").innerHTML="Skilled enemy, using his swords to cut the foes.Very agille and experienced fighter.Weak armor, but very high damage.";document.getElementById("difficulty").innerHTML="3";}if(enemy==4{document.getElementById("photo").style.background="url('http://www.webcheats.com.br/forum/customavatars/avatar2030819_47.gif')";document.getElementById("name_bar").innerHTML="Lord";document.getElementById("desc").innerHTML="Strongest enemy.Has slight lifesteal, which decreases your damage done against him.Overpowered damage.";document.getElementById("difficulty").innerHTML="4";}}function damage(){damagesetup();if(enemy==1){enemy_hp=document.getElementById("health_bar").offsetWidth;document.getElementById("health_bar").style.width=enemy_hp-player_dmg+"px";}if(enemy==2){enemy_hp=document.getElementById("health_bar").offsetWidth;document.getElementById("health_bar").style.width=enemy_hp-player_dmg+"px";}if(enemy==3{enemy_hp=document.getElementById("health_bar").offsetWidth;document.getElementById("health_bar").style.width=enemy_hp-player_dmg+"px";}if(enemy==4){enemy_hp=document.getElementById("health_bar").offsetWidth;document.getElementById("health_bar").style.width=enemy_hp-player_dmg+"px";}if((enemy_hp-player_dmg)<=0){document.getElementById("enemy_container").style.opacity=0;modifycookie(1);document.cookie=parseInt(document.cookie);reset();}
giveback();}function giveback(){    if(enemy==1){enemy_dmg=hdps(35,50);player_hp=document.getElementById("health").offsetWidth;document.getElementById("health").style.width=player_hp-enemy_dmg+"px"; cut=Math.floor(Math.random()*10)+1;if(cut==5){fcut();}}if(enemy==2){enemy_dmg=Math.floor((Math.random()*40)+60); <!-- anomaly? Cant call hdps function which is public, probably libary bug -->player_hp=document.getElementById("health").offsetWidth;document.getElementById("health").style.width=player_hp-enemy_dmg+"px";      }if(enemy==3){enemy_dmg=hdps(45,70);player_hp=document.getElementById("health").offsetWidth;document.getElementById("health").style.width=player_hp-enemy_dmg+"px";}if(enemy==4){enemy_dmg=hdps(50,75);player_hp=document.getElementById("health").offsetWidth;document.getElementById("health").style.width=player_hp-enemy_dmg+"px";}if((player_hp-enemy_dmg)<=0){document.getElementById("player_container").style.opacity=0;modifycookie(-1);reset();}}function slice(){clicked=clicked+1;if(clicked==1||clicked==2){enemy_hp=document.getElementById("health_bar").offsetWidth;if(enemy_hp>=60)dmg=hdps(5,10);elsedmg=hdps(10,15);document.getElementById("health_bar").style.width=enemy_hp-dmg+"px";if(clicked==2)document.getElementById("spell_one").style.opacity=0;if((enemy_hp-dmg)<=0){document.getElementById("enemy_container").style.opacity=0;modifycookie(1);reset();}}}function reset(){setTimeout(function go(){location.reload(true);},2000);}
function dice(){if(diced==0{diced=diced+1;enemy_hp=document.getElementById("health_bar").offsetWidth;player_hp=document.getElementById("health").offsetWidth;if(player_hp<=100)heal=hdps(20,30);elseheal=hdps(10,15); document.getElementById("health_bar").style.width=enemy_hp-5+"px";document.getElementById("health").style.width=player_hp+heal+"px"; if((enemy_hp-5)<=0){document.getElementById("enemy_container").style.opacity=0;modifycookie(1);reset();}}document.getElementById("spell_two").style.opacity=0;}function hdps(from,to){value=Math.floor((Math.random()*from)+to);return value;}function fcut(){document.getElementById("health").style.width=document.getElementById("health").offsetWidth-80+"px";document.getElementById("combo_box").style.opacity=1;setTimeout(function hide(){document.getElementById("combo_box").style.opacity=0;},1000);}function level_req() {if(parseInt(document.cookie)>=10){document.getElementById("title_1").style.background="white";title="Justicar";}if(parseInt(document.cookie)>=20){document.getElementById("title_2").style.background="white";title="Crusader";}if(parseInt(document.cookie)>=30){document.getElementById("title_3").style.background="white";title="Knight";}if(parseInt(document.cookie)>=40{document.getElementById("title_4").style.background="white";title="Champion";}weaponsetup();}function modifycookie(change){level=level+change; document.cookie=parseInt(document.cookie)+level;  }
function damagesetup(){if(enemy==1)  {if(title=="")player_dmg=hdps(20,21);
if(title=="Justicar")player_dmg=hdps(20,23);if(title=="Crusader") player_dmg=hdps(20,25);if(title=="Knight")player_dmg=hdps(20,27);if(title=="Champion"){player_dmg=hdps(30,38); setTimeout(function gethp(){document.getElementById("health").style.width=document.getElementById("health").offsetWidth+20+"px";},1000);  }}if(enemy==2)  {if(title=="")player_dmg=hdps(20,25);if(title=="Justicar")player_dmg=hdps=(20,27);if(title=="Crusader")player_dmg= hdps(20,29);if(title=="Knight")player_dmg=hdps(20,31);if(title=="Champion"){player_dmg=hdps(30,38);  setTimeout(function gethp(){document.getElementById("health").style.width=document.getElementById("health").offsetWidth+20+"px";},1000); }}if(enemy==3)  {if(title=="")player_dmg=hdps(20,27);if(title=="Justicar")player_dmg=hdps(20,29);if(title=="Crusader")player_dmg=hdps(20,30);if(title=="Knight")player_dmg=hdps(20,32);if(title=="Champion"){player_dmg=hdps(30,38); setTimeout(function gethp(){document.getElementById("health").style.width=document.getElementById("health").offsetWidth+20+"px";},1000);   }}if(enemy==4)  {if(title=="")player_dmg=hdps(20,18);if(title=="Justicar") player_dmg=hdps(20,20);if(title=="Crusader")player_dmg=hdps(20,22); if(title=="Knight")player_dmg=hdps(20,24);if(title=="Champion"){player_dmg=hdps(30,38);  setTimeout(function gethp(){document.getElementById("health").style.width=document.getElementById("health").offsetWidth+20+"px";},1000);   } } }function weaponsetup(){icon=document.getElementById("weapon_icon"); w_name=document.getElementById("weapon_name");dmg=document.getElementById("weapon_damage");ilevel=document.getElementById("weapon_ilevel");info=document.getElementById("weapon_info");if(title==""){icon.style.background="url('http://img2.wikia.nocookie.net/__cb20070121002944/wowwiki/images/5/5f/Inv_sword_36.png')";w_name.style.color="gray";w_name.innerHTML="Basic Sword";dmg.innerHTML="Damage: 20-27";ilevel.innerHTML="(Item level: 1)";info.innerHTML="Basic swords for newbs and unskilled players.Rusty and dull.Raise your level to get better one."}if(title=="Justicar"){icon.style.background="url('http://hydra-media.cursecdn.com/wowpedia.org/9/90/Inv_sword_23.png')"; w_name.style.color="yellow";w_name.innerHTML="Justice";dmg.innerHTML="Damage: 20-29";ilevel.innerHTML="(Item level: 2)";info.innerHTML="In fights deserved sword.Justice slightly improves your stats, but it's proof you are moving further."}if(title=="Crusader"){icon.style.background="url('http://img3.wikia.nocookie.net/__cb20060923063455/wowwiki/images/5/5e/Inv_sword_08.png')";w_name.style.color="brown";w_name.innerHTML="Crusader's revenge";dmg.innerHTML="Damage: 20-30";ilevel.innerHTML="(Item level: 3)";info.innerHTML="'Great sword'- unknown."}if(title=="Knight"){icon.style.background="url('http://img3.wikia.nocookie.net/__cb20070121002447/wowwiki/images/e/ef/Inv_sword_01.png')";w_name.style.color="purple";w_name.innerHTML="Blood hand";dmg.innerHTML="Damage: 20-32";ilevel.innerHTML="(Item level: 4)";info.innerHTML="Knights best friend.If you have this sword, you are close to be the best.'I luv this sword'- Varian Wrynn.'"}if(title=="Champion"){icon.style.background="url('http://img1.wikia.nocookie.net/__cb20090228101843/wowwiki/images/e/ee/Inv_sword_140.png')";w_name.style.color="orange";w_name.innerHTML="Vengeance";dmg.innerHTML="Damage: 30-35";ilevel.innerHTML="(Item level: 10)";info.innerHTML="Holy sword of champion, who conquered plains of deadly enemies.Penetrates enemy armor easily."}}</script><div id="enemy_container"><div id="photo"></div><div id="name_bar"></div><div id="desc"></div><div id="attack"></div><div id="health_bar"></div><div id="difficulty"></div><input type="button" id="attack" value="Attack!" onClick="damage()"></div>
<div id="player_container"> <div id="health"></div> <div id="level"></div><div id="weapon" onMouseOver="document.getElementById('weapon_container').style.opacity=1;"onMouseOut="document.getElementById('weapon_container').style.opacity=0;"></div><img src="http://hydra-media.cursecdn.com/cabal.gamepedia.com/5/55/Sword_Skill_Amp_icon.png" id="spell_one" onClick="slice()"><img src="http://hydra-media.cursecdn.com/vindictus.gamepedia.com/4/48/Aodhan%27s_Twin_Swords.png" id="spell_two" onClick="dice()"></div> <img src="http://fc09.deviantart.net/fs71/f/2011/143/2/f/blood_splatter_transparency_by_sagacious-d3h1yw6.png" id="combo_box"><div id="title_container"><div id="title_1">Justicar</div><div id="title_2">Crusader</div><div id="title_3">Knight</div> <div id="title_4">Champion</div></div><div id="weapon_container"><div id="weapon_icon"></div><div id="weapon_name"></div><div id="weapon_damage"></div><div id="weapon_ilevel"></div><div id="weapon_info"></div></div></body>
 </html>

Comments