-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (40 loc) · 1.59 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>WebDJ</title>
<!--Google Icons-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Vue-->
<script src="https://unpkg.com/vue"></script>
<script defer src="app.js"></script>
<link rel="stylesheet" type="text/css" href="styles.css" />
<!--Theming-->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ffffff">
</head>
<body>
<img src="logo.png" id="logo"/>
<div id="app">
<!--The left deck is at full volume when the fader == 0-->
<audio-deck :deck="decks.left" :gain="1 - faderPosition"></audio-deck>
<div>
<!--List of tracks in our playlist-->
<div class="tracklist">
<div v-for="track in tracks">
<button type="button" @click="loadTrack('left', track)"><</button>
{{ track.title }}
<button type="button" @click="loadTrack('right', track)">></button>
</div>
</div>
<input type="range" class="crossfader" v-model="faderPosition"
min="0" max="1" step=".01"/>
</div>
<!--The right deck is at full volume when the fader == 1-->
<audio-deck :deck="decks.right" :gain="faderPosition"></audio-deck>
</div>
</body>
</html>