「テンプレート:駅名 飲食店ページ」の版間の差分
提供: 川西図鑑
その他の操作
編集の要約なし |
編集の要約なし |
||
| 77行目: | 77行目: | ||
const titleEl = document.querySelector('.mw-page-title-main'); | const titleEl = document.querySelector('.mw-page-title-main'); | ||
let station = '川西市'; | let station = '川西市'; | ||
if (titleEl) { | if (titleEl) { | ||
station = titleEl.textContent.trim().replace(/ 飲食店$/, ''); | station = titleEl.textContent.trim().replace(/ 飲食店$/, '');`; | ||
} | } | ||
| 87行目: | 85行目: | ||
// タイトル更新 | // タイトル更新 | ||
document.title = title; | document.title = title; | ||
// セレクトボックス制御 | // セレクトボックス制御 | ||