LivioBrunner

Hitmarker Easter Egg

Sep 25th, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.21 KB | None | 0 0
  1. <!--SCHRIEB DAS I DIN <HEAD>:-->
  2.  
  3. <script type="text/javascript" src="./scripts/jquery-2.1.1.min.js"></script>
  4. <script type="text/javascript">
  5. /**************************************************/
  6. /*                Code by Livio                   */
  7. /*                    V1.0                        */
  8. /**************************************************/
  9.  
  10. /*EASTER EGG*/
  11. easteregg = false;
  12. function activeEasterEgg() {
  13.     console.log("Easer Egg Activated!");
  14.     $("body").append("<img id='hitmarker' src='http://t4.rbxcdn.com/198cd5822a2231611e9afea09e21d055' style='z-index:3;position:fixed;border:none;display:none;height:210px;width:210px;' />");
  15.     easteregg = true;
  16. }
  17. $(window).click(function (e) {
  18.     if (easteregg == true) {
  19.         $("#hitmarker").css({
  20.             "left": e.pageX - 100 + "px",
  21.             "top": e.pageY - 100 + "px",
  22.             "display": "inline",
  23.         });
  24.         window.setTimeout(function () {
  25.             $("#hitmarker").css("display", "none");
  26.         }, 100);
  27.     }
  28.    
  29. });
  30.  
  31.  
  32. /*MAIN*/
  33. $(document).ready(function () {
  34.     $("body").append("<div style='height:1px;width:1px;position:fixed;left:0px;top:0px;' onclick='activeEasterEgg()'></div>");
  35. });
  36.  
  37. </script>
Advertisement
Add Comment
Please, Sign In to add comment