PageSourceSearch

https://csi-engineers.com/wp-content/themes/csiengineering/assets/…/components/FxSocialShare.js?ver=1680610893

js csi-engineers.com collected 2026-10-08 21:16:19 UTC 1,106 bytes, 47 lines download raw bytes

1( () => {
2    window.addEventListener( 'load', () => {
3        new FXSocialShare()
4    })
5}) ()
6
7
8
9/**
10 * Custom Social Share icons open windows
11 * Generate URLs, place in a tag and use class - example: https://github.com/bradvin/social-share-urls
12 * @type {Object}
13 */
14class FXSocialShare {
15
16    constructor() {
17        const self = this
18
19        document.querySelectorAll('.js-social-share').forEach( el => {
20            el.addEventListener( 'click', e => {
21                e.preventDefault()
22
23                self.windowPopup( el.href, 500, 300 )
24            })
25        })
26    }
27
28    windowPopup( url, width, height ) {
29        const left  = ( screen.width / 2 ) - ( width / 2 ),
30            top     = ( screen.height / 2 ) - ( height / 2 )
31
32        if( !url || !url.length ) {
33            return
34        }
35
36        if( url.includes( 'mailto:' ) ) {
37        	window.open( url )
38        } else {
39	        window.open(
40	            url,
41	            '',
42	            `menubar=no,toolbar=no,resizable=yes,scrollbars=yes,width=${width},height=${height},top=${top},left=${left}`
43	        )
44        }
45
46    }
47}

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.