Skip to content

Commit

Permalink
Archive page for my old crappier site
Browse files Browse the repository at this point in the history
  • Loading branch information
KirisameSoup committed Nov 10, 2023
1 parent de7b37b commit 375d653
Show file tree
Hide file tree
Showing 81 changed files with 5,679 additions and 15 deletions.
4 changes: 3 additions & 1 deletion _data/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
- name: About
link: /about
- name: Markdown 实验室
link: /md-lab
link: /md-lab
- name: 归档页面
link: /archive
249 changes: 249 additions & 0 deletions _layouts/archive/surf/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,249 @@
<!DOCTYPE html>
<html lang="zh-hans">
<!--   , - ───- 、
     /      `丶
r‐<::/ ン-―ーー- 、 、 \
  {(こ〆.:/ ______\ ヽ:ヽ
__/‘`/ 〃7了.:.:.:.:.:.ヽj:ヤ¬寸
/,イ>/./::{:!:::::::::ヽ:|.::Vヽイ
レ/,イ :/{:ハ\{::、ヽ :::}:_|_::l >|
{/|:!{:.ィf坏ト\{ヽ,><ム!:::: Kヽト、
|::ヽIi.r_;メ ヽ´ イ圷ハ |::::|\/ヽ>
|:::ト:ハ     ,  r;ン j::: l V
|i::!::ヘ {>ーァ   /!:::/::/
|Nヽヽ’::ヽ、ヽ_ノ .ィ:/:::/ /
ヾ/}}八:ヽ>.-‐か/7::/∨|
r< ij\ ヽ、\__{ 〉/イl )}
f⌒\ \ヽ )‘\ニニ ∧ ||!彡ヘ
|  \ ヽム   ヽ’ .||}ヘ,_,イ
r-ヽ    ̄ )\   Vrj/ ヽヽ
|  \   // /) ミー- V / ̄ヽ
|  (>―‐‘/ /勺ヽ ¨ ア  /  }
|  \三三‐‘ノ^ヽ /  /-――一'
╭━━━┳━━━┳━━━╮╭━━━┳━━━┳━╮╱╭╮
┃╭━╮┃╭━╮┃╭━╮┃╰╮╭╮┃╭━╮┃┃╰╮┃┃
┃┃╱╰┫┃╱┃┃┃╱╰╯╱┃┃┃┃┃╱┃┃╭╮╰╯┃
┃┃╭━┫┃╱┃┃┃╱╭╮╱┃┃┃┃╰━╯┃┃╰╮┃┃
┃╰┻━┃╰━╯┃╰━╯┃╭╯╰╯┃╭━╮┃┃╱┃┃┃
╰━━━┻━━━┻━━━╯╰━━━┻╯╱╰┻╯╱╰━╯ -->

<head>
<meta charset="UTF-8">
<title>归档:幻想乡冲浪大手册 ~ The Gensokyo Surfing Guidebook </title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#157878">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta http-equiv="cache-control" content="max-age=300" />
<link rel="stylesheet" href="{{ '/archive/surf/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}" onload="this.media='all'">

