The player is playing!

This commit is contained in:
Gregory Eremin
2012-09-02 02:03:19 +04:00
parent 43422624f1
commit 9f770892f8
29 changed files with 422 additions and 57 deletions
@@ -0,0 +1,7 @@
$ ->
$(".auth a").bind "mouseup", (e) ->
e.preventDefault()
if BeatHaven.authenticated
alert("auth ok!!!!!")
else
BeatHaven.VK.popup()
@@ -0,0 +1,9 @@
$ ->
$(".player .controls .prev").live "click", (e) ->
BH.Player.prev()
$(".player .controls .play").live "click", (e) ->
BH.Player.play()
$(".player .controls .pause").live "click", (e) ->
BH.Player.pause()
$(".player .controls .next").live "click", (e) ->
BH.Player.next()
@@ -0,0 +1,5 @@
$ ->
$(".track-play").live "click", (e) ->
e.preventDefault()
id = parseInt($(this).parent().data("id"), 10)
BH.Player.tracks.get(id).play()