<form id="wpcom-iframe-form-401a5a02ea14ee53b9a318795eb9ff47-5eb2f8744027f" method="post" action="https://wpcomwidgets.com/?wpcom_origin=https%3A%2F%2Fgrist.wordpress.com" style="display: none">
<input type="hidden" name="width" value="640" />
<input type="hidden" name="height" value="360" />
<input type="hidden" name="frameborder" value="0" />
<input type="hidden" name="style" value="" />
<input type="hidden" name="class" value="" />
<input type="hidden" name="scrolling" value="no" />
<input type="hidden" name="webkitallowfullscreen" value="" />
<input type="hidden" name="mozallowfullscreen" value="" />
<input type="hidden" name="allowfullscreen" value="" />
<input type="hidden" name="resize" value="0" />
<input type="hidden" name="replace_attributes" value="1" />
<input type="hidden" name="name" value="" />
<input type="hidden" name="fallback" value="<p class="protected-embed-fallback">This embed is invalid</p>" />
<input type="hidden" name="_data" value="PGlmcmFtZSBzcmM9Imh0dHBzOi8vcGxheWVyLnZpbWVvLmNvbS92aWRlby80MTUzMTQ3MjgiIHdpZHRoPSI2NDAiIGhlaWdodD0iMzYwIiBmcmFtZWJvcmRlcj0iMCIgYWxsb3c9ImF1dG9wbGF5OyBmdWxsc2NyZWVuIiBhbGxvd2Z1bGxzY3JlZW49IiIgY2xhc3M9IiIgc2Nyb2xsaW5nPSJubyIgcmVzaXplPSIwIiByZXBsYWNlX2F0dHJpYnV0ZXM9IjEiIG5hbWU9IiI+PC9pZnJhbWU+CjxwPjxhIGhyZWY9Imh0dHBzOi8vdmltZW8uY29tLzQxNTMxNDcyOCI+V2hhdCBEbyBZb3UgVHJ1c3Q/IENsaW1hdGUsIFNjaWVuY2UsIGFuZCBDT1ZJRC0xOSBVbmNlcnRhaW50eTwvYT4gZnJvbSA8YSBocmVmPSJodHRwczovL3ZpbWVvLmNvbS91c2VyMzA3MzgwODUiPkdyaXN0PC9hPiBvbiA8YSBocmVmPSJodHRwczovL3ZpbWVvLmNvbSI+VmltZW88L2E+LjwvcD4=,08bd26f8d44d8e072d95a1473d57fa2de0482bad" />
<input type="hidden" name="_tag" value="protected-iframe" />
<input type="hidden" name="_hash" value="401a5a02ea14ee53b9a318795eb9ff47" />
</form>
<iframe
name="wpcom-iframe-401a5a02ea14ee53b9a318795eb9ff47-5eb2f8744027f"
id="wpcom-iframe-401a5a02ea14ee53b9a318795eb9ff47-5eb2f8744027f"
frameborder="0"
scrolling="no"
width="640" height="360" webkitallowfullscreen mozallowfullscreen allowfullscreen class="wpcom-protected-iframe "
></iframe>
<script type="text/javascript">
( function() {
var func = function() {
var iframe_form = document.getElementById('wpcom-iframe-form-401a5a02ea14ee53b9a318795eb9ff47-5eb2f8744027f');
var iframe = document.getElementById('wpcom-iframe-401a5a02ea14ee53b9a318795eb9ff47-5eb2f8744027f');
if ( iframe_form && iframe ) {
iframe_form.submit();
iframe.onload = function() {
iframe.contentWindow.postMessage( {
'msg_type': 'poll_size',
'frame_id': 'wpcom-iframe-401a5a02ea14ee53b9a318795eb9ff47-5eb2f8744027f'
}, 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 ( '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( 'readystatechange', function(){
if (document.readyState === 'complete') {
func.apply();
}
}, false ); }
else if ( document.attachEvent ) { document.attachEvent( 'onreadystatechange', func ); }
} )();
Do you have more questions? We’ll keep answering them. Submit your questions below and find the answers in our bi-weekly Climate in the Time of Coronavirus newsletter. Sign up here!
<form id="wpcom-iframe-form-2aad340547acb65fe0e489fa101f694a-5eb2f874404bc" method="post" action="https://wpcomwidgets.com/?wpcom_origin=https%3A%2F%2Fgrist.wordpress.com" style="display: none">
<input type="hidden" name="width" value="" />
<input type="hidden" name="height" value="" />
<input type="hidden" name="frameborder" value="0" />
<input type="hidden" name="style" value="" />
<input type="hidden" name="class" value="" />
<input type="hidden" name="scrolling" value="no" />
<input type="hidden" name="webkitallowfullscreen" value="" />
<input type="hidden" name="mozallowfullscreen" value="" />
<input type="hidden" name="allowfullscreen" value="" />
<input type="hidden" name="resize" value="0" />
<input type="hidden" name="replace_attributes" value="1" />
<input type="hidden" name="name" value="" />
<input type="hidden" name="fallback" value="<p class="protected-embed-fallback">This embed is invalid</p>" />
<input type="hidden" name="_data" value="PHNjcmlwdCBhc3luYyBzcmM9Imh0dHBzOi8vbW9kdWxlcy53ZWFyZWhlYXJrZW4uY29tL2dyaXN0L2VtYmVkLzUyNDEuanMiPjwvc2NyaXB0Pg==,5a73321e814a7e8ac6747b4d61676122cfc3005a" />
<input type="hidden" name="_tag" value="protected-iframe" />
<input type="hidden" name="_hash" value="2aad340547acb65fe0e489fa101f694a" />
</form>
<iframe
name="wpcom-iframe-2aad340547acb65fe0e489fa101f694a-5eb2f874404bc"
id="wpcom-iframe-2aad340547acb65fe0e489fa101f694a-5eb2f874404bc"
frameborder="0"
scrolling="no"
webkitallowfullscreen mozallowfullscreen allowfullscreen class="wpcom-protected-iframe "
></iframe>
<script type="text/javascript">
( function() {
var func = function() {
var iframe_form = document.getElementById('wpcom-iframe-form-2aad340547acb65fe0e489fa101f694a-5eb2f874404bc');
var iframe = document.getElementById('wpcom-iframe-2aad340547acb65fe0e489fa101f694a-5eb2f874404bc');
if ( iframe_form && iframe ) {
iframe_form.submit();
iframe.onload = function() {
iframe.contentWindow.postMessage( {
'msg_type': 'poll_size',
'frame_id': 'wpcom-iframe-2aad340547acb65fe0e489fa101f694a-5eb2f874404bc'
}, 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 ( '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( 'readystatechange', function(){
if (document.readyState === 'complete') {
func.apply();
}
}, false ); }
else if ( document.attachEvent ) { document.attachEvent( 'onreadystatechange', func ); }
} )();
This story was originally published by Grist with the headline WATCH: COVID-19, Climate Justice, and Communities of Color. What’s next? on May 6, 2020.