-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
72 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
title: 关于 | ||
layout: "about" | ||
--- | ||
#### 🤖关于我 | ||
## 🤖关于我 | ||
后端入门级玩家👨💻 | Pokemon精英训练师⚡️ | ||
|
||
<img src="https://static.kevinchu.top/blog/assets/img/pokemon-psyduck.gif" alt="psyduck"> | ||
|
||
#### 🖥️关于本站 | ||
## 🖥️关于本站 | ||
建立本站以记录学习、积累经验、归纳知识、~~分享生活~~、~~捣鼓折腾~~...... | ||
<br> | ||
|
||
|
@@ -45,3 +45,52 @@ layout: "about" | |
>- 2020-08-17 🚲起点 | ||
基于Hexo框架搭建了第一个博客,采用Butterfly主题,托管于GitHub Pages。 | ||
|
||
|
||
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/lib/sakana.min.css" | ||
/> | ||
|
||
<div id="pokemon-pikachu-widget" style="float:left"></div> | ||
<div id="pokemon-psyduck-widget" style="float:left"></div> | ||
<div id="pokemon-slowpoke-widget" style="float:left"></div> | ||
<div id="pokemon-bulbasaur-widget" style="float:left"></div> | ||
|
||
<script> | ||
function initSakanaWidget() { | ||
const map = new Map([ | ||
['pokemon-pikachu','https://static.kevinchu.top/blog/assets/img/pokemon-pikachu.png'], | ||
['pokemon-psyduck','https://static.kevinchu.top/blog/assets/img/pokemon-psyduck.png'], | ||
['pokemon-slowpoke','https://static.kevinchu.top/blog/assets/img/pokemon-slowpoke.png'], | ||
['pokemon-bulbasaur','https://static.kevinchu.top/blog/assets/img/pokemon-bulbasaur.png'], | ||
['pokemon-charmander','https://static.kevinchu.top/blog/assets/img/pokemon-charmander.png'], | ||
['pokemon-squirtle','https://static.kevinchu.top/blog/assets/img/pokemon-squirtle.png'], | ||
['pokemon-eevee','https://static.kevinchu.top/blog/assets/img/pokemon-eevee.png'], | ||
['pokemon-jigglypuff','https://static.kevinchu.top/blog/assets/img/pokemon-jigglypuff.png'], | ||
['pokemon-cubone','https://static.kevinchu.top/blog/assets/img/pokemon-cubone.png'], | ||
['pokemon-snorlax','https://static.kevinchu.top/blog/assets/img/pokemon-snorlax.png'] | ||
]); | ||
|
||
function registerSakana(name, img){ | ||
const widget = SakanaWidget.getCharacter('chisato'); | ||
widget.image = img; | ||
SakanaWidget.registerCharacter(name, widget); | ||
} | ||
|
||
map.forEach((val,key) => { | ||
registerSakana(key,val); | ||
}) | ||
|
||
new SakanaWidget({ character: 'pokemon-pikachu' }).mount('#pokemon-pikachu-widget'); | ||
new SakanaWidget({ character: 'pokemon-psyduck' }).mount('#pokemon-psyduck-widget'); | ||
new SakanaWidget({ character: 'pokemon-slowpoke' }).mount('#pokemon-slowpoke-widget'); | ||
new SakanaWidget({ character: 'pokemon-bulbasaur' }).mount('#pokemon-bulbasaur-widget'); | ||
|
||
} | ||
</script> | ||
|
||
<script | ||
async | ||
onload="initSakanaWidget()" | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/lib/sakana.min.js" | ||
></script> |