Skip to content

W.ipsum #16

@rc1

Description

@rc1
function fakeText () {
    return W.range( Math.floor( 1 + (Math.random() * 5) ) ).map( fakeParagraph  ).join( '' );
}

function fakeParagraph () {

    var text = [ 'You', 'asymmetrical', 'organic', 'four', 'loko', 'keffiyeh,', 'pug', 'pop-up', 'fixie.', 'Narwhal', 'lumbersexual', 'High', 'Life', 'cred,', 'umami', 'chambray', 'aesthetic', 'ugh', 'Thundercats', 'sartorial', 'Wes', 'Anderson', 'health', 'goth', 'occupy.', 'Cronut', 'lo-fi', 'raw', 'denim', 'banh', 'mi.', 'Master', 'cleanse', 'locavore', 'dreamcatcher,', 'tousled', 'craft', 'beer', 'Schlitz', 'artisan', 'actually', 'organic', 'deep', 'v', 'meh', 'normcore', 'chillwave.', 'Street', 'art', 'church-key', 'next', 'level,', 'pug', 'photo', 'booth', 'Godard', 'meh.', 'Aesthetic', 'forage', 'letterpress,', 'stumptown', 'master', 'cleanse', 'XOXO', 'keffiyeh', 'lomo', 'iPhone', 'yr', 'Intelligentsia.', 'Tattooed', 'heirloom', 'keffiyeh,', '90\'s', 'flannel', 'gluten-free', 'High', 'Life', 'Carles', 'cliche', 'try-hard', 'before', 'they', 'sold', 'out' ];

    text = W.shuffleArray( text ).map( s => s.toLowerCase() );
    text = W.take( text, W.randomBetween( 3, text.length ) );

    return '<p>' + capitalizeFirstLetter( text.join( ' ' ) ) + '</p>';
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions