Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<script>
if ((!document.addEventListener) || (!Array.prototype.indexOf) || (!Array.prototype.forEach) ) {
document.write('<sc' + 'ript src="http://local.bbc.co.uk:1031/news/special/2014/newsspec_7978/content/english/js/lib/vendors/legacy-ie-polyfills.js?v=0.1.0"></sc' + 'ript>');
}
</script>
<div>
<a href="http://local.bbc.co.uk:1031/news/special/2014/newsspec_7978/content/english/frame_1.html?v=0.1.0" id="responsive-iframe-98623215" data-static-iframe-height="600">iFrame</a>
</div>
<div>
<a href="http://local.bbc.co.uk:1031/news/special/2014/newsspec_7978/content/english/frame_2.html?v=0.1.0" id="responsive-iframe-12343854" data-static-iframe-height="600">iFrame</a>
</div>
<div>
<a href="http://local.bbc.co.uk:1031/news/special/2014/newsspec_7978/content/english/frame_3.html?v=0.1.0" id="responsive-iframe-96784321" data-static-iframe-height="600">iFrame</a>
</div>
<script type="text/javascript">(function () {
var IframeWatcher = function (linkId) {
...
};
var iframe_register = [], // append iframe references to this instead of the global object
iframe_1 = new IframeWatcher('responsive-iframe-98623215', iframe_register),
iframe_2 = new IframeWatcher('responsive-iframe-12343854', iframe_register),
iframe_3 = new IframeWatcher('responsive-iframe-96784321', iframe_register);
})();</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment