// // Game concept (C) GO PUB CACHING 2026// // nothing in here will help you.... // // var guessed=0; $().ready( function() { var map = L.map('map').setView([51.5103, -0.13], 19); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 19, minZoom: 12, }).addTo(map); map.on('click', function onMapClick(e) { $.ajax({ type: "POST", url: 'go.php', data: 'll='+e.latlng, cache: false, dataType: 'json', error: function(jqXHR, textStatus, errorThrown) { $('#LL').html( textStatus + errorThrown ); }, success: function(data) { if (data.n>10) { $('header').addClass('over'); $('#LL').html("You have already had your permitted number of guesses in this clock hour... "); } else { $('#LL').html("The distance from the pin that you placed to the location that you seek is "+data.c+" "+data.u ); $('#guesses').html("Guess no."+data.n); L.marker(e.latlng).addTo(map); } } }); }); });