Getting Started

Get a release tarball, or clone the repository, or use npm and browserify, or bower:

bower install loud --save-dev

Add ./dist/loud.js to a testing page:

<script src="/path/to/loud/dist/loud.js"></script>

Note

You should use es5-shim in old browsers.

Test with Loud (using Jasmine, for example):

describe('loud', function() {
    beforeEach(function() {
        this.button = document.createElement('button');
        this.button.innerHTML = 'Join';
        document.body.appendChild(this.button);
    });

    beforeEach(function() {
        document.body.removeChild(this.button);
    });

    it('works', function() {
        expect(loud.say(this.button)).toEqual([
            'Join', 'button'
        ]);
    });
});

Changed in version 0.9.0: Adding elements to DOM is mandatory. Otherwise, an element visibility will not be properly detected.