Permalink
Browse files

added new songs. fixed pause bug

  • Loading branch information...
1 parent 56c3fcf commit 1db6273b7a6f99f55f5e3f67369e9b01f22696b2 Andrew Glass committed Dec 26, 2012
@@ -36,7 +36,7 @@ playlistHandler = ->
title = $("a[data-track=#{trackNumber}]").attr('data-title')
$(".mp3player").attr('src', song)
$(".mp3player").attr('data-current', track)
- $(".mp3player").attr('autoplay', "true")
+ $(".mp3player")[0].play()
turnOnSongImage(trackNumber)
return false
@@ -50,10 +50,10 @@ playlistHandler = ->
pausePlayer = ->
console.log("stoppin")
- $(".mp3player").trigger('stop');
+ $(".mp3player")[0].pause()
unPausePlayer = ->
console.log("playin")
- $(".mp3player").trigger('play');
+ $(".mp3player")[0].play()
@@ -9,11 +9,22 @@
body {background-color: #C1DAD6;}
+
+// body {
+// background-size: cover;
+// background: rgb(124,214,197); /* Old browsers */
+// background: -moz-linear-gradient(top, rgba(124,214,197,1) 0%, rgba(203,216,214,1) 100%); /* FF3.6+ */
+// background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(124,214,197,1)), color-stop(100%,rgba(203,216,214,1))); /* Chrome,Safari4+ */
+// background: -webkit-linear-gradient(top, rgba(124,214,197,1) 0%,rgba(203,216,214,1) 100%); /* Chrome10+,Safari5.1+ */
+// background: -o-linear-gradient(top, rgba(124,214,197,1) 0%,rgba(203,216,214,1) 100%); /* Opera 11.10+ */
+// background: -ms-linear-gradient(top, rgba(124,214,197,1) 0%,rgba(203,216,214,1) 100%); /* IE10+ */
+// background: linear-gradient(to bottom, rgba(124,214,197,1) 0%,rgba(203,216,214,1) 100%); /* W3C */
+// filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7cd6c5', endColorstr='#cbd8d6',GradientType=0 ); /* IE6-9 */}
// body {background-image: -radial-gradient(color-stops(#c00, #fff, #00c 50px));}
-#whale-container { display: block; float: left; margin: 6% 0 0 6%; }
-#song-container { display: block; float: left; margin: 6% 0 50px 12px;}
+#whale-container { display: block; float: left; margin: 15% 0 0 6%; }
+#song-container { display: block; float: left; margin: 15% 0 50px 12px;}
#whale-img { max-width: 450px; width: 100%;}
@@ -61,4 +61,4 @@
</div> -->
</div>
- <audio id="player" class="mp3player" width="300" height="32" src="" controls="controls" data-current="" preload="auto" autoplay="false" autobuffer=""></audio>
+ <audio id="player" class="mp3player" width="300" height="32" src="" controls="controls" data-current="" autobuffer=""></audio>
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 1db6273

Please sign in to comment.