π¦π Add some flying bats on your website with a small JS file and a single line of code.
Based on the work of Eric Grange at DelphiTools.
First, include the script in your HTML header or footer. You can use the JS file in this repo. e.g.,
<script src="./bats.js"></script>
Or, you can link to our hosted version.
<script src="https://static.twomile.com/bats.js"></script>
Then, call makeBats() somewhere in your JS and give it the number of bats you want to appear. e.g.,
new BatManager().makeBats(15);
See the index.html file in this repo for an example.