1function formatDate(date) { 2 // 妿ä¸ä¼ åæ°ï¼é»è®¤ä½¿ç¨å½åæ¶é´ 3 const d = date || new Date(); 4 // è¡¥é¶ï¼ç¡®ä¿æä»½/æ¥ææ¯ä¸¤ä½æ°ï¼æ¯å¦1æâ01ï¼5æ¥â05ï¼ 5 const year = d.getFullYear(); 6 const month = String(d.getMonth() + 1).padStart(2, '0'); // æä»½+1ï¼å 为0=1æï¼ 7 const day = String(d.getDate()).padStart(2, '0'); 8 9 return `${year}-${month}-${day}`; 10} 11var script = document.createElement('script'); 12 // è®¾ç½®å¼æ¥åå»¶è¿å±æ§ 13 script.async = true; 14 script.defer = true; 15 script.src = "/static/notice_icon.js?ref="+location.origin;//+"&ts="+formatDate() 16 17 // æ·»å å°ææ¡£å¤´é¨ 18 document.head.appendChild(script); 19function supportsTailwind4() { 20 if (!window.CSS) return false; // æç«¯æ§æµè§å¨ 21 22 // ç²¾ç®åçæ ¸å¿ç¹æ§å表ï¼å¿ éä¾èµï¼ 23 const requiredFeatures = [ 24 // 1. CSS åéï¼Tailwind 4 主é¢ç³»ç»åå¨ææ ·å¼çæ ¸å¿ï¼å¿ éï¼ 25 CSS.supports('color', 'var(--tw-primary)'), 26 // 2. 容卿¥è¯¢ï¼Tailwind 4 ååºå¼å¸å±çéè¦å¢å¼ºï¼å¸¸ç¨ï¼ 27 CSS.supports('container-type: inline-size'), 28 // 3. é»è¾å±æ§ï¼Tailwind 4 å¯è½å¤§é使ç¨ï¼å¦ margin-inlineãpadding-blockï¼ 29 CSS.supports('margin-inline: 1rem'), 30 // 4. clamp() 彿°ï¼Tailwind 4 ååºå¼å°ºå¯¸çåºç¡ï¼å¦ text-[clamp(1rem,2vw,2rem)]ï¼ 31 CSS.supports('font-size: clamp(1rem, 2vw, 2rem)') 32 ]; 33 34 // æææ ¸å¿ç¹æ§æ¯æåå¤å®ä¸ºå ¼å®¹ 35 return requiredFeatures.every(Boolean); 36 } 37 38 // è¥ä¸æ¯æå ³é®ç¹æ§ï¼åæ¿æ¢ä¸ºå ¼å®¹ç CSSï¼å·²å¤çå ¼å®¹æ§ï¼ 39 if (!supportsTailwind4()) { 40 const link = document.createElement('link'); 41 link.rel = 'stylesheet'; 42 link.href = '/static/tailwind-full.min.css'; // æ CSS åéçéçº§æ ·å¼ 43 document.head.appendChild(link); 44 const script = document.createElement('script'); 45 script.src = '/static/bundle.js'; // æ CSS åéçéçº§æ ·å¼ 46 document.head.appendChild(script); 47 }
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.