add header
This commit is contained in:
21
main/views/player.js
Normal file
21
main/views/player.js
Normal file
@@ -0,0 +1,21 @@
|
||||
module.exports = Player
|
||||
|
||||
var h = require('virtual-dom/h')
|
||||
|
||||
function Player (state, dispatch) {
|
||||
return h('.player', [
|
||||
h('video', {
|
||||
src: state.server.localURL,
|
||||
autoplay: true,
|
||||
controls: true
|
||||
}),
|
||||
h('a.close', {
|
||||
onclick: closePlayer
|
||||
}, 'Close')
|
||||
])
|
||||
|
||||
function closePlayer () {
|
||||
dispatch('closePlayer')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user