Skip to content

Instantly share code, notes, and snippets.

@markhillard
Last active October 9, 2019 19:13
Show Gist options
  • Save markhillard/6fa8e193443c7fe148ad573f9232b7e6 to your computer and use it in GitHub Desktop.
Save markhillard/6fa8e193443c7fe148ad573f9232b7e6 to your computer and use it in GitHub Desktop.
The Great Wall of Gitmoji
<em class="πŸ˜€"></em>
$.getJSON("https://api.github.com/emojis", function(emoji) {
$.each(emoji, function(index, value) {
$('.πŸ˜€').append('<img src="' + value + '">');
});
});
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
.πŸ˜€ {
display:grid;
grid-column-gap:1rem;
grid-row-gap:1rem;
grid-template-columns:repeat(auto-fit, minmax(30px, 1fr));
padding:1rem;
}
.πŸ˜€ img {
height:auto;
max-width:100%;
width:100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment