一萼红(束季博园池,在平江文庙前),
张炎 ,宋代, 舣孤篷。正丛篁护碧,流水曲池通。伛偻穿岩,纡盘寻径,忽见倒影凌空。拥一片、花阴无地,细看来、犹带古春风。胜事园林,旧家陶谢,诗酒相逢。
眼底烟霞无数,料神仙即我,何处崆峒。清气分来,生香不断,洞户自有云封。认奇字、摩挲峭石,聚万景、只在此山中。人倚虚阑唤鹤,月白千峰。
// 状态1:音频正在播放 → 暂停
if (audio && !audio.paused) {
audio.pause();
btn.innerText = "朗读";
btn.style.backgroundColor = '';
btn.style.color = '#000';
return;
}
// 状态2:音频已暂停 → 尝试继续播放,加catch兜底
if (audio && audio.paused) {
audio.play().then(()=>{
btn.innerText = "暂停";
btn.style.backgroundColor = 'green';
btn.style.color = 'white';
}).catch(e=>{
console.error("续播失败Safari限制:",e);
alert("苹果浏览器续播受限,将重新生成音频");
audio = null;
btn.innerText = "朗读";
btn.style.backgroundColor = '';
btn.style.color = '#000';
})
return;
}