Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Github Emoji emoticons
javascript:(function(){function doRequest(url,cb){cb=cb||function(){};var xhr=new XMLHttpRequest;var requestUrl=url;xhr.open("GET",requestUrl,true);xhr.onreadystatechange=function(){var status;var data;if(xhr.readyState==4){status=xhr.status;if(status==200){cb(JSON.parse(xhr.responseText))}}};xhr.send()}var body=["<style>ul {margin:0; padding:0; text-align:center} li { display: inline-block; vertical-align: top; list-style: none; background: #eee; margin: 2em; border: 1px solid rgb(217, 217, 217); width: 15%;}</style><ul><!--"];var figure='--><li><figure><img src="%img%" alt=""><figcaption><b>:%txt%:</b></figcaption></figure></li><!--';doRequest("https://api.github.com/emojis",function(data){for(var key in data){body.push(figure.replace("%txt%",key).replace("%img%",data[key]))}body.push("--></ul>");document.body.innerHTML=body.join("")});})();
@dhoko

This comment has been minimized.

Copy link
Owner Author

dhoko commented Aug 26, 2014

@RomainMarecat

This comment has been minimized.

Copy link

RomainMarecat commented Jun 16, 2015

😄 cool !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.