PageSourceSearch

https://rdbcycle.com/wp-content/plugins/fuse-social-floating-sidebar/assets/js/frontend.js?ver=6.0.1

js rdbcycle.com collected 2026-10-06 13:17:44 UTC 1,732 bytes, 57 lines download raw bytes

1/* Fuse Social Icons — front-end behavior */
2( function () {
3	'use strict';
4
5	function initCopyLink() {
6		document.querySelectorAll( '.fsi-copy-link' ).forEach( function ( el ) {
7			el.addEventListener( 'click', function ( e ) {
8				e.preventDefault();
9				var url = el.getAttribute( 'data-copy-url' );
10				var done = function () {
11					el.classList.add( 'fsi-copied' );
12					setTimeout( function () { el.classList.remove( 'fsi-copied' ); }, 1600 );
13				};
14				if ( navigator.clipboard && window.isSecureContext ) {
15					navigator.clipboard.writeText( url ).then( done );
16				} else {
17					var t = document.createElement( 'textarea' );
18					t.value = url; t.style.position = 'fixed'; t.style.opacity = '0';
19					document.body.appendChild( t ); t.select();
20					try { document.execCommand( 'copy' ); } catch ( err ) {}
21					document.body.removeChild( t ); done();
22				}
23			} );
24		} );
25	}
26
27	function initPrintShare() {
28		document.querySelectorAll( '.fsi-print-btn' ).forEach( function ( el ) {
29			el.addEventListener( 'click', function ( e ) {
30				e.preventDefault();
31				window.print();
32			} );
33		} );
34	}
35
36	function initNativeShare() {
37		document.querySelectorAll( '.fsi-native-share' ).forEach( function ( el ) {
38			if ( ! navigator.share ) {
39				el.remove(); // device share sheet unsupported — hide the button.
40				return;
41			}
42			el.addEventListener( 'click', function ( e ) {
43				e.preventDefault();
44				navigator.share( {
45					url: el.getAttribute( 'data-copy-url' ),
46					title: el.getAttribute( 'data-share-title' ) || document.title,
47				} ).catch( function () {} );
48			} );
49		} );
50	}
51
52	document.addEventListener( 'DOMContentLoaded', function () {
53		initCopyLink();
54		initPrintShare();
55		initNativeShare();
56	} );
57} )();

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.