PageSourceSearch

https://universityprofessorspress.com/wp-content/plugins/visitors-…c-real-time-statistics/js/front.js?ver=8.14

js universityprofessorspress.com collected 2026-09-24 19:48:30 UTC 2,176 bytes, 55 lines download raw bytes

1var pageid = ahc_ajax_front.page_id;
2var page_id = (pageid.length > 0) ? pageid : ''; 
3var pagetitle = ahc_ajax_front.page_title;
4var page_title = (pagetitle.length > 0) ? pagetitle : ''; 
5var posttype = ahc_ajax_front.post_type;
6var post_type = (posttype.length > 0) ? posttype : ''; 
7var referer = document.referrer;
8var useragent = window.navigator.userAgent;
9var servername = location.hostname;
10var hostname = location.host;
11var request_uri = location.pathname.substring(1);
12
13var xhttp = new XMLHttpRequest();
14
15xhttp.open("POST", ahc_ajax_front.ajax_url, true);
16xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
17xhttp.send("action=ahcfree_track_visitor" +
18    "&page_id=" + encodeURIComponent(page_id) +
19    "&page_title=" + encodeURIComponent(page_title) +
20    "&post_type=" + encodeURIComponent(post_type) +
21    "&referer=" + encodeURIComponent(referer) +
22    "&useragent=" + encodeURIComponent(useragent) +
23    "&servername=" + encodeURIComponent(servername) +
24    "&hostname=" + encodeURIComponent(hostname) +
25    "&request_uri=" + encodeURIComponent(request_uri));
26
27// ============================================================
28// WordPress Heartbeat API integration
29// يضيف IP الزائر على كل heartbeat يرسله WordPress تلقائياً
30// ============================================================
31(function() {
32    function attachHeartbeat() {
33        if (typeof jQuery === 'undefined') {
34            setTimeout(attachHeartbeat, 200);
35            return;
36        }
37
38        jQuery(document).on('heartbeat-send.ahcfree', function(event, data) {
39            if (typeof ahc_ajax_front !== 'undefined' && ahc_ajax_front.visitor_ip) {
40                data['ahcfree_heartbeat_ip'] = ahc_ajax_front.visitor_ip;
41            }
42        });
43
44        // تسريع الـ heartbeat لكل 15 ثانية (الحد الأدنى المسموح)
45        if (typeof wp !== 'undefined' && wp.heartbeat) {
46            wp.heartbeat.interval('fast');
47        }
48    }
49
50    if (document.readyState === 'loading') {
51        document.addEventListener('DOMContentLoaded', attachHeartbeat);
52    } else {
53        attachHeartbeat();
54    }
55})();

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.