Adding title to iframe for screen readers.

This commit is contained in:
David Jay
2016-11-07 13:25:45 -05:00
parent 42c9f60586
commit f04e2505ec
@@ -9,7 +9,7 @@
<div id='coralStreamEmbed'></div>
<script type='text/javascript' src='http://pym.nprapps.org/pym.v1.min.js'></script>
<script>
var pymParent = new pym.Parent('coralStreamEmbed', 'index.html', {});
var pymParent = new pym.Parent('coralStreamEmbed', 'index.html', {title: 'comments'});
pymParent.onMessage('height', function(height) {document.querySelector('#coralStreamEmbed iframe').height = height + 'px'})</script>
</div>
</body>