Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

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

README.rdoc

AOL.Fart

An ExtJS 4.x fart class that allows you to play random fart sounds. Inspired by (and fart sounds borrowed from) the Onion fartscroll.js - github.com/theonion/fartscroll.js

How to use it?

Simple really, just include it with your other ExtJS 4 classes and call the playRandom method to play a random fart sound. The example below will play a random fart sound on every 100th click, which is what the class will do by default when it's included as is.

Ext.getBody().on('click',function(){
    fart.count++;
    if (fart.count%100===0){
        fart.playRandom();
    }
});

About

An ExtJS 4.x fart class that allows you to play random fart sounds. Inspired by (and fart sounds borrowed from) the Onion fartscroll.js - https://github.com/theonion/fartscroll.js

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.