1(function () { 2 'use strict'; 3 4 var sources = { 5 'ltc-apply': { 6 label: 'è¡ç¦é¨ 1966 é·ç §å°åï½ç³è«é·ç §æå', 7 url: 'https://1966.gov.tw/ltc/cp-6533-70777-207.html' 8 }, 9 'ltc-payment': { 10 label: 'è¡ç¦é¨ 1966 é·ç §å°åï½çµ¦ä»ãé¡åº¦èé¨åè² æ', 11 url: 'https://1966.gov.tw/ltc/cp-6533-70777-207.html' 12 }, 13 'ltc-2026': { 14 label: 'è¡ç¦é¨ï½é·ç § 3.0 給ä»è¾¦æ³ä¿®æ£éé»', 15 url: 'https://www.mohw.gov.tw/cp-7177-82811-1.html' 16 }, 17 'yilan-ltc': { 18 label: 'å®èç¸£é·æç §è·æå管çæï½ç³è«æ¹å¼åæµç¨', 19 url: 'https://ltc.ilshb.gov.tw/cp.aspx?n=16276' 20 }, 21 'foreign-caregiver': { 22 label: 'ååé¨ï½80 æ²å è©èå±å¤ç±å®¶åºçè·åç', 23 url: 'https://fw.wda.gov.tw/wda-employer/home/activity/2c95efb398624bf5019862cb5d920060' 24 }, 25 'foreign-caregiver-options': { 26 label: 'ååé¨ï½å®¶åºçè·å·¥ç³è«èå¤å å è©è³æ ¼', 27 url: 'https://fw.wda.gov.tw/wda-employer/home/extra-mid-level/index/subCategory/2c95efb38e5d7562018e5f710c9d03a1?locale=zh' 28 }, 29 'ltc-residential': { 30 label: 'è¡ç¦é¨ 1966 é·ç §å°åï½ä½å®¿å¼æå使ç¨è è£å©æ¹æ¡', 31 url: 'https://1966.gov.tw/ltc/cp-6457-69925-207.html' 32 } 33 }; 34 35 if (!document.querySelector('[data-policy-source]')) return; 36 37 var style = document.createElement('style'); 38 style.textContent = [ 39 '.policy-source-notice,.policy-source-foot{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC",sans-serif;box-sizing:border-box}', 40 '.policy-source-notice{margin:1.25rem 0 .75rem;padding:.8rem 1rem;border-left:4px solid #9E7A34;border-radius:0 10px 10px 0;background:#fff8e7;color:#5f4a25;font-size:.88rem;line-height:1.7;font-weight:700}', 41 '.policy-source-foot{margin:.75rem 0 1.5rem;padding:.8rem 1rem;border:1px solid rgba(94,122,104,.22);border-radius:10px;background:#f6faf7;color:#4d6259;font-size:.8rem;line-height:1.7}', 42 '.policy-source-foot__links{display:flex;flex-wrap:wrap;gap:.25rem .7rem;margin-bottom:.25rem}', 43 '.policy-source-foot a{color:#285b48;text-decoration:underline;text-underline-offset:3px;font-weight:700}', 44 '.policy-source-foot__meta{display:flex;flex-wrap:wrap;gap:.4rem .85rem;align-items:center}', 45 '.policy-source-foot button{border:0;background:transparent;color:#285b48;padding:0;text-decoration:underline;text-underline-offset:3px;font:700 inherit;cursor:pointer}', 46 '@media print{.policy-source-foot button{display:none}}' 47 ].join(''); 48 document.head.appendChild(style); 49 50 function displayDate(value) { 51 var parts = String(value || '').split('-'); 52 if (parts.length !== 3) return value || 'æªæ¨ç¤º'; 53 return Number(parts[0]) + ' å¹´ ' + Number(parts[1]) + ' æ ' + Number(parts[2]) + ' æ¥'; 54 } 55 56 document.querySelectorAll('[data-policy-source]').forEach(function (block) { 57 if (block.dataset.policyDecorated === 'true') return; 58 block.dataset.policyDecorated = 'true'; 59 60 var notice = document.createElement('aside'); 61 notice.className = 'policy-source-notice'; 62 notice.setAttribute('role', 'note'); 63 notice.textContent = 'é·ç §æ¿çèçµ¦ä»æ¨æºæé¨æ¿ç調æ´ï¼å»ºè°ç´æ¥å宿¹æ¥è©¢ææ°è³è¨'; 64 block.parentNode.insertBefore(notice, block); 65 66 var keys = String(block.dataset.policySource || '').trim().split(/\s+/).filter(Boolean); 67 var links = keys.map(function (key) { return sources[key]; }).filter(Boolean); 68 var foot = document.createElement('aside'); 69 foot.className = 'policy-source-foot'; 70 71 var linksBox = document.createElement('div'); 72 linksBox.className = 'policy-source-foot__links'; 73 var label = document.createElement('strong'); 74 label.textContent = '宿¹è³æä¾æºï¼'; 75 linksBox.appendChild(label); 76 links.forEach(function (source) { 77 var link = document.createElement('a'); 78 link.href = source.url; 79 link.textContent = source.label; 80 linksBox.appendChild(link); 81 }); 82 if (!links.length) linksBox.appendChild(document.createTextNode('è«æ¥ 1966 æ¥è©¢')); 83 84 var meta = document.createElement('div'); 85 meta.className = 'policy-source-foot__meta'; 86 var checked = document.createElement('span'); 87 checked.textContent = 'æ¥æ ¸æ¥æï¼' + displayDate(block.dataset.policyChecked); 88 var report = document.createElement('button'); 89 report.type = 'button'; 90 report.setAttribute('data-feedback-open', ''); 91 report.setAttribute('data-feedback-type', 'æ¿çæè£å©è³æéè¦æ´æ°'); 92 var heading = block.querySelector('h2, h3, h4'); 93 report.setAttribute('data-feedback-message', 'ææ³åå ±ã' + (heading ? heading.textContent.trim() : document.title) + 'ãçæ¿çæè£å©è³æï¼'); 94 report.textContent = 'è³æææ´æ°ï¼åé¡åå ±'; 95 meta.appendChild(checked); 96 meta.appendChild(report); 97 98 foot.appendChild(linksBox); 99 foot.appendChild(meta); 100 block.parentNode.insertBefore(foot, block.nextSibling); 101 }); 102}());
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.