「飲食店検索」の版間の差分
提供: 川西図鑑
その他の操作
編集の要約なし |
編集の要約なし タグ: 差し戻し済み |
||
| 38行目: | 38行目: | ||
} | } | ||
}); | }); | ||
document.addEventListener("DOMContentLoaded", function() { | |||
document.querySelectorAll(".streetview-placeholder").forEach(function(el) { | |||
const url = el.getAttribute("data-url"); | |||
if (!url) return; | |||
const iframe = document.createElement("iframe"); | |||
iframe.src = url.replace(/&/g, "&"); | |||
iframe.width = "100%"; | |||
iframe.height = "100%"; | |||
iframe.style.border = "0"; | |||
iframe.loading = "lazy"; | |||
iframe.allowFullscreen = true; | |||
iframe.referrerPolicy = "no-referrer-when-downgrade"; | |||
el.appendChild(iframe); | |||
}); | |||
document.querySelectorAll(".streetview-api-placeholder").forEach(function(el) { | |||
const name = el.getAttribute("data-name").replace(/\s+/g, ""); | |||
if (!name) return; | |||
const src = `https://www.google.com/maps/embed/v1/streetview?key=AIzaSyDOA7e6S9arQa6NvnsFYXxGjX9P_ycwoyM&location=${name}`; | |||
const iframe = document.createElement("iframe"); | |||
iframe.src = src.replace(/&/g, "&"); | |||
iframe.width = "100%"; | |||
iframe.height = "100%"; | |||
iframe.style.border = "0"; | |||
iframe.loading = "lazy"; | |||
iframe.allowFullscreen = true; | |||
iframe.referrerPolicy = "no-referrer-when-downgrade"; | |||
el.appendChild(iframe); | |||
}); | |||
});//# sourceURL=foobar.js | |||
</script> | </script> | ||
</html> | </html> | ||
2025年12月5日 (金) 13:03時点における版
検索条件
検索結果
エラー: テーブル飲食店情報が見つかりません。