mirror of
https://github.com/stevenjoezhang/live2d-widget.git
synced 2024-11-23 13:27:02 +08:00
Update tools.js
This commit is contained in:
parent
1ac32abfd6
commit
7e6c374ce1
@ -13,7 +13,7 @@ function showHitokoto() {
|
||||
fetch("https://v1.hitokoto.cn")
|
||||
.then(response => response.json())
|
||||
.then(result => {
|
||||
const text = `这句一言来自 <span>「${result.from}」</span>,是 <span>${result.creator}</span> 在 hitokoto.cn 投稿的。`;
|
||||
const text = `這句一言來自 <span>「${result.from}」</span>,是 <span>${result.creator}</span> 在 hitokoto.cn 投稿的。`;
|
||||
showMessage(result.hitokoto, 6000, 9);
|
||||
setTimeout(() => {
|
||||
showMessage(text, 4000, 9);
|
||||
@ -50,7 +50,7 @@ const tools = {
|
||||
"photo": {
|
||||
icon: fa_camera_retro,
|
||||
callback: () => {
|
||||
showMessage("照好了嘛,是不是很可爱呢?", 6000, 9);
|
||||
showMessage("照好了嘛,是不是很可愛呢?", 6000, 9);
|
||||
Live2D.captureName = "photo.png";
|
||||
Live2D.captureFrame = true;
|
||||
}
|
||||
@ -65,7 +65,7 @@ const tools = {
|
||||
icon: fa_xmark,
|
||||
callback: () => {
|
||||
localStorage.setItem("waifu-display", Date.now());
|
||||
showMessage("愿你有一天能与重要的人重逢。", 2000, 11);
|
||||
showMessage("願你有一天能與心愛的人重逢。", 2000, 11);
|
||||
document.getElementById("waifu").style.bottom = "-500px";
|
||||
setTimeout(() => {
|
||||
document.getElementById("waifu").style.display = "none";
|
||||
|
Loading…
Reference in New Issue
Block a user