Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.
/ ExtJS4-Fart Public archive

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

Notifications You must be signed in to change notification settings

aol/ExtJS4-Fart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published