|
@@ -14,14 +14,14 @@ with open(GROUPS_JSON, 'r') as f:
|
|
|
# Define category order
|
|
|
|
|
|
category_order = [
|
|
|
- {'id': 'people', 'name': 'Smileys & People', 'icon': '1f604'},
|
|
|
- {'id': 'nature', 'name': 'Animals & Nature', 'icon': '1f426'},
|
|
|
- {'id': 'food', 'name': 'Food & Drink', 'icon': '1f354'},
|
|
|
- {'id': 'activity', 'name': 'Activity', 'icon': '26bd'},
|
|
|
- {'id': 'travel', 'name': 'Travel & Places', 'icon': '2708'},
|
|
|
- {'id': 'objects', 'name': 'Objects', 'icon': '1f4a1'},
|
|
|
- {'id': 'symbols', 'name': 'Symbols', 'icon': '1f523'},
|
|
|
- {'id': 'flags', 'name': 'Flags', 'icon': '1f1ec-1f1e7'},
|
|
|
+ {'id': 'people', 'name': 'Smileys & People'},
|
|
|
+ {'id': 'nature', 'name': 'Animals & Nature'},
|
|
|
+ {'id': 'food', 'name': 'Food & Drink'},
|
|
|
+ {'id': 'activity', 'name': 'Activity'},
|
|
|
+ {'id': 'travel', 'name': 'Travel & Places'},
|
|
|
+ {'id': 'objects', 'name': 'Objects'},
|
|
|
+ {'id': 'symbols', 'name': 'Symbols'},
|
|
|
+ {'id': 'flags', 'name': 'Flags'},
|
|
|
]
|
|
|
|
|
|
|
|
@@ -38,7 +38,7 @@ for i, category in enumerate(category_order):
|
|
|
print(' <div class="tab">')
|
|
|
print(' <input type="radio" id="tab-%d" name="tabs"%s>' % (i, ' checked' if i == 0 else ''))
|
|
|
print(' <label for="tab-%d" title="%s">' % (i, category['name']))
|
|
|
- print(' <span class="em em-{0} em-{0}-{1}"></span>'.format(category['id'], category['icon']))
|
|
|
+ print(' <img src="/emoji/{0}.svg" class="em-{0}" height="24" width="24"></span>'.format(category['id']))
|
|
|
print(' </label>')
|
|
|
print(' <div class="content">')
|
|
|
for emoji in groups[category['id']]:
|