MoBetter News
Entertainment

Growing Up with Hip-Hop | Celebrity Crime Files

( function() {
var func = function() {
var iframe = document.getElementById(‘wpcom-iframe-61b34e749b0cab937ba0241af1241418’)
if ( iframe ) {
iframe.onload = function() {
iframe.contentWindow.postMessage( {
‘msg_type’: ‘poll_size’,
‘frame_id’: ‘wpcom-iframe-61b34e749b0cab937ba0241af1241418’
}, “https://embeds.go.ione.nyc” );
}
}

// Autosize iframe
var funcSizeResponse = function( e ) {

var origin = document.createElement( ‘a’ );
origin.href = e.origin;

// Verify message origin
if ( ’embeds.go.ione.nyc’ !== 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 ( ‘function’ === typeof window.addEventListener ) {
window.addEventListener( ‘message’, funcSizeResponse, false );
} else if ( ‘function’ === typeof window.attachEvent ) {
window.attachEvent( ‘onmessage’, funcSizeResponse );
}
}
if (document.readyState === ‘complete’) { func.apply(); /* compat for infinite scroll */ }
else if ( document.addEventListener ) { document.addEventListener( ‘DOMContentLoaded’, func, false ); }
else if ( document.attachEvent ) { document.attachEvent( ‘onreadystatechange’, func ); }
} )();

Read Full Post

Related posts

Comedian Aida Rodriguez Talks Fighting Racism, Tiffany Haddish & One Hour Special / BHL Tha Trend

bhlivederrial

Report: Juice WRLD Swallowed Pills to Hide From Feds

Rap-Up

From The ‘Flyest’ Guest Appearance to Kamala Harris’ Looks: The Funniest Tweets From The VP Debate

Jamila Lizet White