PageSourceSearch

https://www.digitalguitararchive.com/wp-content/plugins/themeisle-…/js/obfx-grid.js?ver=1.0.6

js digitalguitararchive.com collected 2026-10-01 12:37:35 UTC 1,580 bytes, 62 lines download raw bytes

1/* global elementor */
2(function ($) {
3
4	$( document ).ready(
5		function () {
6			checkImageSize();
7		}
8	);
9
10	$( window ).resize(
11		function () {
12			checkImageSize();
13		}
14	);
15
16	if ( typeof elementor !== 'undefined' ) {
17		$( window ).on(
18			'elementor/frontend/init', function () {
19                elementor.hooks.addAction(
20					'panel/open_editor/widget/obfx-posts-grid', function ( panel ) {
21						var $element = panel.$el.find( '.elementor-control-section_grid_image' );
22						$element.click(
23							function () {
24								panel.$el.find( '.elementor-control-grid_image_height .elementor-control-input-wrapper' ).mouseup(
25									function () {
26										checkImageSize();
27									}
28								);
29							}
30						);
31					}
32				);
33			}
34		);
35	}
36
37	/**
38	 * Check the container and image size.
39	 */
40	function checkImageSize() {
41		$( '.obfx-grid .obfx-grid-col' ).each(
42			function () {
43				var container = $( this ).find( '.obfx-grid-col-image' ),
44					containerWidth = $( this ).find( '.obfx-grid-col-image' ).width(),
45					containerHeight = $( this ).find( '.obfx-grid-col-image' ).height(),
46					imageWidth = $( this ).find( '.obfx-grid-col-image img' ).width(),
47					imageHeight = $( this ).find( '.obfx-grid-col-image img' ).height();
48
49				if ( $( this ).find( '.obfx-grid-col-image' ).length > 0 ) {
50					if ( containerHeight > imageHeight ) {
51						container.addClass( 'obfx-fit-height' );
52					}
53
54					if ( (containerWidth - imageWidth > 2) && container.hasClass( 'obfx-fit-height' ) ) {
55						container.removeClass( 'obfx-fit-height' );
56					}
57				}
58			}
59		);
60	}
61
62})( jQuery );

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.