Jada Pinkett Smith Reveals Son Jaden 'Wasn’t Planned: 'It Was Very Challenging'

( function() {

var func = function() {

var iframe_form = document.getElementById('wpcom-iframe-form-9499ab5ded900c3d457ab49520c0af18-5b21ad51c63c6');

var iframe = document.getElementById('wpcom-iframe-9499ab5ded900c3d457ab49520c0af18-5b21ad51c63c6');

if ( iframe_form && iframe ) {

iframe_form.submit();

iframe.onload = function() {

iframe.contentWindow.postMessage( {

'msg_type': 'poll_size',

'frame_id': 'wpcom-iframe-9499ab5ded900c3d457ab49520c0af18-5b21ad51c63c6'

}, 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 (...

Read More »

By: People.com - Wednesday, 13 June

Related Posts