app/templates/_app.js
function createPlaceHolder($page, type) {
        var placeHolders = { kittens : 'placekitten.com', bears: 'placebear.com', lorem: 'lorempixel.com',
            bacon: 'baconmockup.com', murray: 'www.fillmurray.com'};
        var gallery = '';
        for (var i = 0; i < getRandomInt(50,100); i++) {
            gallery += '<li class="photoClass" style="background:url(http://' + placeHolders[type] + '/' +
                getRandomInt(200,300) + '/' + getRandomInt(200,300) + ') 50% 50% no-repeat"></li>';
        }
        $page.find('.photo-gallery').html(gallery);
        tt.refreshScroll(); // Refresh the scroller
        tt.scrollTo(0,0);   // Move back to the top of the page...
    }
function createPlaceHolder($page, type) {
        var placeHolders = { kittens : 'placekitten.com', bears: 'placebear.com', lorem: 'lorempixel.com',
            bacon: 'baconmockup.com', murray: 'www.fillmurray.com'};
        var gallery = '';
        for (var i = 0; i < getRandomInt(50,100); i++) {
            gallery += '<li class="photoClass" style="background:url(http://' + placeHolders[type] + '/' +
                getRandomInt(200,300) + '/' + getRandomInt(200,300) + ') 50% 50% no-repeat"></li>';
        }
        $page.find('.photo-gallery').html(gallery);
        tt.refreshScroll(); // Refresh the scroller
        tt.scrollTo(0,0);   // Move back to the top of the page...
    }
function createPlaceHolder ( $page , type ) { var placeHolders = { kittens : 'placekitten.com' , bears : 'placebear.com' , lorem : 'lorempixel.com' , bacon : 'baconmockup.com' , murray : 'www.fillmurray.com' } ; var gallery = '' ; for ( var i = 0 ; i < getRandomInt ( 50 , 100 ) ; i ++ ) { gallery += '<li class="photoClass" style="background:url(http://' + placeHolders [ type ] + '/' + getRandomInt ( 200 , 300 ) + '/' + getRandomInt ( 200 , 300 ) + ') 50% 50% no-repeat"></li>' ; } $page . find ( '.photo-gallery' ) . html ( gallery ) ; tt . refreshScroll ( ) ; // Refresh the scroller tt . scrollTo ( 0 , 0 ) ; // Move back to the top of the page... }
Create the placeholders in the gallery...
Create the placeholders in the gallery ...