PageSourceSearch

https://moriareviews.com/rongulator/wp-content/themes/twenty8teen/js/iframe-fix.js?ver=20180826

js moriareviews.com collected 2026-09-24 18:52:32 UTC 937 bytes, 26 lines download raw bytes

1/**
2 * Fix the aspect ratio of iframes, assuming CSS for overlay is defined.
3 * @package Twenty8teen
4 */
5( function($) {
6	var ignore = [
7		'.iframefix-ignore, .fitvidsignore',
8	  '.iframe-wrapper iframe',
9	  '.responsive-object iframe',
10	  '.video-container iframe',
11	  '.responsive-embed iframe',
12	  '.embed-responsive iframe',
13		'.wp-has-aspect-ratio iframe'
14	];
15	$('iframe')
16	  .not(ignore.join(',')).each(function() {
17			var $this = $(this),
18				height = ( $this.attr('height') && !isNaN(parseInt($this.attr('height'), 10)) )
19					? parseInt($this.attr('height'), 10) : null,
20				width = ( $this.attr('width') && !isNaN(parseInt($this.attr('width'), 10)) )
21					? parseInt($this.attr('width'), 10) : null,
22				ratio = (height && width) ? (height / width * 100).toPrecision(4) + '%' : '';
23	    $(this).wrap('<div class="iframe-wrapper"></div>')
24			.parent().css('padding-bottom', ratio);
25	  } );
26} )( window.jQuery || window.Zepto );

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.