mirror of
https://github.com/dongdigua/dongdigua.github.io
synced 2024-11-27 04:30:55 +08:00
64 lines
2.8 KiB
HTML
64 lines
2.8 KiB
HTML
<!-- 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:Monaco,Lucida Console,courier new,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>
|