Brown: The quiet man died with a secret

( function() {
var func = function() {
var iframe_form = document.getElementById(‘wpcom-iframe-form-65b796aa4015bc599c60b899729b5b4e-5705be8b2b329’);
var iframe = document.getElementById(‘wpcom-iframe-65b796aa4015bc599c60b899729b5b4e-5705be8b2b329’);
if ( iframe_form && iframe ) {
iframe_form.submit();
iframe.onload = function() {
iframe.contentWindow.postMessage( {
‘msg_type’: ‘poll_size’,
‘frame_id’: ‘wpcom-iframe-65b796aa4015bc599c60b899729b5b4e-5705be8b2b329’
}, window.location.protocol + ‘//wpcomwidgets.com’ );
}
}

// Autosize iframe
var funcSizeResponse = function( e ) {
var origin = document.createElement( ‘a’ );
origin.href = e.origin;

// Verify message origin
if ( ‘wpcomwidgets.com’ !== origin.host )
return;

// Verify message is in a format we expect
if ( ‘object’ !== typeof e.data || undefined === e.data.msg_type )
return;

switch ( e.data.msg_type ) {
case ‘poll_size:response’:
var iframe = document.getElementById( e.data._request.frame_id );

if ( iframe && ” === iframe.width )
iframe.width = ‘100%’;
if ( iframe && ” === iframe.height )
iframe.height = parseInt( e.data.height );

return;
default:
return;
}
}

if

Aggregated News

Aggregated news from around the world, brought to you in a single source for convenience. These snippets of news include a link to the full article. Please peruse our other editorial and original content, as well.