diff --git a/system/menu/script.js b/system/menu/script.js index cb8d384..1518f7c 100644 --- a/system/menu/script.js +++ b/system/menu/script.js @@ -1,6 +1,6 @@ // GASからJSONデータを取得してHTML要素を生成する async function fetchAndGenerateData() { - const response = await fetch('https://script.google.com/macros/s/AKfycbxEmeVkL5RMGwEkpilaq4JyJ0e556DXkTO6_82GX3ZYUmuAsDQ4_mkwMxQRnd2DpvoU/exec'); + const response = await fetch('https://script.google.com/macros/s/AKfycbxJ200Twghh7X408U_PvkNjVnkTj9zsffXrXIARy2Ifi91DumYvEB8IML4dVPf-gqHf8A/exec'); const jsonData = await response.json(); // HTML内の要素を取得 @@ -75,7 +75,7 @@ const price = parseFloat(data.price); const taxRate = parseFloat(data.taxRate); - const p1 = createParagraphElement('p', 'price', `税抜き価格: ${price}円`); + const p1 = createParagraphElement('p', 'price', `価格: ${price}円`); const p2 = document.createElement('p'); p2.classList.add('price'); const availability = data.availability; @@ -87,12 +87,11 @@ p1.style.color = 'red'; } else { const taxIncludedPrice = price * (1 + taxRate); - p2.textContent = `税込価格: ${taxIncludedPrice.toFixed(0)}円`; + p1.textContent = `価格: ${price}円`; } div.appendChild(h3); div.appendChild(p1); - div.appendChild(p2); return div; }