OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html i18n-values="dir:textdirection;"> | 2 <html i18n-values="dir:textdirection;"> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <title>Media Playlist</title> | 5 <title>Media Playlist</title> |
6 <style type="text/css"> | 6 <style type="text/css"> |
7 body { | 7 body { |
8 background: #080809; | 8 background: #080809; |
9 } | 9 } |
10 | 10 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 } | 98 } |
99 }; | 99 }; |
100 | 100 |
101 function setPlaylistOffset(offset) { | 101 function setPlaylistOffset(offset) { |
102 chrome.mediaPlayerPrivate.playAt(offset); | 102 chrome.mediaPlayerPrivate.playAt(offset); |
103 }; | 103 }; |
104 | 104 |
105 function updateUI() { | 105 function updateUI() { |
106 var main = $('main'); | 106 var main = $('main'); |
107 if (currentPlaylist) { | 107 if (currentPlaylist) { |
108 main.innerHTML = ''; | 108 main.textContent = ''; |
109 var main = $('main'); | 109 var main = $('main'); |
110 for (var x = 0; x < currentPlaylist.length; x++) { | 110 for (var x = 0; x < currentPlaylist.length; x++) { |
111 var rowdiv = document.createElement('div'); | 111 var rowdiv = document.createElement('div'); |
112 rowdiv.className = 'playlistitem'; | 112 rowdiv.className = 'playlistitem'; |
113 | 113 |
114 var numberdiv = document.createElement('div'); | 114 var numberdiv = document.createElement('div'); |
115 numberdiv.className = 'tracknum'; | 115 numberdiv.className = 'tracknum'; |
116 numberdiv.textContent = '' + (x + 1); | 116 numberdiv.textContent = '' + (x + 1); |
117 rowdiv.appendChild(numberdiv); | 117 rowdiv.appendChild(numberdiv); |
118 | 118 |
(...skipping 27 matching lines...) Expand all Loading... |
146 currentPlaylist = playlist.items; | 146 currentPlaylist = playlist.items; |
147 currentOffset = playlist.position; | 147 currentOffset = playlist.position; |
148 updateUI(); | 148 updateUI(); |
149 }; | 149 }; |
150 </script> | 150 </script> |
151 <body onload='load();' onselectstart='return false'> | 151 <body onload='load();' onselectstart='return false'> |
152 <div id='main' class='playlist'> | 152 <div id='main' class='playlist'> |
153 </div> | 153 </div> |
154 </body> | 154 </body> |
155 </html> | 155 </html> |
OLD | NEW |