forked from Num142857/alili.tech
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
280 lines (238 loc) · 12.5 KB
/
404.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<!DOCTYPE html><html lang="zh"><head><meta name="generator" content="Hugo 0.51"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="HandheldFriendly" content="True"><meta name="viewport" content="initial-scale=1,width=device-width,minimum-scale=1,maximum-scale=1,user-scalable=no"><meta name="wap-font-scale" content="no"><meta name="360-site-verification" content="0903ba33c82867d1f7bd8831e32a7e34"><meta name="sogou_site_verification" content="E8uWFBcf4a"><meta name="author" content="Fan"><meta name="description" itemprop="description" content="公众号: Alili丶前端大爆炸. 持续学习,持续写博客. 此生理想、近期计划、今日功课。"><meta name="keywords" content="Hello Alili, 前端大爆炸, WEB BANG BANG BANG, 前端, 前端博客, web前端博客, 前端模块化, 前端工程化, 前端数据监控, 性能优化, 网页制作, 前端, js, html5, css, 踩坑小报告, 微前端, 树莓派, 前端开发, 区块链, 网络, Mongodb, Vue.js, Angular.js, node.js"><meta property="og:locale" content="en_US"><meta property="og:title" content="404 Page not found"><meta property="og:image" content="https://alili.tech/images/logo.png"><meta property="og:description" content="公众号: Alili丶前端大爆炸. 持续学习,持续写博客. 此生理想、近期计划、今日功课。"><meta property="og:site_name" content="Hello Alili"><title>404 Page not found | 前端大爆炸! - WEB BANG! BANG!! BANG!!!</title><link rel="shortcut icon" href="https://alili.tech/images/favicon.ico"><link rel="manifest" href="/manifest.json"><link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet"><link href="https://cdn.bootcdn.net/ajax/libs/justifiedGallery/3.6.1/css/justifiedGallery.min.css" rel="stylesheet"><link rel="preload" href="https://alili.tech/css/style.css" as="style"><link rel="stylesheet" href="https://alili.tech/css/style.css"><script src="https://cdn.bootcdn.net/ajax/libs/jquery/2.1.3/jquery.min.js"></script><script>document.addEventListener("error", function (e) {
var elem = e.target;
if (elem.tagName.toLowerCase() == 'img') {
elem.style.display='none'
}
}, true);</script></head><style>@-webkit-keyframes cursor-blink {
0% {
opacity: 0
}
50% {
opacity: 1
}
100% {
opacity: 0
}
}
@-moz-keyframes cursor-blink {
0% {
opacity: 0
}
50% {
opacity: 1
}
100% {
opacity: 0
}
}
@keyframes cursor-blink {
0% {
opacity: 0
}
50% {
opacity: 1
}
100% {
opacity: 0
}
}
.terminal {
position: relative
}
.terminal .prompt {
color: #2bbc8a;
display: block;
font-family: AndaleMono,monospace;
font-weight: 700;
text-transform: uppercase;
font-size: 12px;
letter-spacing: .1em;
white-space: pre-wrap;
text-shadow: 0 0 2px rgba(31,240,66,.75);
line-height: 1;
margin-bottom: .75em
}
@media only screen and (max-width: 641px) {
.terminal .prompt {
font-size:.6em
}
}
.terminal .prompt:before {
content: '> ';
display: inline-block
}
.terminal .new-output {
display: inline-block
}
.terminal .new-output:after {
display: inline-block;
vertical-align: -.15em;
width: .75em;
height: 1em;
margin-left: 5px;
background: #2bbc8a;
box-shadow: 1px 1px 1px rgba(31,240,66,.65),-1px -1px 1px rgba(31,240,66,.65),1px -1px 1px rgba(31,240,66,.65),-1px 1px 1px rgba(31,240,66,.65);
-webkit-animation: cursor-blink 1.25s steps(1) infinite;
-o-animation: cursor-blink 1.25s steps(1) infinite;
animation: cursor-blink 1.25s steps(1) infinite;
content: ''
}
.post img{
width: 100%;
}
#nes-canvas{
background: url(https://incomparable9527.coding.net/p/imageBed/d/imageBed/git/raw/master/ade9c827639310ee2295a6cccbfcdc8175b6229aa3d19cf80b43a129d7ec8012.png) no-repeat;
background-size: 100%;
}</style><body><div class="content index width mx-auto px3 my4"><header id="header"><a href="/"><div id="logo" style="background-image: url(/images/logo2.png);"></div><div id="title"><h1>404 Page not found</h1></div></a><div id="nav"><ul><li class="icon"><a href="#"><i class="fa fa-bars fa-2x"></i></a></li><li><a href="/">Home</a></li><li><a href="/archive/">Archives</a></li><li><a href="/about/">About</a></li><li><a href="https://github.com/Fantasy9527" target="_blank">Github</a></li></ul></div></header><section id="wrapper" class="home"><article class="post"><div class="terminal padded"><p class="prompt">link is dead.</p><p class="prompt output new-output">游戏正在初始化...</p></div><canvas id="nes-canvas" width="256" height="240" style="width: 100%"></canvas><p>上: W, 下: S, 左: A, 右: D,<br>Start: 回车 , Select: Tab<br>A Button: J, B Button: K</p><h1># 最新文章</h1><ul id="more-post-list" class="archive readmore"><li><a href="/archive/pmzpd2410y/">我的2020<aside class="dates">2021-03-04</aside></a></li><li><a href="/archive/hm5dl5tsw3k/">使用Taro开发各端的顺序建议<aside class="dates">2020-12-16</aside></a></li><li><a href="/archive/n1j1l1fvzbb/">使用Taro开发的快应用如何优化体积<aside class="dates">2020-12-15</aside></a></li><li><a href="/archive/eujpibnlnp8/">TensorFlow中的Tensor是什么?<aside class="dates">2020-09-18</aside></a></li><li><a href="/archive/xewn7qbng4a/">Mac系统开启Chrome 跟 Edge的网页强制暗黑模式<aside class="dates">2020-09-17</aside></a></li><li><a href="/archive/leqgfwbuko/">Mac系统如何关掉Chrome的跨域限制<aside class="dates">2020-09-16</aside></a></li><li><a href="/archive/97enyq3a3m/">数学篇 - 数据结构丶编程语句丶基础算法与数学的关系(笔记)<aside class="dates">2020-09-15</aside></a></li><li><a href="/archive/6iwpimvelxh/">数学篇 - 朴素贝叶斯(Naive Bayes)分类算法(笔记)<aside class="dates">2020-09-14</aside></a></li><li><a href="/archive/haz1cu03hf/">数学篇 - 概率之联合概率、条件概率、边缘概率和贝叶斯法则(笔记)<aside class="dates">2020-09-13</aside></a></li><li><a href="/archive/6mchh1x7mrv/">数学篇 - 概率之随机变量与分布(笔记)<aside class="dates">2020-09-12</aside></a></li></ul></article></section></div><script type="text/javascript" src="https://unpkg.com/jsnes/dist/jsnes.min.js"></script><script type="text/javascript">var SCREEN_WIDTH = 256;
var SCREEN_HEIGHT = 240;
var FRAMEBUFFER_SIZE = SCREEN_WIDTH*SCREEN_HEIGHT;
var canvas_ctx, image;
var framebuffer_u8, framebuffer_u32;
var AUDIO_BUFFERING = 512;
var SAMPLE_COUNT = 4*1024;
var SAMPLE_MASK = SAMPLE_COUNT - 1;
var audio_samples_L = new Float32Array(SAMPLE_COUNT);
var audio_samples_R = new Float32Array(SAMPLE_COUNT);
var audio_write_cursor = 0, audio_read_cursor = 0;
var nes = new jsnes.NES({
onFrame: function(framebuffer_24){
for(var i = 0; i < FRAMEBUFFER_SIZE; i++) framebuffer_u32[i] = 0xFF000000 | framebuffer_24[i];
},
onAudioSample: function(l, r){
audio_samples_L[audio_write_cursor] = l;
audio_samples_R[audio_write_cursor] = r;
audio_write_cursor = (audio_write_cursor + 1) & SAMPLE_MASK;
},
});
function onAnimationFrame(){
window.requestAnimationFrame(onAnimationFrame);
image.data.set(framebuffer_u8);
canvas_ctx.putImageData(image, 0, 0);
}
function audio_remain(){
return (audio_write_cursor - audio_read_cursor) & SAMPLE_MASK;
}
function audio_callback(event){
var dst = event.outputBuffer;
var len = dst.length;
if(audio_remain() < AUDIO_BUFFERING) nes.frame();
var dst_l = dst.getChannelData(0);
var dst_r = dst.getChannelData(1);
for(var i = 0; i < len; i++){
var src_idx = (audio_read_cursor + i) & SAMPLE_MASK;
dst_l[i] = audio_samples_L[src_idx];
dst_r[i] = audio_samples_R[src_idx];
}
audio_read_cursor = (audio_read_cursor + len) & SAMPLE_MASK;
}
function keyboard(callback, event){
var player = 1;
switch(event.keyCode){
case 87:
callback(player, jsnes.Controller.BUTTON_UP); break;
case 83:
callback(player, jsnes.Controller.BUTTON_DOWN); break;
case 65:
callback(player, jsnes.Controller.BUTTON_LEFT); break;
case 68:
callback(player, jsnes.Controller.BUTTON_RIGHT); break;
case 65:
case 74:
callback(player, jsnes.Controller.BUTTON_A); break;
case 83:
case 75:
callback(player, jsnes.Controller.BUTTON_B); break;
case 9:
callback(player, jsnes.Controller.BUTTON_SELECT); break;
case 13:
callback(player, jsnes.Controller.BUTTON_START); break;
default: break;
}
}
function nes_init(canvas_id){
var canvas = document.getElementById(canvas_id);
canvas_ctx = canvas.getContext("2d");
image = canvas_ctx.getImageData(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
canvas_ctx.fillStyle = "black";
canvas_ctx.fillRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
var buffer = new ArrayBuffer(image.data.length);
framebuffer_u8 = new Uint8ClampedArray(buffer);
framebuffer_u32 = new Uint32Array(buffer);
var audio_ctx = new window.AudioContext();
var script_processor = audio_ctx.createScriptProcessor(AUDIO_BUFFERING, 0, 2);
script_processor.onaudioprocess = audio_callback;
script_processor.connect(audio_ctx.destination);
}
function nes_boot(rom_data){
nes.loadROM(rom_data);
window.requestAnimationFrame(onAnimationFrame);
}
function nes_load_data(canvas_id, rom_data){
nes_init(canvas_id);
nes_boot(rom_data);
}
function nes_load_url(canvas_id, path){
nes_init(canvas_id);
var req = new XMLHttpRequest();
req.open("GET", path);
req.overrideMimeType("text/plain; charset=x-user-defined");
req.onerror = () => console.log(`Error loading ${path}: ${req.statusText}`);
req.onload = function() {
if (this.status === 200) {
nes_boot(this.responseText);
} else if (this.status === 0) {
} else {
req.onerror();
}
};
req.send();
}
document.addEventListener('keydown', (event) => {keyboard(nes.buttonDown, event)});
document.addEventListener('keyup', (event) => {keyboard(nes.buttonUp, event)});
nes_load_url("nes-canvas", "https://alili.tech/super.nes");</script><footer id="footer"><div class="footer-left">Copyright © 2021 Fan <a href="https://beian.miit.gov.cn" rel="external nofollow noopener noreferrer" target="_blank">浙ICP备18045521号</a></div><div class="footer-right"><nav><ul><li><a href="/">Home</a></li><li><a href="/archive/">Archives</a></li><li><a href="/about/">About</a></li><li><a href="https://github.com/Fantasy9527" target="_blank">Github</a></li></ul></nav></div></footer><script src="https://alili.tech/js/main.js"></script><script>(function(){
if(location.host!=='alili.tech')return;
var ga = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
ga.src = 'https://www.googletagmanager.com/gtag/js?id=UA-129382678-1';
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(ga, s);
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-129382678-1');
})()</script><script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><script>(function(){
if ('serviceWorker' in navigator) {
if(location.host!=='alili.tech')return;
window.addEventListener('load', () => {
navigator.serviceWorker
.register('/sw.js')
.then(registration => {
})
.catch(registrationError => {
console.log('SW registration failed: ', registrationError);
});
});
}
})()</script><script>var _mtac = {};
(function() {
if(location.host!=='alili.tech')return;
var mta = document.createElement("script");
mta.src = "//pingjs.qq.com/h5/stats.js?v2.0.4";
mta.setAttribute("name", "MTAH5");
mta.setAttribute("sid", "500643908");
mta.setAttribute("cid", "500649335");
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(mta, s);
})();</script><script>(function(){
if(location.host!=='alili.tech')return;
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();</script></body></html>