git ssb

0+

Zach! / music-visions



Tree: 1c61b53a1012292e58ac4a7b2d2f450506a99711

Files: 1c61b53a1012292e58ac4a7b2d2f450506a99711 / views / songbook.js

514 bytesRaw
1const choo = require('choo')
2const html = require('choo/html')
3const cool = require('../dots.json')
4
5module.exports = (state, emit) => {
6 return html`
7 <div class='wrapper'>
8 <h1 class='title'>Music Visions</h1>
9 <div class=paper>
10 <ul>
11 ${state.dots.map(function (dot) {
12 return html`<li onclick=${change}>${dot.title}</li>`
13 })
14 }
15 </ul>
16 </div>
17 </div>
18 `
19 function change (data) {
20 var goods = data.path[0].innerHTML
21 emit('changeSong', goods)
22
23 }
24}
25
26
27

Built with git-ssb-web