Skip to content

A cute bat celebrity for your website! The bat goes on a rant and then closes at the end. Ideal for all ages.

Notifications You must be signed in to change notification settings

alienmelon/a-cute-bat.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A cute bat (also known as "a lovely bat") is a cute bat for your website!

View a live demo of "a cute bat" here

A cute bat demo

Hide a bat in a corner of your website. The bat can be triggered by user interaction, or page load. Users will disturb a bat that was sleeping on your page. This effectively turns your page into a cave. This is good for the ecosystem of the internet, as there are not enough bats on websites (there never have been) and this is bad for web bat populations.

Installing "a cute bat" is easy. Simply drag and drop the contents of the downloaded folder (audio, images, and a_cute_bat.js) into the root directory of the page that you would like to add the bat to.

Once bat has been successfully uploaded to your server, add the following in your page's <header> tag...

<script src="a_cute_bat.js"></script>

Then simply call...

<body onload="init_bat();">

As part of your body's on load, or call init_bat() as part of any button event that you would like to bind your bat to.

Visitors will be surprised by the bat! ("a cute bat" is ideal for all ages...)

About

A cute bat celebrity for your website! The bat goes on a rant and then closes at the end. Ideal for all ages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published