1( function( $ ) { 2 /** 3 * @param $scope The Widget wrapper element as a jQuery element 4 * @param $ The jQuery alias 5 */ 6 var WidgetCTPartHandler = function( $scope, $ ) { 7 8 setTimeout(function(){ 9 $('.elementor-top-section').each(function () { 10 var _el_particle = $(this).find(".ct-particles-js"), 11 _el_particle_remove = $(this).find(".elementor-widget-wrap .ct-particles-js"), 12 _row_particle = _el_particle.parents(".elementor-container"); 13 _row_particle.before(_el_particle.clone()); 14 _el_particle_remove.remove(); 15 }); 16 }, 100); 17 18 setTimeout(function() { 19 $(".ct-particles-js").each(function() { 20 particlesJS($(this).attr('id'), { 21 "particles": { 22 "number": { 23 "value": $(this).data('number'), 24 }, 25 "color": { 26 "value": $(this).data('color') 27 }, 28 "shape": { 29 "type": "circle", 30 }, 31 "size": { 32 "value": $(this).data('size'), 33 "random": $(this).data('size-random'), 34 }, 35 "line_linked": { 36 "enable": $(this).data('line-linked'), 37 }, 38 "move": { 39 "enable": true, 40 "speed": 2, 41 "direction": $(this).data('move-direction'), 42 "random": true, 43 "out_mode": "out", 44 } 45 }, 46 "retina_detect": true 47 }); 48 }); 49 }, 800); 50 51 }; 52 53 // Make sure you run this code under Elementor. 54 $( window ).on( 'elementor/frontend/init', function() { 55 elementorFrontend.hooks.addAction( 'frontend/element_ready/ct_particles.default', WidgetCTPartHandler ); 56 } ); 57} )( jQuery );
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.