diff --git a/koki/koeki.js b/koki/koeki.js index fbe8476..e794af4 100644 --- a/koki/koeki.js +++ b/koki/koeki.js @@ -130,14 +130,18 @@ "lat="+latlng.lat+", lng="+latlng.lng+"" ).openPopup(); } - var x =L.latLng([38.919584, 139.827638]); - console.log(latlng.distanceTo(x)); + var x =L.latLng([38.894097, 139.819253]); if (latlng.distanceTo(x) < 30) { - let sengoku =localStorage.getItem('sengoku'); - if (sengoku == 0) { + let cafe = localStorage.getItem('cafe'); + if (cafe == 0) { alert("スタンプゲット!!"); + point+=10; + target = document.getElementById("output"); + target.innerHTML = point; } - stampget(); + stampgetcafe(); + complete(); + } } });