Last active
February 16, 2017 09:32
-
-
Save ioncodes/356c06f549fb0784e7c77359733518d5 to your computer and use it in GitHub Desktop.
Scrapes ionicons from http://ionicons.com/cheatsheet.html
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 ionicons = document.getElementsByClassName('icon'); | |
var icons = []; | |
for(var i = 0; i < ionicons.length; i++) { | |
if(i%10 === 0) { | |
icons.push(ionicons[i].className.split(' ').pop()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment