window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-JKFH73BDRQ'); 週末活動 4/4 - 4/5 | WeKenGo 週末去哪玩 #css-diag { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 99999; background: #dc2626; color: #fff; font: 14px/1.4 monospace; padding: 12px 16px; } #css-diag button { background: #fff; color: #dc2626; border: none; padding: 6px 16px; border-radius: 4px; font: bold 14px/1 sans-serif; cursor: pointer; margin-left: 12px; } #css-diag pre { margin: 8px 0 0; font-size: 11px; white-space: pre-wrap; word-break: break-all; max-height: 40vh; overflow: auto; -webkit-overflow-scrolling: touch; } // Disable htmx history cache — it restores body innerHTML without , // causing CSS loss on back navigation. Force full page reload instead. htmx.config.historyCacheSize = 0; { "@context": "https://schema.org", "@type": "WebSite", "name": "WeKenGo 週末去哪玩", "url": "https://wekengo.tw", "description": "台灣週末活動聚合平台,一站搜尋展覽、親子、音樂、市集等活動。", "inLanguage": "zh-TW", "potentialAction": { "@type": "SearchAction", "target": "https://wekengo.tw/?q={search_term}", "query-input": "required name=search_term" } } { "@context": "https://schema.org", "@type": "Organization", "name": "WeKenGo", "url": "https://wekengo.tw", "logo": "https://wekengo.tw/static/images/og-default.jpg", "description": "WeKenGo 週末去哪玩 — 台灣週末活動聚合平台" } {"@context": "https://schema.org", "@type": "ItemList", "itemListElement": [{"@type": "ListItem", "position": 1, "url": "https://wekengo.tw/event/1485"}, {"@type": "ListItem", "position": 2, "url": "https://wekengo.tw/event/2070"}, {"@type": "ListItem", "position": 3, "url": "https://wekengo.tw/event/3327"}, {"@type": "ListItem", "position": 4, "url": "https://wekengo.tw/event/2178"}, {"@type": "ListItem", "position": 5, "url": "https://wekengo.tw/event/3521"}, {"@type": "ListItem", "position": 6, "url": "https://wekengo.tw/event/1431"}, {"@type": "ListItem", "position": 7, "url": "https://wekengo.tw/event/3082"}, {"@type": "ListItem", "position": 8, "url": "https://wekengo.tw/event/1498"}, {"@type": "ListItem", "position": 9, "url": "https://wekengo.tw/event/3078"}, {"@type": "ListItem", "position": 10, "url": "https://wekengo.tw/event/1911"}, {"@type": "ListItem", "position": 11, "url": "https://wekengo.tw/event/2261"}, {"@type": "ListItem", "position": 12, "url": "https://wekengo.tw/event/2459"}, {"@type": "ListItem", "position": 13, "url": "https://wekengo.tw/event/3194"}, {"@type": "ListItem", "position": 14, "url": "https://wekengo.tw/event/2285"}, {"@type": "ListItem", "position": 15, "url": "https://wekengo.tw/event/2073"}, {"@type": "ListItem", "position": 16, "url": "https://wekengo.tw/event/2523"}, {"@type": "ListItem", "position": 17, "url": "https://wekengo.tw/event/1420"}, {"@type": "ListItem", "position": 18, "url": "https://wekengo.tw/event/2473"}, {"@type": "ListItem", "position": 19, "url": "https://wekengo.tw/event/3202"}, {"@type": "ListItem", "position": 20, "url": "https://wekengo.tw/event/1919"}]} ⚠ CSS 載入異常 重新載入 collecting... // CSS health check: detect partial/missing CSS and show diagnostic banner (function() { function cssHealthy() { // Check actual computed styles — no sentinel, no cache dependency // 1. tokens.css: CSS variables defined? var root = getComputedStyle(document.documentElement); if (!root.getPropertyValue('--color-primary').trim()) return false; // 2. base.css: img max-width rule applied? var img = document.querySelector('img'); if (img && getComputedStyle(img).maxWidth !== '100%') return false; // 3. base.css: .site-header has sticky positioning? var header = document.querySelector('.site-header'); if (header && getComputedStyle(header).position !== 'sticky') return false; // 4. components.css: .event-card exists and has border-radius? (layout rule from last CSS file) var card = document.querySelector('.event-card'); if (card && getComputedStyle(card).borderRadius === '0px') return false; return true; } function collectDiag() { var info = []; info.push('time: ' + new Date().toISOString()); info.push('url: ' + location.href); info.push('ua: ' + navigator.userAgent); var root = getComputedStyle(document.documentElement); info.push('--color-primary: "' + root.getPropertyValue('--color-primary').trim() + '"'); var header = document.querySelector('.site-header'); info.push('header position: ' + (header ? getComputedStyle(header).position : 'no header')); var card = document.querySelector('.event-card'); info.push('card border-radius: ' + (card ? getComputedStyle(card).borderRadius : 'no card')); var img = document.querySelector('img'); info.push('img max-width: ' + (img ? getComputedStyle(img).maxWidth : 'no img')); try { var sheets = document.styleSheets; info.push('styleSheets: ' + sheets.length); for (var i = 0; i ' + links[j].href + ' disabled=' + links[j].disabled); } return info.join('\n'); } function showDiag() { var diag = document.getElementById('css-diag'); if (!diag || diag.style.display =

FACT BOX ・ 要点整理

  • 出典:PR Times
  • 分類:ニュース