PageSourceSearch

https://archivioocarm.com/_static/??wp-content/plugins/coblocks/di…/js/vendor/appendAround.js?m=1719276502

js archivioocarm.com collected 2026-10-06 21:40:01 UTC 1,217 bytes, 37 lines download raw bytes

1(()=>{const e=document.querySelectorAll(".coblocks-animate");if("IntersectionObserver"in window){const t=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(e.target.classList.add(e.target.dataset.coblocksAnimation),t.unobserve(e.target))}))}),{threshold:[.15]});e.forEach((e=>{t.observe(e)}))}else e.forEach((e=>{e.classList.remove("coblocks-animate"),delete e.dataset.coblocksAnimation}))})();;
2/*!
3 * appendAround markup pattern.
4 * [c]2012, @scottjehl, Filament Group, Inc. MIT/GPL
5 */
6(function( $ ){
7	$.fn.appendAround = function( options ) {
8		return this.each(function() {
9			var $self = $( this ),
10				$parent = $self.parent(),
11				parent = $parent[0],
12				$set = options.set || $( '[data-set="' + $parent.attr( 'data-set' ) + '"]' );
13
14			function isHidden( el ){
15				return 'none' === $( el ).css( 'display' );
16			}
17
18			function appendToVisibleContainer(){
19				if ( isHidden( parent ) ) {
20					var found = 0;
21					$set.each(function() {
22						if ( ! isHidden( this ) && ! found ) {
23							$self.appendTo( this );
24							found++;
25							parent = this;
26						}
27					});
28				}
29			}
30
31			appendToVisibleContainer();
32
33			$( window ).on( 'resize', appendToVisibleContainer );
34		});
35	};
36})( jQuery );
37;

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.