Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
yutin1987 committed Mar 8, 2013
1 parent 4326e26 commit d47815d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions dev/coffee/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ $ ->

userAgent = navigator.userAgent.toLowerCase()
type = 'ogg'
type = "mp3" if navigator.userAgent.toLowerCase().indexOf("msie")>0
type = "m4a" if navigator.userAgent.toLowerCase().indexOf("safari")>0
type = "mp3" if userAgent.indexOf("msie")>0
type = "m4a" if userAgent.indexOf("safari")>0

audio.src = "./multimedia/harlem_shake." + type
audio.src = "http://sw5dev.myqnapcloud.com/wbc/harlem_shake." + type
audio.preload = "auto";
audio.addEventListener 'loadeddata', () ->
btnPlay.on('click', play)
Expand Down
6 changes: 3 additions & 3 deletions dev/script/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions script/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d47815d

Please sign in to comment.