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.

Revisions

  1. markhillard revised this gist Oct 9, 2019. 1 changed file with 0 additions and 7 deletions.
    7 changes: 0 additions & 7 deletions the-great-wall-of-gitmoji.markdown
    Original file line number Diff line number Diff line change
    @@ -1,7 +0,0 @@
    The Great Wall of Gitmoji
    -------------------------
    Just using https://api.github.com/emojis to mess around with CSS grid.

    A [Pen](https://codepen.io/markhillard/pen/oEErdG) by [Mark Hillard](https://codepen.io/markhillard) on [CodePen](https://codepen.io).

    [License](https://codepen.io/markhillard/pen/oEErdG/license).
  2. markhillard revised this gist Oct 9, 2019. 3 changed files with 13 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions script.js
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,9 @@ $.getJSON('https://api.github.com/emojis', function(emoji) {
    $.each(emoji, function(key, value) {
    $('.πŸ˜€').append('<img src="' + value + '" title="' + key + '">');
    });
    });

    $(document).on('click', '.πŸ˜€ img', function () {
    var code = $(this).attr('title');
    prompt('Copy to clipboard: Ctrl+C, Enter', ':' + code + ':');
    });
    1 change: 1 addition & 0 deletions style.css
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,7 @@ padding:1rem;
    }

    .πŸ˜€ img {
    cursor:pointer;
    height:auto;
    max-width:100%;
    width:100%;
    7 changes: 7 additions & 0 deletions the-great-wall-of-gitmoji.markdown
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    The Great Wall of Gitmoji
    -------------------------
    Just using https://api.github.com/emojis to mess around with CSS grid.

    A [Pen](https://codepen.io/markhillard/pen/oEErdG) by [Mark Hillard](https://codepen.io/markhillard) on [CodePen](https://codepen.io).

    [License](https://codepen.io/markhillard/pen/oEErdG/license).
  3. markhillard revised this gist Jul 3, 2018. 1 changed file with 0 additions and 7 deletions.
    7 changes: 0 additions & 7 deletions the-great-wall-of-gitmoji.markdown
    Original file line number Diff line number Diff line change
    @@ -1,7 +0,0 @@
    The Great Wall of Gitmoji
    -------------------------
    Just using https://api.github.com/emojis to mess around with CSS grid.

    A [Pen](https://codepen.io/markhillard/pen/oEErdG) by [Mark Hillard](https://codepen.io/markhillard) on [CodePen](https://codepen.io).

    [License](https://codepen.io/markhillard/pen/oEErdG/license).
  4. markhillard revised this gist Jul 3, 2018. 4 changed files with 13 additions and 6 deletions.
    2 changes: 1 addition & 1 deletion index.html
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    <em class="πŸ˜€"></em>
    <div class="πŸ˜€"></div>
    8 changes: 4 additions & 4 deletions script.js
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    $.getJSON("https://api.github.com/emojis", function(emoji) {
    $.each(emoji, function(index, value) {
    $('.πŸ˜€').append('<img src="' + value + '">');
    $.getJSON('https://api.github.com/emojis', function(emoji) {
    $.each(emoji, function(key, value) {
    $('.πŸ˜€').append('<img src="' + value + '" title="' + key + '">');
    });
    });
    });
    2 changes: 1 addition & 1 deletion style.css
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,4 @@ padding:1rem;
    height:auto;
    max-width:100%;
    width:100%;
    }
    }
    7 changes: 7 additions & 0 deletions the-great-wall-of-gitmoji.markdown
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    The Great Wall of Gitmoji
    -------------------------
    Just using https://api.github.com/emojis to mess around with CSS grid.

    A [Pen](https://codepen.io/markhillard/pen/oEErdG) by [Mark Hillard](https://codepen.io/markhillard) on [CodePen](https://codepen.io).

    [License](https://codepen.io/markhillard/pen/oEErdG/license).
  5. markhillard renamed this gist Mar 14, 2018. 1 changed file with 0 additions and 0 deletions.
  6. markhillard created this gist Mar 14, 2018.
    1 change: 1 addition & 0 deletions index.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    <em class="πŸ˜€"></em>
    5 changes: 5 additions & 0 deletions script.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    $.getJSON("https://api.github.com/emojis", function(emoji) {
    $.each(emoji, function(index, value) {
    $('.πŸ˜€').append('<img src="' + value + '">');
    });
    });
    1 change: 1 addition & 0 deletions scripts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    13 changes: 13 additions & 0 deletions style.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    .πŸ˜€ {
    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%;
    }
    7 changes: 7 additions & 0 deletions the-great-wall-of-gitmoji.markdown
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    The Great Wall of Gitmoji
    -------------------------
    Just using https://api.github.com/emojis to mess around with CSS grid.

    A [Pen](https://codepen.io/markhillard/pen/oEErdG) by [Mark Hillard](https://codepen.io/markhillard) on [CodePen](https://codepen.io).

    [License](https://codepen.io/markhillard/pen/oEErdG/license).