summaryrefslogtreecommitdiffstats
path: root/static/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/script.js')
-rw-r--r--static/script.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/static/script.js b/static/script.js
index 9407689..8e8e137 100644
--- a/static/script.js
+++ b/static/script.js
@@ -171,15 +171,14 @@ function add(id, title) {
function drawAdd(s) {
$('article').append('\
<section class="song" id="' + s.yid + '">\
+ <div class="thumb">\
+ <img src="http://i.ytimg.com/vi/' + s.yid + '/1.jpg" alt="' + s.yid + '">\
+ </div>\
<div class="info">\
<a href="http://www.youtube.com/watch?v=' + s.yid + '">' + s.title + '</a>\
</div>\
<div class="user">' + s.user + '</div>\
<div class="remove" onclick="remove(\'' + s.yid + '\')">×</div>\
- <br class="clear">\
- <div class="thumb">\
- <img src="http://i.ytimg.com/vi/' + s.yid + '/1.jpg" alt="' + s.yid + '">\
- </div>\
<canvas id="c_' + s.yid + '" width="700" height="20"></canvas>\
<br>\
<img src="/static/player_play.png" alt="Play" onclick="play(\'' + s.yid + '\')" id="play_' + s.yid + '">\