This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ymaps.ready(function () { | |
var pointA = "Смоленская метро", | |
pointB = "ул. Арбат д.51 , стр.1", | |
/** | |
* Создаем мультимаршрут. | |
* @see https://api.yandex.ru/maps/doc/jsapi/2.1/ref/reference/multiRouter.MultiRoute.xml | |
*/ | |
multiRoute = new ymaps.multiRouter.MultiRoute({ | |
referencePoints: [ | |
pointA, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="text" placeholder="It's here" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function scrollTo(item, offset){ | |
offset = offset ? offset : 0; | |
$('html, body').animate({ | |
scrollTop: $(item).offset().top - 0 | |
}, 1000); | |
} | |
$('.js-nav-link').on('click', function(e){ | |
var elem = $(this).attr('href'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function equalColumnHeight(_item){ | |
var minHeight = _item.first().height(); | |
_item.each(function(){ | |
_height = $(this).height(); | |
if(minHeight < _height){ | |
minHeight = $(this).height(); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ymaps.ready(function () { | |
var myMap = new ymaps.Map('map', { | |
center: [55.7404033, 37.5913301], | |
zoom: 15, | |
controls: [] | |
}); | |
myMap.geoObjects | |
.add(new ymaps.Placemark([55.7404033, 37.5913301], { |
NewerOlder