<script>
(function () {
'use strict';

const sparks = 25;
const speed = 23;
const bangs = 5;
const colours = ['#8ff', '#88f', '#8f8', '#8ff', '#88f', '#8f8', '#1dcc74', '#1dcc74', '#fff'];

const intensity = new Array();
let Xpos = new Array();
let Ypos = new Array();
let dX = new Array();
let dY = new Array();
let stars = new Array();
let decay = new Array();
let timers = new Array();
let swide = 800;
let shigh = 600;
let sleft = 0;
let sdown = 0;
let count = 0;

function addLoadEvent(funky) {
const oldonload = window.onload;
if (typeof oldonload !== 'function') {
window.onload = funky;
} else {
window.onload = function () {
if (oldonload) oldonload();
funky();
};
}
}

addLoadEvent(clicksplode);

function clicksplode() {
if (document.getElementById) {
window.addEventListener('scroll', set_scroll);
window.addEventListener('resize', set_width);
document.addEventListener('click', eksplode);
set_width();
set_scroll();
for (let i = 0; i < bangs; i++) {
for (let j = sparks * i; j < sparks + sparks * i; j++) {
stars[j] = createDiv('★', 13);
document.body.appendChild(stars[j]);
}
}
}
}

function createDiv(char, size) {
const div = document.createElement('div');
const sty = div.style;
sty.font = size + 'px monospace';
sty.position = 'absolute';
sty.backgroundColor = 'transparent';
sty.visibility = 'hidden';
sty.zIndex = '0';
sty.pointerEvents = 'none';
div.appendChild(document.createTextNode(char));
return div;
}

function bang(N) {
let A = 1;
for (let i = sparks * N; i < sparks * (N + 1); i++) {
if (decay[i]) {
const Z = stars[i].style;
Xpos[i] += dX[i];
Ypos[i] += (dY[i] += 1.25 / intensity[N]);
if (Xpos[i] >= swide || Xpos[i] < 0 || Ypos[i] >= shigh + sdown || Ypos[i] < 0) decay[i] = 1;
else {
Z.left = Xpos[i] + 'px';
Z.top = Ypos[i] + 'px';
}
if (decay[i] === 15) Z.fontSize = '7px';
else if (decay[i] === 7) Z.fontSize = '2px';
else if (decay[i] === 1) Z.visibility = 'hidden';
decay[i]--;
} else A++;
}
if (A !== sparks) timers[N] = setTimeout(function () {
bang(N);
}, speed);
}

function eksplode(e) {
const x = e ? e.pageX : event.x + sleft;
const y = e ? e.pageY : event.y + sdown;
const N = ++count % bangs;
const M = Math.floor(Math.random() * 3 * colours.length);
intensity[N] = 5 + Math.random() * 4;
for (let i = N * sparks; i < (N + 1) * sparks; i++) {
Xpos[i] = x;
Ypos[i] = y;
dY[i] = (Math.random() - 0.5) * intensity[N];
dX[i] = (Math.random() - 0.5) * (intensity[N] - Math.abs(dY[i])) * 1.25;
decay[i] = 16 + Math.floor(Math.random() * 16);
const Z = stars[i].style;
if (M < colours.length) Z.color = colours[i % 2 ? count % colours.length : M];
else if (M < 2 * colours.length) Z.color = colours[count % colours.length];
else Z.color = colours[i % colours.length];
Z.fontSize = '13px';
Z.visibility = 'visible';
}
clearTimeout(timers[N]);
bang(N);
}

function set_width() {
let sw_min = 999999;
let sh_min = 999999;
const docElement = document.documentElement;
const docBody = document.body;

if (docElement.clientWidth > 0) sw_min = docElement.clientWidth;
if (docElement.clientHeight > 0) sh_min = docElement.clientHeight;
if (self.innerWidth > 0 && self.innerWidth < sw_min) sw_min = self.innerWidth;
if (self.innerHeight > 0 && self.innerHeight < sh_min) sh_min = self.innerHeight;
if (docBody.clientWidth > 0 && docBody.clientWidth < sw_min) sw_min = docBody.clientWidth;
if (docBody.clientHeight > 0 && docBody.clientHeight < sh_min) sh_min = docBody.clientHeight;

if (sw_min === 999999 || sh_min === 999999) {
sw_min = 800;
sh_min = 600;
}
swide = sw_min - 7;
shigh = sh_min - 7;
}

function set_scroll() {
if (self.pageYOffset !== undefined) {
sdown = self.pageYOffset;
sleft = self.pageXOffset;
} else if (docBody && (docBody.scrollTop || docBody.scrollLeft)) {
sdown = docBody.scrollTop;
sleft = docBody.scrollLeft;
} else if (docElement && (docElement.scrollTop || docElement.scrollLeft)) {
sleft = docElement.scrollLeft;
sdown = docElement.scrollTop;
} else {
sdown = 0;
sleft = 0;
}
}
})();
</script>

