PageSourceSearch

https://support.rometheme.net/wp-content/plugins/rometheme-for-ele…/assets/js/social_share.js?ver=2.1.9

js rometheme.net collected 2026-09-24 19:35:39 UTC 3,249 bytes, 50 lines download raw bytes

1jQuery(document).ready(($) => {
2    $('.rkit-social-share__link').click((event) => {
3        var SocMed = $(event.currentTarget).data('social-media');
4        switch (SocMed) {
5            case 'facebook':
6                var url = encodeURIComponent(window.location.href);
7                var title = encodeURIComponent(document.title);
8                window.open('https://www.facebook.com/sharer/sharer.php?u=' + url + '&title=' + title, 'facebook-share-dialog', 'width=626,height=436');
9                break;
10            case 'twitter':
11                var url = encodeURIComponent(window.location.href);
12                var text = encodeURIComponent(document.title);
13                window.open('https://twitter.com/intent/tweet?url=' + url + '&text=' + text, 'twitter-share-dialog', 'width=626,height=436');
14                break;
15            case 'whatsapp':
16                var text = encodeURIComponent(window.location.href);
17                window.open('https://api.whatsapp.com/send?text=' + text, 'wa-share-dialog', ' width=626,height=626 ');
18                break;
19            case 'pinterest':
20                var url = encodeURIComponent(window.location.href);
21                var media = (document.querySelector('meta[property="og:image"]')) ? encodeURIComponent(document.querySelector('meta[property="og:image"]').getAttribute('content')) : '';
22                var description = (document.querySelector('meta[property="og:description"]')) ? encodeURIComponent(document.querySelector('meta[property="og:description"]').getAttribute('content')) : '';
23                window.open('https://www.pinterest.com/pin/create/button/?url=' + url + '&media=' + media + '&description=' + description, 'pinterest-share-dialog', 'width=750,height=430');
24                break;
25            case 'linkedin':
26                var url = encodeURIComponent(window.location.href);
27                var title = encodeURIComponent(document.title);
28                window.open('https://www.linkedin.com/shareArticle?mini=true&url=' + url + '&title=' + title, 'linkedin-share-dialog', 'width=750,height=430');
29                break;
30            case 'reddit':
31                var url = encodeURIComponent(window.location.href);
32                var title = encodeURIComponent(document.title);
33                window.open('https://www.reddit.com/submit?url=' + url + '&title=' + title, 'reddit-share-dialog', 'width=500,height=500');
34                break;
35            case 'quora':
36                var url = encodeURIComponent(window.location.href);
37                var title = encodeURIComponent(document.title);
38                window.open('https://www.quora.com/share?url=' + url + '&title=' + title, 'quora-share-dialog', 'width=626,height=436');
39                break;
40            case 'telegram':
41                var url = encodeURIComponent(window.location.href);
42                window.open('https://t.me/share/url?url=' + url, 'telegram-share-dialog', 'width=626,height=626');
43                break;
44            case 'line':
45                var url = encodeURIComponent(window.location.href);
46                window.open('https://line.me/R/msg/text/' + url, 'line-share-dialog', 'width=626 , height=626');
47                break;
48        }
49    });
50});

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.