PageSourceSearch

https://www.iloogic.com/wp-content/themes/jcrevtheme/js/share.js

js iloogic.com collected 2026-10-06 12:40:48 UTC 2,074 bytes, 69 lines download raw bytes

1function sharefb(xUrl = false) {
2	if(xUrl == false){
3		var xyurl = location.href.split("?");
4		xyurl = xyurl[0];
5	} else {
6		xyurl = xUrl;
7	}
8    var win = window.open('https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(xyurl), 'facebook-share-dialog', 'width=626,height=436');
9    var interval = window.setInterval(function() {
10        try {
11            if (win == null || win.closed) {
12                window.clearInterval(interval);
13                if (!getCookie('hide')) {
14                    createDialog()
15                }
16            }
17        } catch (e) {}
18    }, 1000);
19    return win
20}
21
22function showpopup() {
23                if (!getCookie('hide')) {
24                    createDialog()
25                }
26}
27	
28function createDialog() {
29    document.getElementById("ctrl-after").className = "visible1";
30    document.getElementById("after-pop").className = "visible1"
31}
32
33function closePopup() {
34    document.getElementById("ctrl-after").className = "invisible1";
35    document.getElementById("after-pop").className = "invisible1"
36}
37
38function closePopupC() {
39    document.getElementById("ctrl-after").className = "invisible1";
40    document.getElementById("after-pop").className = "invisible1";
41    setCookie('hide', true, 30);
42    return false
43}
44
45function getCookie(c_name) {
46    var c_value = document.cookie;
47    var c_start = c_value.indexOf(" " + c_name + "=");
48    if (c_start == -1) {
49        c_start = c_value.indexOf(c_name + "=")
50    }
51    if (c_start == -1) {
52        c_value = null
53    } else {
54        c_start = c_value.indexOf("=", c_start) + 1;
55        var c_end = c_value.indexOf(";", c_start);
56        if (c_end == -1) {
57            c_end = c_value.length
58        }
59        c_value = unescape(c_value.substring(c_start, c_end))
60    }
61    return c_value
62}
63
64function setCookie(c_name, value, exdays) {
65    var exdate = new Date();
66    exdate.setDate(exdate.getDate() + exdays);
67    var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString()) + "; path=/";
68    document.cookie = c_name + "=" + c_value
69}

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.