1/** 2 * Shortcode Icons 3 * 4 * @package ThemeREX Addons 5 * @since v1.4 6 */ 7 8/* global jQuery, TRX_ADDONS_STORAGE */ 9 10// Init handlers 11jQuery(document).on( 'action.init_hidden_elements', function(e, container) { 12 13 "use strict"; 14 15 var time = 50; 16 container.find('.sc_icon_type_svg.sc_icon_animation:not(.inited)').each(function(idx) { 17 var cont = jQuery(this); 18 var id = cont.addClass('inited').attr('id'); 19 if (id === undefined) { 20 id = 'sc_icons_'+Math.random(); 21 id = id.replace('.', ''); 22 } else { 23 id += '_'+idx; 24 } 25 cont.find('svg').attr('id', id); 26 setTimeout( function(){ 27 cont.css('visibility', 'visible'); 28 var obj = new Vivus( id, { 29 type: 'async', 30 duration: TRX_ADDONS_STORAGE['sc_icons_animation_speed'] 31 ? TRX_ADDONS_STORAGE['sc_icons_animation_speed'] 32 : 50 33 } 34 ); 35 cont.data('svg_obj', obj); 36 cont.parent().hover( 37 function() { 38 cont.data('svg_obj').reset().play(); 39 }, 40 function() { 41 } 42 ); 43 }, time); 44 time += 300; 45 }); 46});
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.