PageSourceSearch

https://www.tok.co.jp/packages/tok/themes/tok/assets/js/cookiepolicy.js

js tok.co.jp collected 2026-10-02 15:18:20 UTC 693 bytes, 25 lines download raw bytes

1$(function(){
2
3  var cookiePolicy = localStorage.getItem('cookiepolicy');
4  var cookiePolicyHeight = $('#cookiePolicy').innerHeight();
5  
6  if(cookiePolicy == 'consent') {
7    //同意済み
8    $('#cookiePolicy').remove();
9  } else {
10    //同意していない
11    $('#footer').css('paddingBottom', cookiePolicyHeight + 'px');
12	  $('#cookiePolicy').show();
13    localStorage.setItem('cookiepolicy', 'consent');
14  }
15
16  //okボタンをクリック
17  var cookiePolicyConsetButton = $('#cookiePolicyOk');
18  cookiePolicyConsetButton.on('click', function(){
19    $('#footer').css('paddingBottom', '');
20    $('#cookiePolicy').remove();
21    localStorage.setItem('cookiepolicy', 'consent');
22  })
23
24})
25

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.