Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var name = prompt('Whats your name?'); document.getElementById('contactinfo').outerHTML = "<img src='http://icons.iconarchive.com/icons/paomedia/small-n-flat/512/cog-icon.png' onclick='sets()' style='width: 40px;'><div hidden id='settings'><a style='color:white' onclick='dog_site.pets=prompt()'>Pets</a><div><a style='color:white' onclick='setT()'>Set Title</a></div><div><a style='color:white' onclick='setIMG()'>Set Image</a></div><div><a onclick='resetT()' style='color:white'>Reset Title</a></div><div><a onclick='resetIMG()' style='color:white'>Reset Image</a></div><div><a style='color:red' onclick='hideSet()'>Close</a></div></div>"; function hideSet() { document.getElementById('settings').outerHTML = "<div hidden id='settings' href='#'><a style='color:white' onclick='dog_site.pets=prompt()'>Set Pets</a><div><a onclick='var xten=Number(prompt()); dog_site.pets = Number(dog_site.pets)+xten;' style='color:white'>Add Pets</a></div><div><a style='color:white' onclick='dog_site.pets = dog_site.pets-prompt()'>Remove Pets</a></div><div><a style='color:white' onclick='dog_site.pets=0'>Reset Pets</a></div><div><a style='color:white' onclick='setT()'>Set Title</a></div><div><a style='color:white' onclick='setIMG()'>Set Image</a></div><div><a onclick='resetT()' style='color:white'>Reset Title</a></div><div><a onclick='resetIMG()' style='color:white'>Reset Image</a></div><div><a style='color:white' onclick='winGame()'>Win Game</a></div><div><a style='color:white' onclick='unwinGame()'>Restart Game</a></div><div><a style='color:red' onclick='hideSet()'>Close</a></div><div style='width:300px;'><marquee style='color:yellow'>Hello "+name+", and welcome to Component v2! Made by Game_Logic! Enjoy!</marquee></div></div>"; } function sets() { document.getElementById('settings').outerHTML = "<div id='settings' href='#'><a style='color:white' onclick='dog_site.pets=prompt()'>Set Pets</a><div><div><a onclick='var xten=Number(prompt()); dog_site.pets = Number(dog_site.pets)+xten;' style='color:white'>Add Pets</a></div><div><a style='color:white' onclick='dog_site.pets = dog_site.pets-prompt()'>Remove Pets</a></div><div><a style='color:white' onclick='dog_site.pets=0'>Reset Pets</a></div><a style='color:white' onclick='setT()'>Set Title</a></div><div><a style='color:white' onclick='setIMG()'>Set Image</a></div><div><a onclick='resetT()' style='color:white'>Reset Title</a></div><div><a onclick='resetIMG()' style='color:white'>Reset Image</a></div><div><a style='color:white' onclick='winGame()'>Win Game</a></div><div><a style='color:white' onclick='unwinGame()'>Restart Game</a></div><div><a style='color:red' onclick='hideSet()'>Close</a></div><div style='width:300px;'><marquee style='color:yellow'>Hello "+name+", and welcome to Component v2! Made by Game_Logic! Enjoy!</marquee></div></div>" }; function setT() { document.getElementById('YELLING').innerHTML = prompt() }; function setIMG() { document.getElementById('dog').outerHTML = "<img id='dog' style='height: 90px; width: 90px' src='"+prompt()+"' class='NaN'>" }; function resetT() { document.getElementById('YELLING').innerHTML = "PET THE DOG!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; }; function resetIMG() { document.getElementById('dog').outerHTML = '<img id="dog" src="dog_l.png">' }; function winGame() { document.getElementById('YELLING').innerHTML = "YOU WIN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; confirm('Congratulations! You Win!'); dog_site.pets = Infinity; }; function unwinGame() { document.getElementById('YELLING').innerHTML = "PET THE DOG!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; dog_site.pets = 0; };
Add Comment
Please, Sign In to add comment