MediaWiki:Common.js:修订间差异
MediaWiki界面页面
更多操作
创建页面,内容为“→这里的任何JavaScript将为所有用户在每次页面加载时加载。: function togglePronunciationMode() { const chao = document.getElementById("pron-chao"); const ipa = document.getElementById("pron-ipa"); const btn = document.querySelector(".toggle-wrapper button"); if (chao.style.display === "none") { chao.style.display = ""; ipa.style.display = "none"; btn.textContent = "切换为 IPA"; } else { chao.style.display = "…” |
(没有差异)
|
2025年7月10日 (四) 06:12的版本
/* 这里的任何JavaScript将为所有用户在每次页面加载时加载。 */ function togglePronunciationMode() { const chao = document.getElementById("pron-chao"); const ipa = document.getElementById("pron-ipa"); const btn = document.querySelector(".toggle-wrapper button"); if (chao.style.display === "none") { chao.style.display = ""; ipa.style.display = "none"; btn.textContent = "切换为 IPA"; } else { chao.style.display = "none"; ipa.style.display = ""; btn.textContent = "切换为潮拼"; } }