Created
March 26, 2020 12:21
-
-
Save wlarch/80d63a1037dc673d5783e05c02706b7a to your computer and use it in GitHub Desktop.
wordpress-iframe-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Resize the iframe on request. */ | |
if ( 'height' === data.message ) { | |
height = parseInt( data.value, 10 ); | |
if ( height > 1000 ) { | |
height = 1000; | |
} else if ( ~~height < 200 ) { | |
height = 200; | |
} | |
source.height = height; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment