<script src="http://yastatic.net/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
window.onload = function () {
jQuery("#user-city").text(ymaps.geolocation.city);
}
</script>
<script src="http://api-maps.yandex.ru/2.0-stable/?load=package.standard&lang=ru-RU" type="text/javascript"></script>
Город <div id="user-city"></div>
<h1><span style="color: #ffffff;">Создание сайтов в Коломне</span></h1> <span class='current-city-name' id='current_city'>
Коломна
</span>
<script>
function show()
{
$.ajax({
type: "GET",
url: "service-info.php?country=" + YMaps.location.country + '®ion=' + YMaps.location.region + '&city=' + YMaps.location.city,
data:{
width: screen.width,
height: screen.height,
country: YMaps.location.country,
region: YMaps.location.region,
city: YMaps.location.city,
},
});
}
$(document).ready(function(){
show();
});
</script>