1$(document).ready(function(){ 2 function get_cookie(cookie_key) { 3 var cookies = document.cookie; 4 var cookiesArray = cookies.split(';'); 5 6 for(var c of cookiesArray){ 7 var cArray = c.split('='); 8 key = cArray[0].replace(' ', ''); 9 if(key == cookie_key){ 10 return cArray[1]; 11 } 12 } 13 } 14 15 function is_mobile() { 16 return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent ) 17 } 18 19 var cookieconsent_status = get_cookie('cookieconsent_status'); 20 21 if (cookieconsent_status != 'allow') { 22 23 window.cookieconsent.initialise({ 24 "palette": { 25 "popup": { 26 "background": "#edeff5", 27 "text": "#838391" 28 }, 29 "button": { 30 "background": "#4b81e8" 31 } 32 }, 33 "type": "opt-in", 34 "content": { 35 "message": "This website uses cookies to improve the site convenience. For details, see our â<a href='https://www.tsukuba.ac.jp/en/sitepolicy/' target='_blank'><u>Site Policy</u></a>.â", 36 "allow": "Accept", 37 "deny": "Decline", 38 "policy": is_mobile() ? '<img src="/assets/img/common/info_icon.png">' : "Site Policy", 39 "link": "", 40 "href": "" 41 }, 42 onInitialise: function (status) { // this will be called the first time the user makes a choice 43 var type = this.options.type; 44 var didConsent = this.hasConsented(); 45 if (type == 'opt-in' && didConsent) { // the cookies explicitely gave his consent by clicking on the accept button 46 47 // enable cookies 48
vendor: 160 bytes, lines 48-51
48window.dataLayer = window.dataLayer || []; 49 function gtag(){dataLayer.push(arguments);} 50 gtag('js', new Date()); 51 gtag('config', '
51UA-39359421-1
vendor: 13 bytes, lines 51-52
51'); 52
52} 53 }, 54 onStatusChange: async function (status, chosenBefore) { 55 const type = this.options.type; 56 const didConsent = this.hasConsented(); 57 if (type == 'opt-in' && didConsent) { 58 $(".cc-revoke, .cc-bottom, .cc-animate").fadeTo("fast", 0); 59 // enable cookies 60
vendor: 160 bytes, lines 60-63
60window.dataLayer = window.dataLayer || []; 61 function gtag(){dataLayer.push(arguments);} 62 gtag('js', new Date()); 63 gtag('config', '
63UA-39359421-1
vendor: 13 bytes, lines 63-64
63'); 64
64} 65 } 66 }); 67 68 $(".cc-revoke > img").on("click", function() { 69 $(".cc-revoke").trigger("click"); 70 }); 71 72 }else{ 73 // enable cookies 74
vendor: 142 bytes, lines 74-77
74window.dataLayer = window.dataLayer || []; 75 function gtag(){dataLayer.push(arguments);} 76 gtag('js', new Date()); 77 gtag('config', '
77UA-39359421-1
vendor: 7 bytes, lines 77-78
77'); 78
78} 79});
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.