pitaya-launcher/index.html
2015-08-26 17:53:46 +02:00

56 lines
1.4 KiB
HTML

<html>
<head>
<title>Lanceur - Pitaya</title>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<!-- Application root element -->
<div id="pitaya"></div>
<!-- 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}}
</script>
<script id="items-list-tpl" type="text/x-template">
<ul class="apps-list">
{{#each currentItem.items}}
{{> itemTpl currentItemPath=../currentItemPath}}
{{/each}}
</ul>
</script>
<script id="item-tpl" type="text/x-template">
<li class="app-item"
data-item-path="{{currentItemPath}}.{{@index}}">
<img class="app-icon" src="{{icon}}" />
<span class="app-label">{{label}}</span>
</li>
</script>
<!-- Scripts -->
<script type="text/javascript" src="js/dom.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<!-- Application bootstrapping -->
<script type="text/javascript">
Pitaya.start('#pitaya')
.then(function() {
console.info('Application started.');
})
.catch(function(err) {
console.error(err.stack ? err.stack : err);
})
;
</script>
</body>
</html>