add header

This commit is contained in:
Feross Aboukhadijeh
2016-03-02 17:59:59 -08:00
parent 74fc8b11ea
commit 6d95cd7285
6 changed files with 170 additions and 121 deletions

21
main/views/player.js Normal file
View 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')
}
}