33 lines
1.5 KiB
HTML
33 lines
1.5 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="description" content="缠论研习社 — 缠中说禅《教你炒股票》原文与杂文的沉浸式阅读站,专注走势、分型、笔、线段、中枢、背驰的系统性研习。" />
|
|
<!-- iOS 不把正文里的股票代码/年份误识别为 tel 链接 -->
|
|
<meta name="format-detection" content="telephone=no" />
|
|
<meta name="theme-color" content="#4d95ff" />
|
|
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0d0d0f" />
|
|
<title>缠论研习社</title>
|
|
<script>
|
|
// 防闪烁:在应用挂载前同步应用主题
|
|
(function () {
|
|
try {
|
|
var saved = localStorage.getItem('chan-theme')
|
|
var prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches
|
|
var isDark = saved ? saved === 'dark' : prefersDark
|
|
if (isDark) document.documentElement.classList.add('dark')
|
|
// 同步地址栏/状态栏主题色(覆盖用户手动切换为暗色的场景)
|
|
var m = document.querySelector('meta[name="theme-color"]:not([media])')
|
|
if (m) m.setAttribute('content', isDark ? '#0d0d0f' : '#4d95ff')
|
|
} catch (e) {}
|
|
})()
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script type="module" src="/src/main.ts"></script>
|
|
</body>
|
|
</html>
|