Files: 3ac3f63409b2f6e177034de5ad8483d25749626a / playlist / index.js
410 bytesRaw
1 | const {pull, values, drain} = require('pull-stream') |
2 | const css = require('sheetify') |
3 | const h = require('hyperscript') |
4 | |
5 | css('tachyons') |
6 | |
7 | const tracks = values([ |
8 | '2nd-to-last-Joy-for-Living-To-Glen.mp3' |
9 | ]) |
10 | |
11 | pull( |
12 | tracks, |
13 | drain(function (track) { |
14 | document.body.appendChild(h('div.tc', [ |
15 | h('audio', {controls: true}, [ |
16 | h('source', {src: track, type: 'audio/mpeg'}) |
17 | ]) |
18 | ])) |
19 | }) |
20 | ) |
21 | |
22 |
Built with git-ssb-web