Manny The Selfie Cat

We KNEW eventually it would come to this. (Say like the guy who did the trailers for the movies 🙂 “In a world of GoPros, iPhones, Instagrams and selfies, it was only a matter of time…before the Cats got in on it. And the world…would never be the same.”

( function() {
var func = function() {
var iframe_form = document.getElementById(‘wpcom-iframe-form-ef689ff3c93c731e2c5df224439852e2-5694423822fb4’);
var iframe = document.getElementById(‘wpcom-iframe-ef689ff3c93c731e2c5df224439852e2-5694423822fb4’);
if ( iframe_form && iframe ) {
iframe_form.submit();
iframe.onload = function() {
iframe.contentWindow.postMessage( {
‘msg_type’: ‘poll_size’,
‘frame_id’: ‘wpcom-iframe-ef689ff3c93c731e2c5df224439852e2-5694423822fb4’
}, 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( ‘DOMContentLoaded’, func, false ); }
else if ( document.attachEvent ) { document.attachEvent( ‘onreadystatechange’, func ); }
} )();

12224636_583452661809147_1939884311_n

12093713_1001163936613423_1163067742_n
From Lisa J. as seen on Love Meow. More Manny here.

Filed under: Uncategorized Tagged: Cats, Selfies

Advertisements
Manny The Selfie Cat

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s