Common.js

来自《新月同行》超级Wiki
Pzwboy留言 | 贡献2026年6月8日 (一) 04:42的版本 (创建页面,内容为“ fetch('https://xytxyiyan.zeabur.app') .then(response => response.json()) .then(data => { const hitokoto = document.querySelector('#hitokoto_text') hitokoto.innerText = "『" + data.hitokoto + "』"; const from = document.querySelector('#hitokoto_from') const fromWho = data.from_who ?? ''; const separator = fromWho ? " " : ""; from.innerText = fromWho ? `—— ${fromWho}「${data.from}」` : `——…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航跳到搜索
 fetch('https://xytxyiyan.zeabur.app')
   .then(response => response.json())
   .then(data => {
     const hitokoto = document.querySelector('#hitokoto_text')
     hitokoto.innerText = "『" + data.hitokoto + "』";
     const from = document.querySelector('#hitokoto_from')
     const fromWho = data.from_who ?? ;
     const separator = fromWho ? " " : "";
     from.innerText = fromWho 
       ? `—— ${fromWho}「${data.from}」`
       : `—— 「${data.from}」`;