PageSourceSearch

https://clegfx.co/wp-content/plugins/caster-core/public/assets/js/social-share.js?ver=1.2.1

js clegfx.co collected 2026-10-09 22:36:31 UTC 2,572 bytes, 60 lines download raw bytes

1( function ( $ ) {   
2    
3        // USE STRICT
4	"use strict";        
5     
6        var socialShareWidget = {
7            
8            socialShareDialog: function( network, shareurl ) {
9
10                    var social_networks = {
11                                                'fab fa-facebook-f'   : 'http://www.facebook.com/sharer.php?u=',
12                                                'fab fa-twitter'    : 'https://twitter.com/share?url=',
13                                                'fab fa-google-plus-g' : 'https://plus.google.com/share?url=',
14                                                'fab fa-linkedin-in'   : 'http://www.linkedin.com/shareArticle?mini=true&url=',
15                                                'fab fa-xing'       : 'https://www.xing.com/spi/shares/new?url=',
16                                                'fab fa-pinterest-p'  : 'http://pinterest.com/pin/create/link/?url='
17                                           }
18
19                    var width  = 575,
20                                 height = 520,
21                                 left   = ( $( window ).width()  - width )  / 2,
22                                 top    = ( $( window ).height() - height ) / 2,
23                                 opts   = 'status=1' +
24                                           ',width='  + width  +
25                                           ',height=' + height +
26                                           ',top='    + top    +
27                                           ',left='   + left;
28
29                    var url = social_networks[ network ] + shareurl;                    
30
31                    var newwindow = window.open( url , '', opts );
32
33                    if ( window.focus ) {
34                        newwindow.focus();
35                    }
36            },
37            
38            init: function( socialShareLinks ) {
39                
40                if( socialShareLinks.length > 0 ) {
41
42                    socialShareLinks.on( 'click', function() {
43
44                        var network = $(this).data( 'network' );
45                        var shareurl = $(this).data( 'shareurl' );
46
47                        socialShareWidget.socialShareDialog( network, shareurl );
48
49                        return false;
50                    });
51                }                
52                
53            }
54        };
55        
56        $.fn.socialshare = function() {               
57            socialShareWidget.init( this );                
58        };
59    
60})( 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.