kek
This commit is contained in:
parent
396ab27aaa
commit
0f8a23c434
@ -1,11 +1,8 @@
|
||||
(function () {
|
||||
var table = document.querySelector('#ttable')
|
||||
var input = document.querySelector('#search')
|
||||
var audio = document.querySelector('#player')
|
||||
var playing = document.querySelector('#playing')
|
||||
|
||||
var next = document.querySelector('#player-next')
|
||||
var prev = document.querySelector('#player-prev')
|
||||
var table = document.getElementById('#ttable')
|
||||
var input = document.getElementById('#search')
|
||||
var audio = document.getElementById('#player')
|
||||
var playing = document.getElementById('#playing')
|
||||
|
||||
var tableHead = '<tr> \
|
||||
<th class="small">#</th> \
|
||||
@ -156,11 +153,11 @@
|
||||
play(nowPlaying + 1)
|
||||
})
|
||||
|
||||
next.addEventListener('click', function (e) {
|
||||
document.getElementById('player-next').addEventListener('click', function (e) {
|
||||
play(nowPlaying + 1)
|
||||
})
|
||||
|
||||
prev.addEventListener('click', function (e) {
|
||||
document.getElementById('player-prev').addEventListener('click', function (e) {
|
||||
play(nowPlaying - 1)
|
||||
})
|
||||
|
||||
@ -180,8 +177,6 @@
|
||||
showTracks(pages)
|
||||
}, false)
|
||||
|
||||
showTracks(1)
|
||||
|
||||
function handleHash (hash) {
|
||||
if (hash.indexOf('#') === 0) hash = hash.substr(1)
|
||||
if (hash.length === 0) return
|
||||
@ -199,5 +194,6 @@
|
||||
handleHash(window.location.hash)
|
||||
}, false)
|
||||
|
||||
showTracks(1)
|
||||
handleHash(window.location.hash)
|
||||
})()
|
||||
|
Loading…
Reference in New Issue
Block a user