blob: 0260871ae2d5ccd72f242faa9888d2533300d09e (
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
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Audio Axis</title>
<link href='http://fonts.googleapis.com/css?family=Cantarell' rel='stylesheet'>
<link href="/static/base.css" rel="stylesheet">
</head>
<body>
<header>
<img src="/static/audioaxis-white.png" alt="Audio Axis" class="aa">
</header>
<article>
{{range .Songs}}
<section class="song">
<div class="info">
<a href="http://www.youtube.com/watch?v={{.Yid}}">{{.Name}}</a>
</div>
<div class="user">
{{.User}}
</div>
<br class="clear">
<div class="thumb">
<img src="http://i.ytimg.com/vi/{{.Yid}}/1.jpg" alt="{{.Name}}">
</div>
<canvas id="{{.Yid}}" width="700" height="20"></canvas>
<br>
<img src="/static/player_play.png" alt="Play" onclick="play('{{.Yid}}')" id="play_{{.Yid}}">
<img src="/static/player_pause.png" alt="Pause" onclick="pause('{{.Yid}}')" id="pause_{{.Yid}}">
<img src="/static/player_stop.png" alt="Stop" onclick="stop('{{.Yid}}')">
<br class="clear">
</section>
{{else}}
No songs found
{{end}}
</article>
{{$first := index .Songs 0}}
<script>
var current_id = '{{$first.Yid}}';
var ids = [{{range .Songs}}'{{.Yid}}',{{end}}];
</script>
<script src="/static/script.js"></script>
<object data="http://www.youtube.com/v/{{$first.Yid}}?version=3&enablejsapi=1" id="player" width="1" height="1" type="application/x-shockwave-flash">
<param name="movie" value="http://www.youtube.com/v/{{$first.Yid}}?version=3&enablejsapi=1">
<param name="allowScriptAccess" value="always">
<embed src="http://www.youtube.com/v/{{$first.Yid}}?version=3&enablejsapi=1" allowScriptAccess="always">
</object>
</body>
</html>
|