mirror of
https://github.com/pablouser1/ProxiTok.git
synced 2024-12-06 19:27:30 +01:00
Wrapper update + Search by music id
This commit is contained in:
@@ -19,6 +19,14 @@ const goToVideo = e => {
|
||||
window.location.href = `./video/${video_id}`
|
||||
}
|
||||
|
||||
const goToMusic = e => {
|
||||
e.preventDefault()
|
||||
const formData = new FormData(e.target)
|
||||
const video_id = formData.get('music_id')
|
||||
window.location.href = `./music/${video_id}`
|
||||
}
|
||||
|
||||
document.getElementById('username_form').addEventListener('submit', goToUser, false)
|
||||
document.getElementById('tag_form').addEventListener('submit', goToTag, false)
|
||||
document.getElementById('video_form').addEventListener('submit', goToVideo, false)
|
||||
document.getElementById('music_form').addEventListener('submit', goToMusic, false)
|
||||
|
||||
Reference in New Issue
Block a user