Skip to content

Instantly share code, notes, and snippets.

@tarex
Last active September 29, 2016 10:37
Show Gist options
  • Select an option

  • Save tarex/9e892938a9127e7c40687630e83f11a5 to your computer and use it in GitHub Desktop.

Select an option

Save tarex/9e892938a9127e7c40687630e83f11a5 to your computer and use it in GitHub Desktop.

Revisions

  1. tarex revised this gist Sep 29, 2016. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions fontawesome.js
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,11 @@
    var all = [];
    jQuery('#icons section').each(function(index, section) {
    var id = jQuery(this).attr('id');
    jQuery('#'+ id + ' .fa').each(function(index, iconrow) {
    all.push(jQuery(iconrow).attr('class'));
    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(JSON.stringify(all));
    console.log(all);
  2. tarex revised this gist Sep 29, 2016. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion fontawesome.js
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,6 @@ jQuery('#icons section').each(function(index, section) {
    jQuery('#'+ id + ' .fa').each(function(index, iconrow) {
    all.push(jQuery(iconrow).attr('class'));
    });
    });
    });

    console.log(JSON.stringify(all));
  3. tarex created this gist Sep 29, 2016.
    7 changes: 7 additions & 0 deletions fontawesome.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    var all = [];
    jQuery('#icons section').each(function(index, section) {
    var id = jQuery(this).attr('id');
    jQuery('#'+ id + ' .fa').each(function(index, iconrow) {
    all.push(jQuery(iconrow).attr('class'));
    });
    });