// Adds links to Building Blocks from the ZURB library to each component page !function() { $.ajax({ url: 'https://zurb.com/library/api/building_blocks/type/buttons', dataType: 'jsonp', success: addBuildingBlocks }); function addBuildingBlocks(data) { var html = ''; $.each(data, function() { html += '

'+this.name+'

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolor, amet incidunt sint esse nihil eum repellendus necessitatibus officiis iusto reprehenderit, alias laudantium veniam ad. Soluta repellat nemo quaerat quis laboriosam.

'; }); $('[data-building-blocks]').each(function() { $(this).html(html); }); if ($('[data-building-blocks] .docs-bb').length === 0) { $('.docs-building-blocks').hide(0); } } }()