Last active
August 29, 2015 14:25
-
-
Save jspinella/cfb82b81e9e8a00aeed8 to your computer and use it in GitHub Desktop.
Uses jQuery to fetch Font Awesome font-icon unicode values (in alphabetical order) from Font Awesome's website. Paste code into your browser's Js Developer Console while on Font Awesome's Cheatsheet page!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ParseFA-Unicode | |
// FontAwesome Unicode Values | |
var awesomeOutput= ""; | |
$(".col-md-4.col-sm-6.col-lg-3").children(".muted").each(function (i, element) { | |
var unicode = $(element).text(); // grabs text within HTML element | |
unicode = unicode.substring(1,8); // selects only the unicode values (not their enclosing brackets) | |
awesomeOutput += ('\n' + unicode); // puts each unicode value on its own line | |
}); | |
console.log(awesomeOutput); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment