-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
63 lines (63 loc) · 2.77 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!-- idea from konfou.xyz -->
<!-- colorscheme: everforest-medium-dark -->
<!DOCTYPE html>
<html lang=en>
<meta charset=utf-8>
<title>~dongdigua</title>
<meta name=author content="dongdigua's blog">
<link rel=license href=https://creativecommons.org/licenses/by/4.0/>
<link rel=icon href=favicon.ico>
<link rel=alternate type=application/rss+xml href=https://dongdigua.github.io/feed.xml>
<!-- favicon from my classmate -->
<style>
*{scrollbar-color:gray #404040}
*::selection{background:#434C5E}
*::-webkit-scrollbar{width:auto}
*::-webkit-scrollbar-track{background:#404040}
*::-webkit-scrollbar-thumb{background:gray}
body{background-color:#2f383e;color:#d3c6aa;font-family:ui-monospace,Cascadia Code,Menlo,Consolas,Monaco,monospace;font-size:16px;margin:0}
a{color:#83c092;text-decoration:none}
a:visited{color:#a7c080}
a:hover{color:#d699b6}
.home{width:100%;min-height:calc(100vh - 50px);text-align:center}
.home pre{max-width:80ch;padding-top:2em;margin-left:auto;margin-right:auto;line-height:1.5em;overflow:auto;display:inline-block;text-align:left}
footer{height:50px;text-align:center;background:#323d43}
pre{font-family:inherit;margin:1rem}
#quote{color:#7fbbb3;font-style:italic;text-align:center}
#comment{color:#7a8478;font-style:italic}
#normal{color:#d3c6aa}
</style>
<body>
<!--
<script src="https://fastly.jsdelivr.net/gh/stevenjoezhang/live2d-widget@latest/autoload.js"></script>
<link rel="stylesheet" href="https://fastly.jsdelivr.net/npm/@fortawesome/fontawesome-free@6/css/all.min.css">
-->
<div class="home">
<pre>
(<font color=#e67e80>let</font> ((blog <strong>"<a href=https://dongdigua.github.io/posts>地瓜先生集</a>"</strong>)
(collections "<a href=https://dongdigua.github.io/internet_collections>MagicalIndex</a>")
(rss "<a href=https://dongdigua.github.io/feed.xml>feed.xml</a>")
(mai1 "<a>dongdigua砹outlook碘com</a>")
(pgp "<a href=https://dongdigua.github.io/pgp.txt><span title="Powered by Canokey">DB55 889E 730F 5B41</span></a>")
(github "<a href=https://github.com/dongdigua>@dongdigua</a>")
(bilibili "<a href=https://space.bilibili.com/489732092>董地瓜</a>")
(payment "<a href=https://dongdigua.github.io/xmr>Monero</a>")
(about "<a href=about.html>about</a>")</pre>
<br>
<pre id="quote"></pre>
</div>
<footer>
© 2022-2024 dongdigua<br>
$v$
</footer>
<script>
fetch("/quotes.txt")
.then((response) => response.text())
.then((text) => {
console.log(text)
lines = text.split(/\r?\n/).filter(item => item !== "").map(item => item.replace(/\\n/g, '\n'));
var index = Math.floor((Math.random() * lines.length));
window.document.getElementById("quote").innerHTML = "\"" + lines[index] + "\"";
});
</script>
</body>