var myMap = new ymaps.Map('map', {
center: [55.74954, 37.621587],
zoom: 10,
controls: []
});
<div class="bubble">
<div class="bubble-in">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Fugit ipsa quisquam deserunt rerum repellendus consequuntur iste inventore et dolorum natus. Suscipit saepe facilis fugit reprehenderit earum. Quibusdam expedita iusto mollitia!
</div>
</div>
.bubble {
width: 300px;
border-radius: 15px;
border: 3px solid #1AA0D2;
display: inline-block;
position: relative;
}
.bubble::after {
content: '';
width: 39px;
height: 50px;
border-left: 3px solid #1AA0D2;
border-bottom: 5px solid #1AA0D2;
position: absolute;
bottom: -20px;
left: 40px;
background: white;
transform: skewX(-30deg) skewY(-48deg);
}
.bubble-in {
border-radius: 12px;
padding: 30px;
background: white;
position: relative;
z-index: 2;
}
$addr = urlencode( $address);
$xml = file_get_contents( "http://geocode-maps.yandex.ru/1.x/?geocode=$addr&results=1" );
// print $xml; Можете посмотреть выдачу
preg_match( '/<pos>([^<]*)<\/pos>/', $xml, $match );
preg_match( '/<precision>([^<]*)<\/precision>/', $xml, $prec );
if ( isset($prec[1]) && isset( $match[1] ) && $prec[1] =='exact' )
return explode( ' ', $match[1] );
<a href="https://vk.com/share.php?url=http://example.com" onclick="return window.open(this.href,'Поделиться с друзьями','width=640,height=480');">Новое окно</a>
var id = '#id_name_01'
var pattern = /\d+/
var id_only_digits = id.match(pattern);
--
>>> id_only_digits
<<< ["01"]
$('#id_name_01').click(function(){
var id_digits = $(this).attr('id').match(pattern)[0];
$('#other_id_' + id_digits).somefunction();
});