git ssb

0+

cel / pull-postmsg



Tree: 0e406483fa15d28f0f5eda0c569b37021fa66136

Files: 0e406483fa15d28f0f5eda0c569b37021fa66136 / example / index.html

468 bytesRaw
1<!doctype html>
2<html>
3 <head>
4 <meta charset=utf-8>
5 </head>
6 <body>
7 <iframe id="frame" src="inner.html"></iframe>
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 outer', 'a', 'b', 'c']),
18 Postmsg(),
19 pull.drain(print, print)
20 )
21 </script>
22 </body>
23</html>
24

Built with git-ssb-web