Permalink
Browse files

blah

  • Loading branch information...
2 parents 529cfb2 + 66529ff commit 9b9388a56969b20f0821db202d1f623cc76e60e9 @antimatter15 committed Aug 21, 2012
Showing with 26 additions and 13 deletions.
  1. +9 −1 id3v2.js
  2. +12 −12 player.html
  3. +5 −0 player.manifest
View
@@ -609,11 +609,19 @@ parseFile: function(file, onComplete){
}
setTimeout(arguments.callee, 0);
})()
- reader.readAsBinaryString(file.slice(0, 128 * 1024));
+ reader.readAsBinaryString(fileSlice(file, 0, 128 * 1024));
return [reader, ID3v2.parseStream(read, onComplete)];
}
}
+
+function fileSlice(file, start, length){
+ if(file.mozSlice) return file.mozSlice(start, start + length);
+ if(file.webkitSlice) return file.webkitSlice(start, start + length);
+ if(file.slice) return file.slice(start, length);
+}
+
+
//doesnt quite belong here but doesnt quite belong elsewhere either
function guessSong(n){
var parts = unescape(n)
View
@@ -6,18 +6,18 @@
<style>
body {
background: #444;
-background-image: -webkit-gradient(
- linear,
- left top,
- right top,
- color-stop(0.8, rgb(133,133,133)),
- color-stop(1, rgb(68,68,68))
-);
-background-image: -moz-linear-gradient(
- left center,
- rgb(133,133,133) 80%,
- rgb(68,68,68) 100%
-);
+ background-image: -webkit-gradient(
+ linear,
+ left top,
+ right top,
+ color-stop(0.8, rgb(133,133,133)),
+ color-stop(1, rgb(68,68,68))
+ );
+ background-image: -moz-linear-gradient(
+ left center,
+ rgb(133,133,133) 80%,
+ rgb(68,68,68) 100%
+ );
font-family: sans-serif;
font-size: 14px;
margin: 0;
View
@@ -0,0 +1,5 @@
+CACHE MANIFEST
+#rev 6
+player.html
+id3v2.js
+16.png

0 comments on commit 9b9388a

Please sign in to comment.