aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/player.template.html
blob: 5b5a7ab6979e8b9265e713367d030c91dc1d11a6 (plain)
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
<div class="container-fluid">
    <div class="row align-items-center mt-3">
        <div class="col-2 text-left">
            <button type="button" class="btn btn-light">
                <i class="fas fa-retweet"></i>
            </button>
        </div>
        <div class="col-8 text-center">
            {{ metadata.track.title }}
        </div>
        <div class="col-2">

        </div>
    </div>
    <div class="row">
        <div class="col-2 text-left">
            {{ getPosition }}
        </div>
        <div class="col-8 text-center">
            {{ metadata.track.artist }}
        </div>
        <div class="col-2 text-right">
            {{ getDuration }}
        </div>
    </div>
    <div class="row">
        <div class="col-12">
            <div class="progress">
                <div class="progress-bar" role="progressbar" style="width: {{getPercentage}}%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
            </div>
        </div>
    </div>
    <div class="row my-3">
        <div class="col-12 text-center">
            <button type="button" class="btn btn-primary" onclick="player.previous()">
                <i class="fas fa-arrow-left"></i>
            </button>
            {{ #isPlaying }}
                <button type="button" class="btn btn-primary" onclick="player.pause()">
                    <i class="fas fa-pause"></i>
                </button>
            {{ /isPlaying }}
            {{ ^isPlaying }}
                <button type="button" class="btn btn-primary" onclick="player.play()">
                    <i class="fas fa-play"></i>
                </button>
            {{ /isPlaying }}
            <button type="button" class="btn btn-primary" onclick="player.next()">
                <i class="fas fa-arrow-right"></i>
            </button>
        </div>
    </div>
</div>