-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
765 lines (601 loc) · 35.2 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
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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content="Hugo 0.52" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="My thoughts and rambles">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="https://robinsea.github.io/images/favicon.ico">
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="https://robinsea.github.io/images/touch/chrome-touch-icon-192x192.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Material Design Lite">
<link rel="apple-touch-icon-precomposed" href="apple-touch-icon-precomposed.png">
<meta name="msapplication-TileImage" content="https://robinsea.github.io/images/touch/ms-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#3372DF">
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<style>
html, body {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
#cas {
position: absolute;
left:0;
top:0;
bottom:0;
right:0;
margin:auto;
z-index: 0;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
.contentimg {
margin: 20px auto;
border:2px solid #808080;
overflow:hidden;
z-index:2;
}
.contentimg img {
transition-duration:0.7s;
z-index:1;
}
.contentimg img:hover {
transform: scale(1.5);
-webkit-transform: scale(1.5);
-moz-transform: scale(1.5);
-ms-transform: scale(1.5);
-o-transform: scale(1.5);
}
</style>
<link href="/css/lightbox.min.css" rel="stylesheet">
<script type="text/javascript" src="/js/lightbox-plus-jquery.min.js"></script>
<script>
lightbox.option({
'resizeDuration': 200,
'wrapAround': true,
'alwaysShowNavOnTouchDevices':true,
'albumLabel':"🌳第%1项|共%2项🌳",
})
</script>
<style>
#time {
position: relative;
margin: 0 1px;
height: 17px;
}
#time canvas {
position: absolute;
width: 100%;
height: 100%;
}
</style>
<canvas id="cas"></canvas>
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<link rel="stylesheet" href="https://robinsea.github.io/css/ionicons.min.css"/>
<link rel="stylesheet" href="https://robinsea.github.io/css/material.grey-orange.min.css"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://robinsea.github.io/css/hmdl-style.css"/>
<link rel="stylesheet" href="/live2d/css/live2d.css" />
<link href="/css/monokai-sublime.css" rel="stylesheet">
<script src="/js/highlight.pack.js"></script>
<script src="/js/common.js"></script>
<script >hljs.initHighlightingOnLoad();</script>
<title>༺ཉིཾ*梧桐部落*ཉྀ༻ </title>
</head>
<body style="background-image: url('/images/background.jpg'); " onload="getYiYan()">
<div class="hmdl-body mdl-layout mdl-js-layout has-drawer is-upgraded">
<header class="mdl-layout__header mdl-layout__header--transparent mdl-layout__header--scroll" >
<div class="mdl-layout__header-row" >
<div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation">
<a class="mdl-navigation__link mdl-color-text--accent" href="/">主页</a>
<a class="mdl-navigation__link" href="/post/">文章</a>
<a class="mdl-navigation__link" href="/project/">项目</a>
<a class="mdl-navigation__link" href="/about/">关于</a>
<a class="mdl-navigation__link" href="/disclaimer/">声明</a>
</nav>
</div>
</header>
<div class="mdl-layout__drawer" style="background-color:#f2eada">
<span class="mdl-layout-title" style="color:#239676">༺ཉིཾ*梧桐部落*ཉྀ༻</span>
<nav class="mdl-navigation">
<a class="mdl-navigation__link mdl-color-text--accent" href="/">主页</a>
<a class="mdl-navigation__link" href="/post/">文章</a>
<a class="mdl-navigation__link" href="/project/">项目</a>
<a class="mdl-navigation__link" href="/about/">关于</a>
<a class="mdl-navigation__link" href="/disclaimer/">声明</a>
</nav>
<script type="text/javascript" src="//ra.revolvermaps.com/0/0/1.js?i=0xiik4nm9c7&s=220&m=0&v=false&r=false&b=f2eada&n=false&c=ff0000" async="async"></script>
<font color="#9AE9B9">
<center>
<p>
<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script>
<span id="busuanzi_container_site_uv">
访客数<span id="busuanzi_value_site_uv"></span>人
<span id="busuanzi_container_site_pv">🌳 访问量<span id="busuanzi_value_site_pv"></span>次
</p>
</span></span>
</center>
</font>
<div id="search">
<form action="site:www.baidu.com" method="post">
<input name="searchterm" type="search" placeholder="站内搜索">
<select name="searchtype">
<option value="全部分类">全部分类 </option>
<option value="作者">作者</option>
<option value="文章名">文章名</option>
<option value="项目名">项目名</option>
</select>
<input name="submit" type="submit" value="搜索" style="width:2.5em;">
</form>
</div>
</div>
<main class="mdl-layout__content">
<font color="#f2eada" size="3">
<center><b>
<div id="hitokoto">🌳获取中...🌳</div>
</b></center>
<div id="from" align="right"></div>
<script>
function show(){
fetch('https://v1.hitokoto.cn/?c=d')
.then(function (res){
return res.json();
})
.then(function (data) {
var hitokoto = document.getElementById('hitokoto');
hitokoto.innerText = '🌳'+data.hitokoto+'🌳';
var from=document.getElementById('from');
from.innerText='----出自:《'+data.from+'》';
})
.catch(function (err) {
console.error(err);
})
}
function getYiYan(){
show();
setInterval(show, 8000);
}
</script>
</font>
<div class="hmdl-frontpage mdl-grid">
<div class="hmdl-profile-card mdl-card profile-card mdl-cell mdl-cell--8-col mdl-cell--4-col-desktop">
<div class="mdl-card__media mdl-color-text--grey-600" style="background-image: url('/images/avatar-192x210.png');background-color:#d0eada;">
</div>
<div id="fab_ctn" class="mdl-button--fab_flinger-container">
<button id="fab_btn" class="mdl-button mdl-js-ripple-effect mdl-js-button mdl-button--fab mdl-color--accent">
<i class="icon ion-android-add mdl-color-text--white" role="presentation"></i>
<span class="visuallyhidden">add</span>
</button>
<div class="mdl-button--fab_flinger-options">
<a href=/about>
<button id="about" class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-color--primary" title="关于我">
<i class="icon ion-person mdl-color-text--white" role="presentation"></i>
</button>
</a>
<a href=/project>
<button id="projects" class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-color--primary" title="我的项目">
<i class="icon ion-code mdl-color-text--white" role="presentation"></i>
</button>
</a>
<a href="mailto:[email protected]?subject=Hi">
<button id="email" class="mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-color--primary" title="跟我联系">
<i class="icon ion-email mdl-color-text--white" role="presentation"></i>
</button>
</a>
</div>
</div>
<div class="hmdl-page-meta mdl-card__supporting-text meta--fill mdl-color-text--grey-600 ">
<div>
<strong>RobinSea</strong>
</div>
</div>
</div>
<div class="mdl-card mdl-cell mdl-cell--8-col">
<div class="mdl-card__media mdl-color-text--grey-50" style=" background-color:#268368;">
<h3><a href="/post/%E5%85%B3%E4%BA%8E%E6%A2%A7%E6%A1%90%E9%83%A8%E8%90%BD/" >关于梧桐部落</a></h3>
</div>
<div class="mdl-card__supporting-text mdl-color-text--grey-600">
<div class="summary">
<h1 id="参考素材">参考素材☃️</h1>
<p>🍎主题:<a href="https://github.com/jchatkinson/HugoMDL">HugoMDL</a><br>
🐧live2d看板娘:<a href="https://github.com/eeg1412/Live2dHistoire">伊斯特瓦尔</a><br>
🏔️背景粒子效应:<a href="https://github.com/whxaxes/canvas-test">网状粒子效果</a><br>
🌨️访客位置显示:<a href="https://clustrmaps.com/site/1aim3?utm_source=widget&utm_campaign=widget_ctr">clustrmaps</a><br>
🚀访客统计:<a href="http://busuanzi.ibruce.info/">busuanzi</a><br>
🍀代码高亮:<a href="https://tonybai.com/2015/09/23/intro-of-gohugo/">github样式</a></p>
</div>
</div>
<div class="hmdl-page-meta mdl-card__supporting-text mdl-color-text--grey-600">
<div class="minilogo" style="background-image: url('/images/avatar-64x64.png');"></div>
<div>
<strong><a href="">梧桐部落</a></strong>
<span>2019年01月16日</span>
</div>
</div>
</div>
<div class="mdl-card mdl-cell mdl-cell--12-col">
<div class="mdl-card__media mdl-color-text--grey-50" style=" background-color:#268368;">
<h3><a href="/post/golang%E4%BD%BF%E7%94%A8ffmpeg%E7%9A%84%E9%82%A3%E4%BA%9B%E5%9D%91/" >Golang使用ffmpeg的那些坑</a></h3>
</div>
<div class="mdl-card__supporting-text mdl-color-text--grey-600">
<p>因业务需求需要用到golang调用ffmpeg,期间遇到各种曲折离奇的事情,例如服务运行时崩溃,流解析出错等等,还好最终拨开云雾见日出</p>
<h2 id="1-静态编译问题">1、静态编译问题</h2>
<p>(1)常规使用</p>
<ul>
<li>go1.11.2版本之前</li>
</ul>
<pre><code class="language-bash"> go build -ldflags -extldflags=-static
</code></pre>
<ul>
<li>go1.11.2</li>
</ul>
<p>可以直接在声明C或C++代码区域添加-static</p>
<pre><code class="language-go">//#cgo CFLAGS: -D_REENTRANT
//#cgo LDFLAGS:-static
//#cgo pkg-config: libavutil
import "C"
</code></pre>
<p>(2)go调用ffmpeg</p>
<p>正常情况以上办法就可以编译生成静态可执行文件,但是go调用ffmpeg时就不行了,因为要用到glibc只能进行动态链接,解决办法是修改ffmpeg编译后生成的pkgconfig中的相关*.pc文件。</p>
<p>-Wl,-Bstatic:ffmpeg接口强制静态链接, -Wl,-Bdynamic -lc :glibc强制动态链接 ,将libav-开头的.pc文件改过就好。</p>
<pre><code>Conflicts:
Libs: -L${libdir} -Wl,-Bstatic -lavutil -lm -Wl,-Bdynamic -lc
</code></pre>
<p>注:本人使用过程中发现要先进行动态编译后再进行以上操作才可,原因未明。</p>
</div>
<div class="hmdl-page-meta mdl-card__supporting-text mdl-color-text--grey-600">
<div class="minilogo" style="background-image: url('/images/avatar-64x64.png');"></div>
<div>
<strong><a href="">RobinSea</a></strong>
<span>2018年12月11日</span>
</div>
</div>
</div>
<div class="mdl-card mdl-cell mdl-cell--12-col">
<div class="mdl-card__media mdl-color-text--grey-50" style=" background-color:#268368;">
<h3><a href="/post/kubenetes1.8.15%E4%BA%8C%E8%BF%9B%E5%88%B6%E6%96%87%E4%BB%B6%E9%83%A8%E7%BD%B2/" >Kubenetes1.8.15二进制文件部署</a></h3>
</div>
<div class="mdl-card__supporting-text mdl-color-text--grey-600">
<p>1、下载服务程序</p>
<p>下载:<a href="https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.8.md#v1815">CHANGELOG-1.8</a></p>
<p>包名:<a href="https://dl.k8s.io/v1.8.15/kubernetes-server-linux-amd64.tar.gz">kubernetes-server-linux-amd64.tar.gz</a></p>
<p>将二进制文件拷贝到/usr/bin</p>
</div>
<div class="hmdl-page-meta mdl-card__supporting-text mdl-color-text--grey-600">
<div class="minilogo" style="background-image: url('/images/avatar-64x64.png');"></div>
<div>
<strong><a href="">RobinSea</a></strong>
<span>2018年10月16日</span>
</div>
</div>
</div>
<div class="mdl-card mdl-cell mdl-cell--12-col">
<div class="mdl-card__media mdl-color-text--grey-50" style=" background-color:#268368;">
<h3><a href="/post/terminalvimvscode%E7%9A%84%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8/" >Terminal&&vim&&vscode的基本使用</a></h3>
</div>
<div class="mdl-card__supporting-text mdl-color-text--grey-600">
<p>terminal&&vim&&vscode的基本使用</p>
<p>1、terminal(终端使用)</p>
<p>ctrl+alt+t 打开终端</p>
<p>ctrl+shift+t 打开另一个标签</p>
<p>ctrl+shift+w 关闭当前标签</p>
<p>alt+1 alt+2 转换到对应标签</p>
<p>2、vim使用</p>
<p>sp filename 将文件在下面打开 不写则打开相同文件</p>
<p>vsp filename左右打开一页</p>
<p>ctrl+w 执行两次切换页面</p>
<p>3、vscode使用</p>
<p>1、ctrl+函数 实现跳转</p>
<p>2、ctrl+alt+- 后退</p>
<p>3、ctrl+shift+- 前进</p>
<p>4、termianl中code+项目目录 使用vscode打开项目</p>
</div>
<div class="hmdl-page-meta mdl-card__supporting-text mdl-color-text--grey-600">
<div class="minilogo" style="background-image: url('/images/avatar-64x64.png');"></div>
<div>
<strong><a href="">RobinSea</a></strong>
<span>2018年10月12日</span>
</div>
</div>
</div>
<div class="mdl-card mdl-cell mdl-cell--12-col">
<div class="mdl-card__media mdl-color-text--grey-50" style=" background-color:#268368;">
<h3><a href="/post/go%E5%AD%A6%E4%B9%A0%E6%80%BB%E7%BB%93/" >Go学习总结</a></h3>
</div>
<div class="mdl-card__supporting-text mdl-color-text--grey-600">
<p>go卸载:apt-get purge golang-go</p>
<p>1、25关键字或保留字36标识符</p>
<p>2、程序组成</p>
<p>关键字、运算符、常量、变量、类型、函数</p>
<p>sudo vim /etc/profile #设置所有用户环境变量
vim ~/.bashrc #设置当前用户环境变量(设置root用户)</p>
<p>PKG_CONFIG_PATH=/home/robin/soft/target/lib/pkgconfig</p>
<p>项目开发知识了解</p>
<p>1、TLS与SSL在<a href="https://baike.baidu.com/item/%E4%BC%A0%E8%BE%93%E5%B1%82/4329536">传输层</a>对网络连接进行加密</p>
<p>2、toml 处理TOML配置文件</p>
<p>toml处理:<a href="https://github.com/BurntSushi/toml">toml</a></p>
<p>教程:<a href="https://www.cnblogs.com/CraryPrimitiveMan/p/7928647.html">cnblogs</a></p>
</div>
<div class="hmdl-page-meta mdl-card__supporting-text mdl-color-text--grey-600">
<div class="minilogo" style="background-image: url('/images/avatar-64x64.png');"></div>
<div>
<strong><a href="">RobinSea</a></strong>
<span>2018年10月11日</span>
</div>
</div>
</div>
<div class="mdl-card mdl-cell mdl-cell--12-col">
<div class="mdl-card__media mdl-color-text--grey-50" style=" background-color:#268368;">
<h3><a href="/post/k8s%E5%85%B3%E9%94%AE%E7%9F%A5%E8%AF%86%E7%82%B9%E6%B1%87%E6%80%BB%E4%B8%89-%E5%BF%AB%E9%80%9F%E9%83%A8%E7%BD%B2k8s%E9%9B%86%E7%BE%A4/" >K8s关键知识点汇总(三)----快速部署k8s集群</a></h3>
</div>
<div class="mdl-card__supporting-text mdl-color-text--grey-600">
<p>//操作失败,哭…..</p>
<p>1、配置k8s的yum阿里云源(在root下进行)</p>
<p>vim /etc/yum.repos.d/kubernetes.repo</p>
<p>[kubernetes]<br />
name=kubernetes<br />
baseurl=<a href="http://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64">http://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64</a><br />
enabled=1<br />
gpgcheck=0<br />
repo_gpgcheck=0<br />
gpgkey=<a href="http://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg">http://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg</a><br />
<a href="http://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg">http://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg</a></p>
</div>
<div class="hmdl-page-meta mdl-card__supporting-text mdl-color-text--grey-600">
<div class="minilogo" style="background-image: url('/images/avatar-64x64.png');"></div>
<div>
<strong><a href="">RobinSea</a></strong>
<span>2018年10月10日</span>
</div>
</div>
</div>
<div class="mdl-card mdl-cell mdl-cell--12-col">
<div class="mdl-card__media mdl-color-text--grey-50" style=" background-color:#268368;">
<h3><a href="/post/%E9%95%9C%E5%83%8F%E5%88%B6%E4%BD%9C%E4%B8%80/" >镜像制作(一)</a></h3>
</div>
<div class="mdl-card__supporting-text mdl-color-text--grey-600">
<p>参考:<a href="https://blog.csdn.net/chanmufeng/article/details/80459607">https://blog.csdn.net/chanmufeng/article/details/80459607</a></p>
<h5 id="1-生成执行程序">1、生成执行程序</h5>
<p>根据基础镜像,运行容器安装程序</p>
<h5 id="2-镜像操作">2、镜像操作</h5>
<p>制作镜像</p>
<p>docker images #查看本地镜像</p>
<p>docker container ls 或docker ps #查看本地容器,ls -a可查看隐藏内容</p>
</div>
<div class="hmdl-page-meta mdl-card__supporting-text mdl-color-text--grey-600">
<div class="minilogo" style="background-image: url('/images/avatar-64x64.png');"></div>
<div>
<strong><a href="">RobinSea</a></strong>
<span>2018年10月10日</span>
</div>
</div>
</div>
<nav class="mdl-cell mdl-cell--12-col">
<div class="section-spacer"></div>
<a href=/post/ title="显示更多">
显示更多
<button class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon">
<i class="material-icons icon ion-android-arrow-forward" role="presentation"></i>
</button>
</a>
</nav>
</div>
<script type="text/javascript">
try{
if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
}else{
!function() {
var canvas = document.getElementById('cas');
var ctx = canvas.getContext('2d');
var rgb = '255';
var extendDis = 5;
var lineDis = 100;
lineDis *= lineDis;
resize();
window.onresize = resize;
function resize() {
canvas.width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
canvas.height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
}
var RAF = (function() {
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(callback) {
window.setTimeout(callback, 1000 / 60);
};
})();
var warea = {x: null, y: null};
window.onmousemove = function(e) {
e = e || window.event;
warea.x = e.clientX - canvas.offsetLeft;
warea.y = e.clientY - canvas.offsetTop;
};
window.onmouseout = function(e) {
warea.x = null;
warea.y = null;
};
var dots = [];
for (var i = 0; i < 150; i++) {
var x = Math.random() * (canvas.width + 2 * extendDis) - extendDis;
var y = Math.random() * (canvas.height + 2 * extendDis) - extendDis;
var xa = (Math.random() * 2 - 1) / 1.5;
var ya = (Math.random() * 2 - 1) / 1.5;
dots.push({
x: x,
y: y,
xa: xa,
ya: ya
})
}
setTimeout(function() {
animate();
}, 100);
function animate() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
bubDrawLine([warea].concat(dots));
RAF(animate);
}
function bubDrawLine(ndots) {
var ndot;
dots.forEach(function(dot) {
move(dot);
for (var i = 0; i < ndots.length; i++) {
ndot = ndots[i];
if (dot === ndot || ndot.x === null || ndot.y === null) continue;
var xc = dot.x - ndot.x;
var yc = dot.y - ndot.y;
if (xc > ndot.max || yc > lineDis) continue;
var dis = xc * xc + yc * yc;
if (dis > lineDis) continue;
var ratio;
if (ndot === warea && dis < 20000) {
dot.x -= xc * 0.01;
dot.y -= yc * 0.01;
}
ratio = (lineDis - dis) / lineDis;
ctx.beginPath();
ctx.lineWidth = ratio / 2;
ctx.strokeStyle = 'rgba(' + rgb + ', ' + rgb + ', ' + rgb + ', 1';
ctx.moveTo(dot.x, dot.y);
ctx.lineTo(ndot.x, ndot.y);
ctx.stroke();
}
ndots.splice(ndots.indexOf(dot), 1);
});
}
function move(dot) {
dot.x += dot.xa;
dot.y += dot.ya;
dot.xa *= (dot.x > (canvas.width + extendDis) || dot.x < -extendDis) ? -1 : 1;
dot.ya *= (dot.y > (canvas.height + extendDis) || dot.y < -extendDis) ? -1 : 1;
ctx.fillStyle = 'rgba(' + rgb + ', ' + rgb + ', ' + rgb + ', 1';
ctx.fillRect(dot.x - 0.5, dot.y - 0.5, 1, 1);
}
}();
}
}catch(e){}
</script>
<script type="text/javascript" src="/js/love.js"></script>
<script type="text/javascript"> /* 鼠标特效 */function getColorRandom(){ /* 随机颜色函数 */var c="#";var cArray=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];for(var i=0;i<6;i++){var cIndex= Math.round(Math.random()*15);c+=cArray[cIndex];}return c;}var a_idx = 0; jQuery(document).ready(function($){$("body").click(function(e){var a = new Array("富强", "民主", "文明", "和谐", "自由", "平等", "公正" ,"法治", "爱国", "敬业", "诚信", "友善");var $i = $("<span/>").text(a[a_idx]);a_idx = (a_idx + 1) % a.length;var x = e.pageX,y = e.pageY;$i.css({"z-index": 999999999,"top": y - 20,"left": x,"position": "absolute","font-weight": "bold","color":getColorRandom()});$("body").append($i);$i.animate({"top": y - 180, "opacity": 0}, 1500,function() { $i.remove(); }); }); });</script>
<div id="landlord" style="left:5px;bottom:0px;">
<div class="message" style="opacity:0"></div>
<canvas id="live2d" width="500" height="560" class="live2d"></canvas>
<div class="live_talk_input_body">
<div class="live_talk_input_name_body">
<input name="name" type="text" class="live_talk_name white_input" id="AIuserName" autocomplete="off" placeholder="你的名字" />
</div>
<div class="live_talk_input_text_body">
<input name="talk" type="text" class="live_talk_talk white_input" id="AIuserText" autocomplete="off" placeholder="要和我聊什么呀?"/>
<button type="button" class="live_talk_send_btn" id="talk_send">发送</button>
</div>
</div>
<input name="live_talk" id="live_talk" value="1" type="hidden" />
<div class="live_ico_box">
<div class="live_ico_item type_info" id="showInfoBtn"></div>
<div class="live_ico_item type_talk" id="showTalkBtn"></div>
<div class="live_ico_item type_music" id="musicButton"></div>
<div class="live_ico_item type_youdu" id="youduButton"></div>
<div class="live_ico_item type_quit" id="hideButton"></div>
<div class="live2d_weiyu_cache" style="display:none;">凤凰鸣矣,于彼高岗。梧桐生矣,于彼朝阳。</div>
<div class="live2d_weiyu_cache" style="display:none;">I do not know where to go,but I have been on the road.
我不知道将去何方,但我已在路上。</div>
<div class="live2d_weiyu_cache" style="display:none;">记住自己的名字,才找得到回家的路。</div>
<div class="live2d_weiyu_cache" style="display:none;">从一个城市到另一个城市,只有靠自己努力,学会长大,学会承受,学会哭过之后,还可以微笑的拥抱爸爸妈妈 。</div>
<div class="live2d_weiyu_cache" style="display:none;">有些事情不管我们愿不愿意,都得去做,人生既然已经如此无奈,那些自己可以决定的事情,何不按照自己的心意去完成,活得坦诚一点,至少对得起自己。</div>
<div class="live2d_weiyu_cache" style="display:none;">世界这么大,人生这么长,总会有这么一个人,让你想要温柔地对待。</div>
<div class="live2d_weiyu_cache" style="display:none;">人生就是一列开往坟墓的列车,路途上会有很多站,很难有人可以自始至终陪着走完。当陪你的人要下车时,即使不舍也该心存感激,然后挥手道别。</div>
<div class="live2d_weiyu_cache" style="display:none;">每天早上睁开眼睛,看到你和阳光都在,这就是我想要的未来。</div>
<div class="live2d_weiyu_cache" style="display:none;">我们一起大笑看看,可怕的东西就会跑光光了。</div>
<div class="live2d_weiyu_cache" style="display:none;">日子总是过得太慢、因为我们总是做了很多重复的事情、重复之后时光便被拉得悠长。</div>
<div class="live2d_weiyu_cache" style="display:none;">只要有你在,我就会努力。</div>
<div class="live2d_weiyu_cache" style="display:none;">我们都太专注于自己的伤口,忘了要去握住别人伸出的手。</div>
<div class="live2d_weiyu_cache" style="display:none;">不管前方的路有多苦,只要走的方向正确,不管多么崎岖不平,都比站在原地更接近幸福。</div>
<div class="live2d_weiyu_cache" style="display:none;">我不知道离别的滋味是这样凄凉,我不知道说声再见要这么坚强。</div>
<div class="live2d_weiyu_cache" style="display:none;">I do not know where to go,but I have been on the road.
我不知道将去何方,但我已在路上。</div>
<div class="live2d_weiyu_cache" style="display:none;">人永远不知道,谁哪次不经意的跟你说了再见之后,就真的不会再见了。</div>
<div class="live2d_weiyu_cache" style="display:none;">曾经发生过的事情不可能忘记,只不过是想不起而已。</div>
<div class="live2d_weiyu_cache" style="display:none;">我只能送你到这里了,剩下的路你要自己走,不要回头。</div>
<div class="live2d_weiyu_cache" style="display:none;">不管你曾经被伤害得有多深,总会有一个人的出现,让你原谅之前生活对你所有的刁难。</div>
<div class="live2d_weiyu_cache" style="display:none;">已经走到尽头的东西,重生也不过是再一次的消亡。就像所有的开始,其实都只是一个写好了的结局。</div>
<div class="live2d_weiyu_cache" style="display:none;">生命可以随心所欲,但不能随波逐流。</div>
<div class="live2d_weiyu_cache" style="display:none;">生活坏到一定程度就会好起来,因为它无法更坏。努力过后,才知道许多事情,坚持坚持,就过来了。</div>
<div class="live2d_weiyu_cache" style="display:none;">人们常常会欺骗你,是为了让你明白,有时候,你唯一应该相信的人就是你自己</div>
<div class="live2d_weiyu_cache" style="display:none;">到不了的地方都叫做远方,回不去的世界都叫做家乡,我一直向往的却是比远方更远的地方。</div>
<div class="live2d_weiyu_cache" style="display:none;">就是因为你不好,才要留在你身边,给你幸福。</div>
<div class="live2d_weiyu_cache" style="display:none;">人老了的好处,就是可失去的东西越来越少了。</div>
<div class="live2d_weiyu_cache" style="display:none;">我们的孤独就像天空中漂浮的城市,仿佛是一个秘密,却无从述说。</div>
<div class="live2d_weiyu_cache" style="display:none;">我已经准备好了足够挡雨的伞,可是却迟迟没有等到雨的到来,这样的尴尬只是我漫长人生中的小插曲罢了。</div>
<div class="live2d_weiyu_cache" style="display:none;">如果把童年再放映一遍,我们一定会先大笑,然后放声痛哭,最后挂着泪,微笑着睡去。</div>
<div class="live2d_weiyu_cache" style="display:none;">什么时候我们开始无法像孩子一样肆意地大呼小叫了?心里的小情绪堆积得像山一样高,直到溢出来。 </div>
<div class="live2d_weiyu_cache" style="display:none;">与其如此,不如永远像孩子一样。</div>
<div class="live2d_weiyu_cache" style="display:none;">这个世界真的很现实,每个人都在为着同一个目的,不惜一切代价努力着,心甘情愿的成为金钱的奴隶,死心蹋地的付出。</div>
<div class="live2d_weiyu_cache" style="display:none;">因为你,我想要变成一个更好的人,不想成为你的负担,因此发奋,只是想证明我足以与你相配。</div>
<div class="live2d_weiyu_cache" style="display:none;">人是要长大的,有天你也会推着婴儿车幸福地在街上行走,而曾经的喜欢,不管曾经怎样,都会幻化成风,消失在时光的隧道。所以向前走,向前走,无须回头。</div>
<div class="live2d_weiyu_cache" style="display:none;">Le vent se lève ,il faut tenter de vivre。
风立ちぬ、いざ生きめや。
纵有疾风起,人生不言弃。</div>
<div class="live2d_weiyu_cache" style="display:none;">只有一个人在旅行时,才听得到自己的声音,它会告诉你,这世界比想象中的宽阔。</div>
<div class="live2d_weiyu_cache" style="display:none;">请记得那些对你好的人,因为他本可以不这样</div>
<div class="live2d_weiyu_cache" style="display:none;">信仰到底是什么呢,就是纵身一跃,就是我们跟神之间一个永远的约定,是舍弃旧的去开始新的生活;信仰就是从今以后,再也不要放开你的手。</div>
<div class="live2d_weiyu_cache" style="display:none;">如谷之歌,扎根土里。与风共存,与种子越冬,与鸟歌颂。</div>
<div class="live2d_weiyu_cache" style="display:none;">根要扎在土壤里,和风一起生存,和竹子一起过冬,和鸟儿一起歌颂春天,不管你拥有了多么惊人的武器,也不管你操纵了多少可怜的机器人,只要离开土地,就没办法生存。</div>
<div class="live2d_weiyu_cache" style="display:none;">人类,就是一直在重复过去的道路。每个人都认为自己是对的,然后就由罪恶衍生出更多的罪恶,悲哀衍生出更多的悲哀,永远找不到出路。</div>
<div class="live2d_weiyu_cache" style="display:none;">不要吃太胖噢,会被杀掉的!</div>
<div class="live2d_weiyu_cache" style="display:none;">她从父母变成猪的那一刻起,就深深地记住:别人 的东西不可以拿。虽然自己的朋友千方百计才把它偷到手,但是千寻相信,做人应该帮朋友弥补错误,而不是把朋友往错误的深渊里推。朋友 是要走正路的。</div>
<div class="live2d_weiyu_cache" style="display:none;">“哈尔那你到底有多少名字呢?”
“ 刚好够自由地活下去。”</div>
<input name="live_statu_val" id="live_statu_val" value="0" type="hidden" />
<audio src="" style="display:none;" id="live2d_bgm" data-bgm="0" preload="none"></audio>
<input name="live2dBGM" value="/live2d/fu.flac" type="hidden">
<input id="duType" value="douqilai,l2d_caihong" type="hidden">
</div>
</div>
<div id="open_live2d">召唤伊斯特瓦尔</div>
<script type="text/javascript" src="https://apps.bdimg.com/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
var message_Path = '/live2d/';
var talkAPI = "http://www.tuling123.com/openapi/api";
</script>
<script type="text/javascript" src="/live2d/js/live2d.js"></script>
<script type="text/javascript" src="/live2d/js/message.js"></script>
<style type="text/css"> .live_ico_box { display: none } </style>
<script type="text/javascript">
$(document).ready(function(){
$("div#landlord").mouseenter(function(){ $("div.live_ico_box").fadeIn(); });
$("div#landlord").mouseleave(function(){ $("div.live_ico_box").fadeOut(); });
});
</script>
</main>
<footer class="mdl-mini-footer">
<div class="mdl-mini-footer--left-section">
<a class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon mdl-mini-footer--social-btn social-btn" href="mailto:[email protected]?subject=Hi">
<i class="material-icons_lg icon ion-email"></i>
<span class="visuallyhidden">Email</span>
</a>
<a class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon mdl-mini-footer--social-btn social-btn" href="https://github.com/RobinSea/">
<i class="material-icons_lg icon ion-social-github"></i>
<span class="visuallyhidden">Github</span>
</a>
<a class="mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon mdl-mini-footer--social-btn social-btn" href="https://twitter.com/RobinSeaMake">
<i class="material-icons_lg icon ion-social-twitter "></i>
<span class="visuallyhidden">Twitter</span>
</a>
</div>
<div class="mdl-mini-footer--right-section">
<span>© 2018❤RobinSea</span>
</div>
</footer>
<div class="mdl-layout__obfuscator"></div>
</div>
<script src="https://code.getmdl.io/1.1.3/material.min.js"></script>
<script src=/js/cardmedia.js></script>
<script src=/js/fabbutton.js></script>
</body>
</html>