Don't like ads? PRO users don't see any ads ;-)
Guest

Hunger Solution

By: Jeezus on Jul 15th, 2012  |  syntax: HTML 5  |  size: 0.45 KB  |  hits: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <DOCTYPE html5>
  2. <html>
  3. <head>
  4. <script type="text/javascript">
  5. var Jeezus = prompt("Are you hungry?", "Maybe");
  6. var apple = alert("You got an Apple!");
  7. var thisIsFunny = alert("Suck a dick then, Motherfucker!");
  8.  
  9. function Hunger() {
  10. if (Jeezus === "yes" || Jeezus === "Yes" || Jeezus === "YES") {
  11. return apple;
  12. }
  13. return thisIsFunny;
  14. };
  15. </script>
  16. </head>
  17.  
  18. <body>
  19. <input type="button" onclick="Hunger()">Click on this shit!</input>
  20. </body>
  21. </html>