Revert "create snippets for json parsing"

This reverts commit 89725ff071de072fe2418f37d11acf89b38ba45d.
This commit is contained in:
Mike Koch 2015-04-30 17:31:39 -04:00
parent b3830b8b6f
commit 87be96ff49
3 changed files with 0 additions and 6433 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,13 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>JSON Parser</title>
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="parser.js"></script>
</head>
<body>
<ul id="output">
</ul>
<script>parseInput();</script>
</body>
</html>

View File

@ -1,17 +0,0 @@
var parseInput = function() {
var json = '';
$.getJSON('font-awesome-icons.json', function(data) {
json = data;
$.each(data.icons, function(key, val) {
$('#output').append('<li>' + parseCategories(val.categories) + '</li>');
});
});
}
var parseCategories = function(categories) {
var categoriesString = '';
$.each(categories, function(key, val) {
categoriesString += val + ',';
});
return categoriesString;
}