Last active
September 29, 2016 10:37
-
-
Save tarex/9e892938a9127e7c40687630e83f11a5 to your computer and use it in GitHub Desktop.
font awesome grabbing from dom
This file contains hidden or 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
var all = []; | |
jQuery('#icons section').each(function(index, section) { | |
var id = jQuery(this).attr('id'); | |
jQuery('#'+ id + ' a').each(function(index, iconrow) { | |
all.push({ | |
name: jQuery(this).text().replace('Example of','').replace(/^\s+/g, ""), | |
className: jQuery(this).children('i').attr('class') | |
}); | |
}); | |
}); | |
console.log(all); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment