PageSourceSearch

https://just1voice.com/wp-content/plugins/socialized/assets/scripts/socialized.js

js just1voice.com collected 2026-10-02 06:17:20 UTC 2,947 bytes, 63 lines download raw bytes

1/*
2    Name: socialized.js
3    Author: AuRise Creative | https://aurisecreative.com
4    Last Modified: September 21, 2022, at 18:29
5*/
6var socialized = {
7    init: function() {
8        var sticky_buttons = document.querySelector('.socialized-sticky-yes');
9        if (!!sticky_buttons) {
10            var parent = document.querySelector('.socialized-sticky-yes').parentElement;
11            while (parent) {
12                if (getComputedStyle(parent).overflow !== 'visible') {
13                    console.info('[Socialized] changing overflow for element to "visible" so sticky works');
14                    parent.style.overflow = 'visible';
15                }
16                if (!!parent.parentElement) {
17                    parent = parent.parentElement;
18                } else {
19                    parent = false;
20                }
21            }
22            var offset = 16, //Arbitrarily set to 50px
23                adminBar = document.getElementById('wpadminbar');
24            if (!!adminBar) { offset += adminBar.offsetHeight; } //Increase offset if viewing WP admin bar
25            try {
26                // Stickybits Documentation: https://dollarshaveclub.github.io/stickybits/
27                stickybits('.socialized-sticky-yes', {
28                    useStickyClasses: true,
29                    stickyBitStickyOffset: offset
30                });
31            } catch (err) {
32                console.warn('[Socialized] Error sticking socialized links!', err);
33            }
34        }
35    },
36    copyToClipboard: function(e) {
37        e.preventDefault(); // Prevent default behavior
38        e.stopPropagation(); // Stop from bubbling up so it's only triggered once on the link element
39        var textBubble = document.getElementById('socialized-copied-popup');
40        if (window.isSecureContext) {
41            //The clipboard feature is only available on secure sites
42            var urlToCopy = e.currentTarget.getAttribute('href');
43            navigator.clipboard.writeText(urlToCopy).then(function() {
44                textBubble.classList.remove('hidden');
45                textBubble.setAttribute('aria-hidden', 'false');
46                setTimeout(function() {
47                    textBubble.classList.add('hidden');
48                    textBubble.setAttribute('aria-hidden', 'true');
49                }, 300 * 5);
50            });
51            console.info('[Socialized] Copied to clipboard', urlToCopy);
52        } else {
53            console.warn('[Socialized] The "copy to clipboard" feature is unavailable on this website. Pretending anyway...');
54            textBubble.classList.remove('hidden');
55            textBubble.setAttribute('aria-hidden', 'false');
56            setTimeout(function() {
57                textBubble.classList.add('hidden');
58                textBubble.setAttribute('aria-hidden', 'true');
59            }, 300 * 5);
60        }
61    }
62};
63socialized.init();

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.