1$(function () { 2 3 /* 4 * ãã¼ã¸ä¸é¨ã«æ»ã 5 */ 6 var pagetop = $('#page_top'); 7 // ãã¿ã³é表示 8 pagetop.hide(); 9 // 100px ã¹ã¯ãã¼ã«ããããã¿ã³è¡¨ç¤º 10 $(window).scroll(function () { 11 if ($(this).scrollTop() > 100) { 12 pagetop.fadeIn(); 13 } else { 14 pagetop.fadeOut(); 15 } 16 }); 17 pagetop.click(function () { 18 $('body, html').animate({scrollTop: 0}, 100); 19 return false; 20 }); 21 22 /* 23 * åºåã¯ãªãã¯IDï¼gclid/yclid/fbclid/msclkid/twclidï¼ã®åå¾ã»ä¿å 24 * URLã«ä»ãã¦ããã°ããã©ã¡ã¼ã¿å=å¤ãã®å½¢ã§localStorageã«ä¿åï¼æ°ããIDãæ¥ãã䏿¸ãï¼ã 25 * ä¿ææéã¯90æ¥ã90æ¥ãéããä¿åå¤ã¯ç ´æ£ããã 26 */ 27 var clidKeys = ['gclid', 'yclid', 'fbclid', 'msclkid', 'twclid']; 28 var clidParams = new URLSearchParams(location.search); 29 for (var i = 0; i < clidKeys.length; i++) { 30 var clidValue = clidParams.get(clidKeys[i]); 31 if (clidValue) { 32 // ãgclid=xxxxãã®å½¢ã¨å徿å»ãä¿åï¼æ°ããIDãæ¥ãã䏿¸ãï¼ 33 localStorage.setItem('clid', clidKeys[i] + '=' + clidValue); 34 localStorage.setItem('clid_time', String(Date.now())); 35 break; 36 } 37 } 38 // 90æ¥ãéãã¦ãããç ´æ£ 39 var clidLimit = 90 * 24 * 60 * 60 * 1000; 40 var clidTime = parseInt(localStorage.getItem('clid_time'), 10); 41 if (clidTime && (Date.now() - clidTime) > clidLimit) { 42 localStorage.removeItem('clid'); 43 localStorage.removeItem('clid_time'); 44 } 45});
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.