|
10 | 10 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
11 | 11 | <meta name="author" content="红蓝灯"> |
12 | 12 | <meta name="keywords" content="红蓝灯, RBL"> |
| 13 | + <meta http-equiv="Content-Language" content="zh-CN"> |
| 14 | + <meta name="robots" content="all"> |
13 | 15 | <script> |
14 | 16 | function isIE() { |
15 | 17 | return !!document.documentMode; |
16 | 18 | } |
17 | 19 | if (isIE()) { |
18 | 20 | window.alert("检测到为IE浏览器,即将跳转到Edge下载界面..."); |
19 | 21 | console.warn("用户使用IE浏览器"); |
20 | | - location.href = "https://www.microsoft.com/zh-cn/edge/download"; |
| 22 | + setTimeout(() =>{location.href = "https://www.microsoft.com/zh-cn/edge/download";}, 500); |
21 | 23 | } else { |
22 | 24 | console.info("用户使用非IE浏览器"); |
23 | 25 | } |
24 | 26 | </script> |
25 | | - <meta name="author" content="这里是红蓝灯的个人网站,时不时发点文章"> |
| 27 | + <meta name="description" content="这里是红蓝灯的个人网站,时不时发点文章"> |
26 | 28 | <title>首页 - 红蓝灯的个人网站</title> |
27 | 29 | <script src="include/prism.js"></script> |
28 | 30 | <link href="include/prism.css" rel="stylesheet"> |
29 | | -</head> |
30 | | -<body class="line-numbers"> |
31 | | - <p class="chinese">警告!本网站处于测试阶段!</p> |
32 | | - <p class="english">Warning! Page is test!</p> |
33 | | - <pre><code class="language-python">print("hi") |
34 | | -import tkinter as tk |
35 | | -</code></pre> |
36 | 31 | <style> |
37 | | - @font-face { |
38 | | - font-family: "JetBrains Mono"; |
39 | | - src: url("include/JetBrainsMono.ttf") format("truetype"); |
| 32 | + @font-face { |
| 33 | + font-family: "JetBrains Mono"; |
| 34 | + src: url("include/JetBrainsMono.ttf") format("truetype"); |
| 35 | + } |
| 36 | + |
| 37 | + :root { |
| 38 | + --9_6-color: #999999; |
| 39 | + --5_6-color: #555555; |
| 40 | + --mono-font: "JetBrains Mono"; |
| 41 | + --tahoma: Tahoma; |
| 42 | + --bg-img: url("include/bg.jpg"); |
40 | 43 | } |
41 | 44 |
|
42 | 45 | body { |
43 | | - background-image: url("include/bg.jpg"); |
| 46 | + background-image: var(--bg-img); |
44 | 47 | background-size: cover; |
45 | 48 | background-repeat: no-repeat; |
46 | 49 | background-position: center center; |
47 | 50 | background-attachment: fixed; |
48 | 51 | min-height: 100%; |
49 | | - background-color: #555555; /*避免无法加载导致出现纯白 Avoid failing to load and resulting in pure white*/ |
| 52 | + background-color: var(--5_6-color,#555555); /*避免无法加载导致出现纯白 Avoid failing to load and resulting in pure white*/ |
50 | 53 | } |
51 | 54 |
|
52 | 55 | .chinese { |
53 | | - font-family: Tahoma,system-ui; |
| 56 | + font-family: var(--tahoma),system-ui; |
| 57 | + color: var(--9_6-color,#999999); |
54 | 58 | } |
55 | 59 | .english { |
56 | | - font-family: "JetBrains Mono",system-ui; |
| 60 | + font-family: var(--mono-font), system-ui; |
| 61 | + color: var(--9_6-color,#999999); |
57 | 62 | } |
58 | | - code { |
59 | | - font-family: "JetBrains Mono",system-ui; |
| 63 | + code pre { |
| 64 | + font-family: var(--mono-font),system-ui; |
60 | 65 | } |
61 | 66 | </style> |
| 67 | +</head> |
| 68 | +<body class="line-numbers"> |
| 69 | + <p class="chinese">警告!本网站处于测试阶段!</p> |
| 70 | + <p class="english">Warning! Page is test!</p> |
| 71 | + <pre><code class="language-python">print("Hello World!") |
| 72 | +</code></pre> |
| 73 | + <pre><code class="language-cpp">#include <iostream> |
| 74 | +using namespace std; |
| 75 | +int main() |
| 76 | +{ |
| 77 | + cout << "Hello World!" << endl; |
| 78 | + return 0; |
| 79 | +} |
| 80 | +</code></pre> |
62 | 81 | </body> |
63 | 82 | </html> |
0 commit comments