-
Notifications
You must be signed in to change notification settings - Fork 1
/
qcook.html
121 lines (117 loc) · 3.66 KB
/
qcook.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<div id="menu_layout">
<div class="left_col">
<ul class="nav nav-stacked" role="tablist">
<li role="presentation" class="active">
<a data-target="#recommended" aria-controls="recommended" role="tab" data-toggle="tab">
<!-- Could also use fa-thumbs-o-up for recommended -->
<span class="fa fa-check-square-o" aria-hidden="true"></span>
<span class="sr-only">Recommended</span>
</a>
</li>
<li role="presentation">
<a data-target="#favourites" aria-controls="favourites" role="tab" data-toggle="tab">
<span class="fa fa-star-o" aria-hidden="true"></span>
<span class="sr-only">Favourites</span>
</a>
</li>
<li role="presentation">
<a data-target="#alphabetical" aria-controls="alphabetical" role="tab" data-toggle="tab">
<span class="as-fa">A-Z</span>
</a>
</li>
<li class="spacer" aria-hidden="true"></li>
<li role="presentation">
<a data-target="#new" aria-controls="new" role="tab" data-toggle="tab">
<span class="fa fa-plus" aria-hidden="true"></span>
<span class="sr-only">New</span>
</a>
</li>
<li role="presentation">
<a data-target="#download" aria-controls="download" role="tab" data-toggle="tab">
<span class="fa fa-download" aria-hidden="true"></span>
<span class="sr-only">Download</span>
</a>
</li>
<li class="spacer" aria-hidden="true"></li>
<li role="presentation">
<a href="/">
<span class="fa fa-home" aria-hidden="true"></span>
<span class="sr-only">Home</span>
</a>
</li>
</ul>
</div>
<div class="center_col">
<h1>One Touch Cooking</h1>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="recommended">
<h2>Recomended</h2>
<ul class="btn-list">
<li ng-repeat="entry in index.entries | orderBy:'-score' | limitTo:5">
<a class="btn btn-default" ng-href="/qcook/{{entry.key}}">
<span class="title">{{entry.title}}</span>
<span class="score">{{entry.score}}</span>
</a>
</li>
</ul>
</div>
<div role="tabpanel" class="tab-pane" id="favourites">
<h2>Favourites</h2>
<ul class="btn-list">
<li ng-repeat="entry in index.entries | filter:{favourite:true}:true">
<a class="btn btn-default" ng-href="/qcook/{{entry.key}}">
<span class="title">{{entry.title}}</span>
<span class="score">{{entry.score}}</span>
</a>
</li>
</ul>
</div>
<div role="tabpanel" class="tab-pane" id="alphabetical">
<div class="scrollbar">
<div class="handle">
<div class="mousearea"></div>
</div>
<div class="bg">
ABCDEFGHIJKLMNOPQRSTUVWXYZ
</div>
</div>
<div class="frame">
<h2>Alphabetical</h2>
<ul class="btn-list slidee">
<li ng-repeat="entry in index.entries | orderBy:'title'">
<a class="btn btn-default" ng-href="/qcook/{{entry.key}}">
<span class="title">{{entry.title}}</span>
<span class="score">{{entry.score}}</span>
</a>
</li>
</ul>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="new">
<h2>New</h2>
</div>
<div role="tabpanel" class="tab-pane" id="download">
<h2>Download</h2>
</div>
</div>
</div>
</div>
<script src="sly/sly-1.6.1.js"></script>
<script>
var options = {
/* itemNav: 'basic', */
smart: 0,
activateOn: 'click',
mouseDragging: 1, // Click-dragging on frame
touchDragging: 1, // Touch-dragging on frame
releaseSwing: 1,
scrollBar: $('.scrollbar'),
scrollBy: 1,
dragHandle: 1, // Click-dragging on scrollbar handle
dynamicHandle: 0,
};
var frame = new Sly('#alphabetical .frame', options).init();
$('a[href="#alphabetical"]').on('shown.bs.tab', function(e) {
frame.reload();
});
</script>