Created
April 13, 2016 09:48
-
-
Save loujaybee/eb3b57b6d2e5c9065455da98ca82de7f to your computer and use it in GitHub Desktop.
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
/* | |
fa-bug | |
fa-balance-scale | |
fa-list-ul | |
fa-plus | |
fa-times-circle | |
fa-bars | |
fa-book | |
fa-1 | |
fa-minus | |
fa-search | |
fa-users | |
fa-minus-circle | |
fa-caret-down | |
fa-user | |
fa-warning | |
fa-chevron-right | |
fa-smile-o | |
fa-arrow-right | |
fa-arrow-down | |
fa-chevron-left | |
fa-exclamation-triangle | |
fa-angle-double-down | |
fa-circle-o-notch | |
fa-hand-o-right | |
fa-trash | |
fa-plus-circle | |
fa-circle | |
fa-cloud-upload | |
fa-repeat | |
fa-undo | |
fa-toggle-off | |
fa-lg | |
fa-times | |
fa-square-o | |
fa-check-square-o | |
fa-area-chart | |
fa-floppy-o | |
*/ | |
window.font_awesome_values = []; | |
window.runFontAwesomeFinder = function() { | |
var classes = _.chain($('.fa')) | |
.map(function(item) { | |
var has_class = $(item).attr('class').match(/fa-(\S+)/) | |
return has_class ? has_class[0] : ''; | |
}) | |
.value(); | |
pushClassesToValues(classes); | |
}; | |
window.pushClassesToValues = function(values_to_add) { | |
clear(); | |
console.log('adding', values_to_add.length); | |
font_awesome_values = font_awesome_values.concat(values_to_add); | |
font_awesome_values = _.uniq(font_awesome_values); | |
console.log('Total found: ', font_awesome_values.length); | |
console.log(font_awesome_values) | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment