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.