js/components/showcase.js
function(node) {
        this.node = node = $(node);
        this.index = -1;

        var options = this.inheritOptions(this.options, node),
            read = this.readValue,
            category = read(node, options.getCategory),
            items = [],
            index = 0;

        // Multiple items based on category
        if (category) {
            for (var i = 0, x = 0, n; n = this.nodes[i]; i++) {
                if (read(n, options.getCategory) === category) {
                    if (node.is(n)) {
                        index = x;
                    }

                    items.push({
                        title: read(n, options.getTitle),
                        category: category,
                        image: read(n, options.getImage)
                    });

                    x++;
                }
            }

        // Single item
        } else {
            items.push({
                title: read(node, options.getTitle),
                category: category,
                image: read(node, options.getImage)
            });
        }

        if (this.blackout) {
            this.blackout.show();
        }

        if (options.stopScroll) {
            $('body').addClass('no-scroll');
        }

        this._buildItems(items);
        this.jump(index);
    }
function(node) {
        this.node = node = $(node);
        this.index = -1;

        var options = this.inheritOptions(this.options, node),
            read = this.readValue,
            category = read(node, options.getCategory),
            items = [],
            index = 0;

        // Multiple items based on category
        if (category) {
            for (var i = 0, x = 0, n; n = this.nodes[i]; i++) {
                if (read(n, options.getCategory) === category) {
                    if (node.is(n)) {
                        index = x;
                    }

                    items.push({
                        title: read(n, options.getTitle),
                        category: category,
                        image: read(n, options.getImage)
                    });

                    x++;
                }
            }

        // Single item
        } else {
            items.push({
                title: read(node, options.getTitle),
                category: category,
                image: read(node, options.getImage)
            });
        }

        if (this.blackout) {
            this.blackout.show();
        }

        if (options.stopScroll) {
            $('body').addClass('no-scroll');
        }

        this._buildItems(items);
        this.jump(index);
    }
function ( node ) { this . node = node = $ ( node ) ; this . index = - 1 ; var options = this . inheritOptions ( this . options , node ) , read = this . readValue , category = read ( node , options . getCategory ) , items = [ ] , index = 0 ; // Multiple items based on category if ( category ) { for ( var i = 0 , x = 0 , n ; n = this . nodes [ i ] ; i ++ ) { if ( read ( n , options . getCategory ) === category ) { if ( node . is ( n ) ) { index = x ; } items . push ( { title : read ( n , options . getTitle ) , category : category , image : read ( n , options . getImage ) } ) ; x ++ ; } } // Single item } else { items . push ( { title : read ( node , options . getTitle ) , category : category , image : read ( node , options . getImage ) } ) ; } if ( this . blackout ) { this . blackout . show ( ) ; } if ( options . stopScroll ) { $ ( 'body' ) . addClass ( 'no-scroll' ) ; } this . _buildItems ( items ) ; this . jump ( index ) ; }
Reveal the showcase after scraping for items data.
Will scrape data from the activating node.
If a category exists, scrape data from multiple nodes.

@param {Element} node
Reveal the showcase after scraping for items data . Will scrape data from the activating node . If a category exists scrape data from multiple nodes .