見積もりを取得
ビジネスに関するお問い合わせは?
既存の船舶のサービスまたはベンチマーク運用コストの利用を検討している船主の場合は、次のフォームに記入して見積もりをリクエストしてください。
var d=document,w="https://tally.so/widgets/embed.js",v=function(){"undefined"!=typeof Tally?Tally.loadEmbeds():d.querySelectorAll("iframe[data-tally-src]:not([src])").forEach((function(e){e.src=e.dataset.tallySrc}))};if("undefined"!=typeof Tally)v();else if(d.querySelector('script[src="'+w+'"]')==null){var s=d.createElement("script");s.src=w,s.onload=v,s.onerror=v,d.body.appendChild(s);}
document.addEventListener('DOMContentLoaded', function () {
fetch('https://ipapi.co/json/')
.then((response) => response.json())
.then((data) => {
const tallyFrame = document.querySelector('iframe[data-tally-src]');
if (tallyFrame) {
// Get the original data-tally-src value
const currentSrc = tallyFrame.getAttribute('data-tally-src');
const url = new URL(currentSrc);
// Add the prefill parameters
url.searchParams.set('ip-address', data.ip);
url.searchParams.set('state', data.region);
url.searchParams.set('country', data.country_name);
// Update both the data-tally-src and src attributes
const newSrc = url.toString();
tallyFrame.setAttribute('data-tally-src', newSrc);
tallyFrame.src = newSrc;
console.log("tallyFrame",tallyFrame)
}
})
.catch((error) => console.error('Error fetching IP info:', error));
});