</head>
<body>
<header class="page-header" role="banner">
<h1 class="project-name"> 幻想乡冲浪大手册 ~ The Gensokyo Surfing Guidebook </h1>
<h2 class="project-tagline">“天亦3G实在是太快了!” 终于,互联网的插头也随着这过时的网络系统接入了幻想乡。想必,面对这份全新而又复杂的存在,各位幻想之中、时代之外的少年少女们或许都有些一头雾水吧?萨,就由我这西洋的东方魔法使☆雾雨·蘑菇汤☆,引领各位踏上这激动人心的赛博之旅~~</h2>
{% if site.github.is_project_page %}
<a href="{{ site.github.repository_url }}" class="btn">View on GitHub</a>
{% endif %}
{% if site.show_downloads %}
<a href="{{ site.github.zip_url }}" class="btn">Download .zip</a>
<a href="{{ site.github.tar_url }}" class="btn">Download .tar.gz</a>
{% endif %}
</header>
<main id="content" class="main-content" role="main">
{{ content }}

<footer class="site-footer">
{% if site.github.is_project_page %}
<span class="site-footer-owner"><a href="{{ site.github.repository_url }}">{{ site.github.repository_name }}</a> is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a>.</span>
{% endif %}
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span>
</footer>
</main>
<cbox>
<div class="msg" id="top">
<img src="https://cbox.im/i/MzXca.c100.jpg" class="pic">
<div class="dtxt" title=" 8 Aug 23, 12:08 AM">置顶</div>
<div class="nme">雾雨蘑菇汤</div>
<a href="https://cbox.im/i/1g4sE.c100.c100.jpg" rel="noreferrer" target="_blank" class="nmeurl"></a>
<div class="body">
<span class="bbBig"><b>欢迎来到本网站的留言板!</b></span> <br>
留言时请注意基本的礼仪,谢谢! <br>
留言板支持 BBCode 格式,<br>
<s>
<span class="bbColor" style="color:#f00"><i></i></span><span class="bbColor" style="color:#f80"><i><b></b></i></span>
<span class="bbColor" style="color:#eb0"></span><span class="bbColor" style="color:#0a0"><b></b></span>
<span class="bbColor" style="color:#0ff"><span class="bbBig"><sub></sub></span></span><span class="bbColor" style="color:#44f"><span class="bbBig"><sup><b></b></sup></span></span>
<span class="bbColor" style="color:#f0f">吧!</span>
</s>
</div>
</div>
<iframe
src="https://www3.cbox.ws/box/?boxid=3530749&boxtag=Txc0kj"
width="100%" height="450" allowtransparency="true"
allow="autoplay"
frameborder="0"
marginheight="0"
marginwidth="0"
scrolling="auto"></iframe>
</cbox>
<label id = "cboxTg" title="留言板">
<input type = "checkbox">
<div class = "content"></div>
</label>
<a id = "toToc" href="#-目录" title="回到目录">
<div class = "content"></div>
</a>
</body>
</html>
14 changes: 14 additions & 0 deletions _layouts/archive/surf/misc.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
layout: archive/surf/default
---

<style>
:root {
--bg-img: url(/archive/surf/assets/backgrounds/photo_2023-07-18_22-21-25_16_9_COOLASFUCK.png) !important;
}
a fx {
color: #f00 !important;
}
</style>

{{ content }}
8 changes: 8 additions & 0 deletions _site/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@
<!-- -->
</p>

<p>

<a href="/archive" >
归档页面
</a>
<!-- -->
</p>

</nav>
</div>
<div class="nav-b"></div>
Expand Down
Loading

0 comments on commit 375d653

Please sign in to comment.