git ssb

0+

cel / pull-postmsg



Tree: 3483d9b13e2262c88a5b0f30ad66e581d4e8a555

Files: 3483d9b13e2262c88a5b0f30ad66e581d4e8a555 / example / inner.html

435 bytesRaw
1<!doctype html>
2<html>
3 <head>
4 <meta charset=utf-8>
5 </head>
6 <body>
7 inner
8 <pre id="out"></pre>
9
10 <script src="bundle.js"></script>
11 <script>
12 function print(str) {
13 document.getElementById('out').appendChild(document.createTextNode(str + '\n'))
14 }
15
16 pull(
17 pull.values(['from inner', 1, 2, 3]),
18 Postmsg(window.parent),
19 pull.drain(print, print)
20 )
21 </script>
22 </body>
23</html>
24

Built with git-ssb-web