| Linux webm007.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 Path : /home/eglisebaa/www/wp-content/plugins/trx_addons/components/shortcodes/icons/ |
| Current File : /home/eglisebaa/www/wp-content/plugins/trx_addons/components/shortcodes/icons/icons.js |
/**
* Shortcode Icons
*
* @package WordPress
* @subpackage ThemeREX Addons
* @since v1.4
*/
/* global jQuery, TRX_ADDONS_STORAGE */
// Init handlers
jQuery(document).on('action.init_hidden_elements', function(e, container) {
"use strict";
var time = 50;
container.find('.sc_icon_type_svg.sc_icon_animation:not(.inited)').each(function(idx) {
var cont = jQuery(this);
var id = cont.addClass('inited').attr('id');
if (id === undefined) {
id = 'sc_icons_'+Math.random();
id = id.replace('.', '');
} else
id += '_'+idx;
cont.find('svg').attr('id', id);
setTimeout( function(){
cont.css('visibility', 'visible');
var obj = new Vivus(id, {type: 'async', duration: 20});
cont.data('svg_obj', obj);
cont.parent().hover(
function() {
cont.data('svg_obj').reset().play();
},
function() {
}
);
}, time);
time += 300;
});
});