| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/obfx-grid.js.tar |
dev/wp-content/plugins/themeisle-companion/vendor/codeinwp/elementor-extra-widgets/js/obfx-grid.js 0000644 00000003054 15114357600 0032572 0 ustar 00 home/xbodynamge /* global elementor */
(function ($) {
$( document ).ready(
function () {
checkImageSize();
}
);
$( window ).resize(
function () {
checkImageSize();
}
);
if ( typeof elementor !== 'undefined' ) {
$( window ).on(
'elementor/frontend/init', function () {
elementor.hooks.addAction(
'panel/open_editor/widget/obfx-posts-grid', function ( panel ) {
var $element = panel.$el.find( '.elementor-control-section_grid_image' );
$element.click(
function () {
panel.$el.find( '.elementor-control-grid_image_height .elementor-control-input-wrapper' ).mouseup(
function () {
checkImageSize();
}
);
}
);
}
);
}
);
}
/**
* Check the container and image size.
*/
function checkImageSize() {
$( '.obfx-grid .obfx-grid-col' ).each(
function () {
var container = $( this ).find( '.obfx-grid-col-image' ),
containerWidth = $( this ).find( '.obfx-grid-col-image' ).width(),
containerHeight = $( this ).find( '.obfx-grid-col-image' ).height(),
imageWidth = $( this ).find( '.obfx-grid-col-image img' ).width(),
imageHeight = $( this ).find( '.obfx-grid-col-image img' ).height();
if ( $( this ).find( '.obfx-grid-col-image' ).length > 0 ) {
if ( containerHeight > imageHeight ) {
container.addClass( 'obfx-fit-height' );
}
if ( (containerWidth - imageWidth > 2) && container.hasClass( 'obfx-fit-height' ) ) {
container.removeClass( 'obfx-fit-height' );
}
}
}
);
}
})( jQuery );
wp-content/plugins/themeisle-companion/vendor/codeinwp/elementor-extra-widgets/js/obfx-grid.js 0000644 00000003054 15114633003 0034466 0 ustar 00 home/xbodynamge/lebauwcentre /* global elementor */
(function ($) {
$( document ).ready(
function () {
checkImageSize();
}
);
$( window ).resize(
function () {
checkImageSize();
}
);
if ( typeof elementor !== 'undefined' ) {
$( window ).on(
'elementor/frontend/init', function () {
elementor.hooks.addAction(
'panel/open_editor/widget/obfx-posts-grid', function ( panel ) {
var $element = panel.$el.find( '.elementor-control-section_grid_image' );
$element.click(
function () {
panel.$el.find( '.elementor-control-grid_image_height .elementor-control-input-wrapper' ).mouseup(
function () {
checkImageSize();
}
);
}
);
}
);
}
);
}
/**
* Check the container and image size.
*/
function checkImageSize() {
$( '.obfx-grid .obfx-grid-col' ).each(
function () {
var container = $( this ).find( '.obfx-grid-col-image' ),
containerWidth = $( this ).find( '.obfx-grid-col-image' ).width(),
containerHeight = $( this ).find( '.obfx-grid-col-image' ).height(),
imageWidth = $( this ).find( '.obfx-grid-col-image img' ).width(),
imageHeight = $( this ).find( '.obfx-grid-col-image img' ).height();
if ( $( this ).find( '.obfx-grid-col-image' ).length > 0 ) {
if ( containerHeight > imageHeight ) {
container.addClass( 'obfx-fit-height' );
}
if ( (containerWidth - imageWidth > 2) && container.hasClass( 'obfx-fit-height' ) ) {
container.removeClass( 'obfx-fit-height' );
}
}
}
);
}
})( jQuery );