Skip to content

alienmelon/a-cute-bat.js

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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