メニューを切り替える
個人設定メニューを切り替える
個人メニューを切り替える
ログインしていません
編集を行うと、IPアドレスが公開されます。

「テンプレート:飲食店」の版間の差分

提供: 川西図鑑
編集の要約なし
編集の要約なし
208行目: 208行目:
}
}
</style>
</style>
<script>
<script>
<script>
document.addEventListener("DOMContentLoaded", function() {
document.addEventListener("DOMContentLoaded", function() {
     document.querySelectorAll(".wikitable p").forEach(function(p) {
 
         if (!p.textContent.trim()) {
     document.querySelectorAll(".wikitable p, .wikitable br").forEach(function(el) {
            p.remove();
         el.remove()
        }
     })
     });
 
     document.querySelectorAll(".wikitable").forEach(function(table) {
     document.querySelectorAll(".wikitable").forEach(function(table) {
         table.querySelectorAll("tr").forEach(function(tr) {
         table.querySelectorAll("tr").forEach(function(tr) {
             const th = tr.querySelector("th");
             const th = tr.querySelector("th")
             const td = tr.querySelector("td");
             const td = tr.querySelector("td")


             if (th && td && th.textContent.trim() === "郵便番号") {
             if (th && td && th.textContent.trim() === "郵便番号") {


                // tdの文字列を完全クリーニング
                 let text = td.textContent.trim().replace(/\D/g, "")
                 let text = td.textContent.trim();
 
                // 数字だけ残す
                text = text.replace(/\D/g, "");


                // 3桁-4桁に変換
                 const match = text.match(/^(\d{3})(\d{4})$/)
                 const match = text.match(/^(\d{3})(\d{4})$/);


                 if (match) {
                 if (match) {
                     td.textContent = `${match[1]}-${match[2]}`;
                     td.textContent = `${match[1]}-${match[2]}`
                 }
                 }
             }
             }
         });
         })
     });
     })
});
})
//# sourceURL=foobar.js
//# sourceURL=foobar.js
</script>
</script>

2025年12月2日 (火) 17:25時点における版

基本情報

店名 不明
ジャンル 不明
郵便番号 不明
住所 不明







たばこ

禁煙・喫煙 不明
喫煙専用室 不明

お席

総席数 不明
個室 不明
貸切 不明

設備

Wi-Fi 不明
バリアフリー 不明
駐車場 不明
その他設備 不明

その他

飲み放題 不明
食べ放題 不明
お子様連れ 不明

このテンプレートはテーブル「飲食店情報」を定義しています。 このテーブルはまだ作成されていません。