From 417f29519d251773d3324427a09d003efef5bde4 Mon Sep 17 00:00:00 2001
From: Mimi <1119186082@qq.com>
Date: Thu, 26 Dec 2019 11:26:02 +0800
Subject: [PATCH] Use correct Chinese quotes
---
demo/demo2.html | 2 +-
waifu-tips.js | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/demo/demo2.html b/demo/demo2.html
index e241870..a8b316a 100755
--- a/demo/demo2.html
+++ b/demo/demo2.html
@@ -213,7 +213,7 @@ $(function() {
window.info = function() {
//Your code here...
$.getJSON("https://v1.hitokoto.cn/", function(data) {
- alert("『" + data.hitokoto + "』——" + data.from);
+ alert("「" + data.hitokoto + "」——" + data.from);
});
}
diff --git a/waifu-tips.js b/waifu-tips.js
index 72bbd89..2c50b2e 100755
--- a/waifu-tips.js
+++ b/waifu-tips.js
@@ -82,13 +82,13 @@ function loadWidget(waifuPath, apiPath) {
var referrer = document.createElement("a");
referrer.href = document.referrer;
var domain = referrer.hostname.split(".")[1];
- if (location.hostname == referrer.hostname) text = `欢迎阅读『${document.title.split(" - ")[0]}』`;
+ if (location.hostname == referrer.hostname) text = `欢迎阅读「${document.title.split(" - ")[0]}」`;
else if (domain == "baidu") text = `Hello!来自 百度搜索 的朋友
你是搜索 ${referrer.search.split("&wd=")[1].split("&")[0]} 找到的我吗?`;
else if (domain == "so") text = `Hello!来自 360搜索 的朋友
你是搜索 ${referrer.search.split("&q=")[1].split("&")[0]} 找到的我吗?`;
- else if (domain == "google") text = `Hello!来自 谷歌搜索 的朋友
欢迎阅读『${document.title.split(" - ")[0]}』`;
+ else if (domain == "google") text = `Hello!来自 谷歌搜索 的朋友
欢迎阅读「${document.title.split(" - ")[0]}」`;
else text = `Hello!来自 ${referrer.hostname} 的朋友`;
} else {
- text = `欢迎阅读『${document.title.split(" - ")[0]}』`;
+ text = `欢迎阅读「${document.title.split(" - ")[0]}」`;
}
showMessage(text, 7000, 8);
}
@@ -120,7 +120,7 @@ function loadWidget(waifuPath, apiPath) {
else fetch("https://v1.hitokoto.cn")
.then(response => response.json())
.then(result => {
- var text = `这句一言来自 『${result.from}』,是 ${result.creator} 在 hitokoto.cn 投稿的。`;
+ var text = `这句一言来自 「${result.from}」,是 ${result.creator} 在 hitokoto.cn 投稿的。`;
showMessage(result.hitokoto, 6000, 9);
setTimeout(() => {
showMessage(text, 4000, 9);