author | ymh <ymh.work@gmail.com> |
Tue, 22 Nov 2016 14:04:03 +0100 | |
changeset 431 | 3e0a4a322f9e |
parent 404 | 0a5eef6ad2fe |
child 445 | b1e5ad6b2a29 |
permissions | -rw-r--r-- |
254 | 1 |
<div id="audio" class="{{if (if-or player.transcript player.model.video) ' extra'}}{{if (if-and player.transcript player.model.video) ' multiple'}}"> |
404
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
2 |
<div class="controls"> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
3 |
<i title="Précédent" class="fa fa-backward{{if isFirst ' disabled'}}" {{action 'backward'}}>Précédent</i> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
4 |
{{#if player.playing}} |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
5 |
<i title="Pause" class="fa fa-pause" {{action 'toggle'}}>Pause</i> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
6 |
{{else}} |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
7 |
<i title="Lecture" class="fa fa-play" {{action 'toggle'}}>Lecture</i> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
8 |
{{/if}} |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
9 |
<i title="Suivant" class="fa fa-forward{{if isLast ' disabled'}}" {{action 'forward'}}>Suivant</i> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
10 |
</div> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
11 |
<div class="progress"> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
12 |
<span class="head">{{to-minutes head}}</span> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
13 |
<span class="bar" onclick={{action 'setTime'}}><span class="value"></span></span> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
14 |
<span class="remaining">- {{to-minutes remaining}}</span> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
15 |
</div> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
16 |
<div class="controls extra"> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
17 |
{{#if player.model.video}} |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
18 |
{{#if player.videoscreen}} |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
19 |
<i title="Compress" class="fa fa-compress" {{action 'display' 'video'}}>Hide video</i> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
20 |
{{else}} |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
21 |
<i title="Expand" class="fa fa-expand" {{action 'display' 'video'}}>Show video</i> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
22 |
{{/if}} |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
23 |
{{/if}} |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
24 |
{{#if player.transcript}} |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
25 |
<i title="Transcript" class="fa fa-text-height{{if (eq player.window 'transcript') ' active'}}" {{action 'display' 'transcript'}}>Transcript</i> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
26 |
{{/if}} |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
27 |
</div> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
28 |
<div class="meta"> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
29 |
<p> |
431
3e0a4a322f9e
Improve scrolling title, uses css animations
ymh <ymh.work@gmail.com>
parents:
404
diff
changeset
|
30 |
{{ autoscroll-component text=item.title class='title' }} |
404
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
31 |
<div class="player-language-list"> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
32 |
{{#each item.languages as |lang index|}}{{if index ", "}}{{doc-language url=lang class="language"}}{{/each}} |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
33 |
</div> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
34 |
</p> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
35 |
<p> |
431
3e0a4a322f9e
Improve scrolling title, uses css animations
ymh <ymh.work@gmail.com>
parents:
404
diff
changeset
|
36 |
{{ autoscroll-component text=item.publishers_disp class='author' }} |
404
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
37 |
<span class="date">{{short-date item.issued}}</span> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
38 |
</p> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
39 |
</div> |
86
15ded106ef1a
add a player component to handle sound play/pause
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
40 |
</div> |
15ded106ef1a
add a player component to handle sound play/pause
nowmad@23.1.168.192.in-addr.arpa
parents:
diff
changeset
|
41 |
|
242 | 42 |
<div id="video"> |
404
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
43 |
<video id="popcorn-audio"> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
44 |
{{#each player.model.media as |medium|}} |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
45 |
<source src="{{ medium.url }}" type="{{ medium.format }}"> |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
46 |
{{/each}} |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
47 |
Your browser does not support the audio element. |
0a5eef6ad2fe
correction, change colors for discourse categories, add loding spinner
ymh <ymh.work@gmail.com>
parents:
401
diff
changeset
|
48 |
</video> |
242 | 49 |
</div> |