diff options
Diffstat (limited to 'templates/p.html')
-rw-r--r-- | templates/p.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/p.html b/templates/p.html index 1098e0b..c6f6004 100644 --- a/templates/p.html +++ b/templates/p.html @@ -15,7 +15,7 @@ <input type="text" id="user" value="anonymous" size="16"> <br> <label for="song">Add a song:</label> - <input type="text" id="song" size="58" autocomplete="off"> + <input type="text" id="song" autocomplete="off"> <input type="submit" value="Search"> </form> <div id="results" onblur="$(this).slideUp()"><ul> @@ -25,7 +25,7 @@ {{range .Songs}} <section class="song"> <div class="info"> - <a href="http://www.youtube.com/watch?v={{.Yid}}">{{.Name}}</a> + <a href="http://www.youtube.com/watch?v={{.Yid}}">{{.Title}}</a> </div> <div class="user"> {{.User}} @@ -33,7 +33,7 @@ <div class="remove">×</div> <br class="clear"> <div class="thumb"> - <img src="http://i.ytimg.com/vi/{{.Yid}}/1.jpg" alt="{{.Name}}"> + <img src="http://i.ytimg.com/vi/{{.Yid}}/1.jpg" alt="{{.Yid}}"> </div> <canvas id="{{.Yid}}" width="700" height="20"></canvas> <br> @@ -48,6 +48,7 @@ </article> {{$first := index .Songs 0}} <script> + var pid = '{{.Id}}'; var current_id = '{{$first.Yid}}'; var ids = [{{range .Songs}}'{{.Yid}}',{{end}}]; </script> |