Submit
Path:
~
/
home
/
getwphos
/
public_html
/
ppine
/
wp-content
/
plugins
/
trx_addons
/
addons
/
image-scroll
/
File Content:
image-scroll.js
/* global jQuery */ (function() { "use strict"; var $window = jQuery( window ), $document = jQuery( document ), $body = jQuery( 'body' ); var $images_scroll; // Update global values $document.on( 'action.resize_trx_addons', function() { images_scroll_detect_width(); } ); // Update links and values after the new post added $document.on( 'action.got_ajax_response', update_jquery_links ); $document.on( 'action.init_hidden_elements', update_jquery_links ); var first_run = true; function update_jquery_links(e) { if ( first_run && e && e.namespace == 'init_hidden_elements' ) { first_run = false; return; } $images_scroll = jQuery('.trx_addons_image_scroll_direction_left,.trx_addons_image_scroll_direction_right'); images_scroll_detect_width(); images_add_wrappers(); } update_jquery_links(); function images_scroll_detect_width() { $images_scroll.each( function() { var $img = jQuery(this); $img.get(0).style.setProperty( '--trx-addons-image-scroll-width', $img.width()+'px' ); } ); } function images_add_wrappers() { // Wrap img to the <div.elementor-image> and <div.elementor-widget-container> if not wrapped yet jQuery('.elementor-widget-image[class*="trx_addons_image_scroll_"] img').each( function() { var $img = jQuery(this); if ( $img.parent().hasClass( 'elementor-widget-image' ) ) { $img .wrap( '<div class="elementor-widget-container" />' ) .wrap( '<div class="elementor-image" />' ); } else if ( $img.parent().hasClass( 'elementor-widget-container' ) ) { $img .wrap( '<div class="elementor-image" />' ); } } ); } })();
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
image-scroll.css
4315 bytes
0644
image-scroll.css.map
1396 bytes
0644
image-scroll.jpg
5180 bytes
0644
image-scroll.js
1636 bytes
0644
image-scroll.php
7015 bytes
0644
image-scroll.scss
2094 bytes
0644
N4ST4R_ID | Naxtarrr