Submit
Path:
~
/
home
/
getwphos
/
public_html
/
brueggemann
/
wp-content
/
plugins
/
js_composer
/
assets
/
lib
/
vc
/
vc_image_zoom
/
File Content:
vc_image_zoom.js
( function ( $ ) { 'use strict'; /** * Init image zooming */ $.fn.vcImageZoom = function () { this.each( function () { var $this = $( this ), src = $this.data( 'vcZoom' ); $this .removeAttr( 'data-vc-zoom' ) .wrap( '<div class="vc-zoom-wrapper"></div>' ) .parent() .zoom({ duration: 500, url: src, onZoomIn: function () { // If original image is smaller than one that is visible, don't show it (by destroying). // Rebind ensures that we still have working zoom in case image size changes later. if ( $this.width() > $( this ).width() ) { $this .trigger( 'zoom.destroy' ) .attr( 'data-vc-zoom', '' ) .unwrap() .vcImageZoom(); } } }); }); return this; }; // Allow users to rewrite function inside theme. if ( 'function' !== typeof ( window.vc_image_zoom ) ) { window.vc_image_zoom = function ( model_id ) { var selector = '[data-vc-zoom]'; if ( 'undefined' !== typeof ( model_id ) ) { selector = '[data-model-id="' + model_id + '"] ' + selector; } $( selector ).vcImageZoom(); }; } $( document ).ready( function () { if ( !window.vc_iframe ) { vc_image_zoom(); } }); }( jQuery ) );
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
vc_image_zoom.js
1245 bytes
0644
vc_image_zoom.min.js
568 bytes
0644
N4ST4R_ID | Naxtarrr