Skip to content

mapsam/yolo.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

yolo.js

You only live once. Egg your pages with funz. Play with them here. Some of the eggs are jQuery dependent. The rest are st8 vanilla.

In the <head> of your document add the following:

<script type="text/javascript" src="yolo.js"></script>

and attach the onkeypress event listener to the <body> of your document:

<body onkeypress="yolo(event);">

Most functions use the CSS class .yolo which is position:absolute as to not interact with the rest of a page's div structure. To reset the page, use shift + x which runs reset() to remove the .yolo class from the document.

Current List

  • YOLO | yoloEgg() | shift + 3 | The original. Plays yolo video within darkened div over entire screen.
  • Laugh Track | laughTrack() | shift + 4 | Plays a laughtrack and changes background to Jimmy Fallon crowd.
  • Call Me Maybe | callMe() | shift + 5 | Plays Call Me Maybe
  • Damn kids! | reset() | shift + x | Resets the window

#yolo

About

You only live once. Egg your pages with funz.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published