PageSourceSearch

https://www.pcwrap.com/blog/wp-content/plugins/qa-heatmap-analytic…=yes&ver=5.3.0.0&fver=20260910044552

js pcwrap.com collected 2026-10-02 23:59:41 UTC 1,964 bytes, 59 lines download raw bytes

1var qahmz              = qahmz || {};
2
3qahmz.cookieConsent = true;
4
5if( !qahmz.set_cookieConsent ){
6
7    // T49: Cookie発行をサーバーサイドに移行(Ajax方式)
8    qahmz.set_cookieConsent = function(){
9
10        // 同意していない場合は何もしない
11        if( qahmz.cookieConsent !== true && qahmz.cookieConsent !== "true" ){
12            return;
13        }
14
15        // 既にサーバーサイドCookieで同意済みなら再送信不要
16        // (HttpOnly CookieはJSから読めないが、isConsentedフラグで確認)
17        if( qahmz.isConsented ){
18            return;
19        }
20
21        // ajaxurlが未設定の場合はスキップ(qtag.jsがまだロードされていない)
22        if( !qahmz.ajaxurl ){
23            return;
24        }
25
26        // サーバーにCookie発行を依頼
27        var xhr = new XMLHttpRequest();
28        var sendStr = 'action=cookie_consent';
29        sendStr += '&tracking_hash=' + encodeURIComponent( qahmz.tracking_hash || '' );
30        sendStr += '&url=' + encodeURIComponent( location.href );
31        sendStr += '&tracking_id=' + encodeURIComponent( qahmz.tracking_id || '' );
32
33        xhr.open( 'POST', qahmz.ajaxurl, true );
34        xhr.withCredentials = true;
35        xhr.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded' );
36
37        xhr.onload = function(){
38            try {
39                var data = JSON.parse( xhr.response );
40                if( data && data.success ){
41                    qahmz.isConsented = true;
42                    if( data.qa_id ){
43                        qahmz.qa_id = data.qa_id;
44                    }
45                    // 同意状態が変わったのでisRejectCookieを再評価
46                    if( qahmz.updateQaidCookie ){
47                        qahmz.updateQaidCookie();
48                    }
49                }
50            } catch(e) {}
51        };
52
53        xhr.send( sendStr );
54    }
55
56}
57
58qahmz.set_cookieConsent();
59

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.