Gestion d'un nombre arbitraire de sous catégories + transitions

This commit is contained in:
2015-08-26 20:17:18 +02:00
parent 5b1cec8789
commit d6dad43b3f
5 changed files with 145 additions and 37 deletions

View File

@ -11,12 +11,15 @@
<!-- Templates -->
<script id="launcher-view-tpl" type="text/x-template">
{{#unless isRoot}}
<div class="category-header">
<h2><a href="#" class="goback" data-item-path="{{currentItemPath}}">&#8678;</a> {{currentItem.label}}</h2>
</div>
{{/unless}}
{{> itemListTpl}}
<div class="launcher">
{{#unless isRoot}}
<div class="category-header">
<a href="#" class="goback" data-item-path="{{currentItemPath}}">&#9668;</a>
<span class="category-label">{{currentItem.label}}</span>
</div>
{{/unless}}
{{> itemListTpl}}
</div>
</script>
<script id="items-list-tpl" type="text/x-template">
@ -37,6 +40,7 @@
<!-- Scripts -->
<script type="text/javascript" src="js/dom.js"></script>
<script type="text/javascript" src="js/anim.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<!-- Application bootstrapping -->