script.js 957 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. $(document).ready(function(){
  2. var slider = new Swiper($('.swiper-container'),{
  3. loop:true,
  4. nextButton:$('.arrow-right'),
  5. prevButton:$('.arrow-left'),
  6. speed:800,
  7. simulateTouch:true,
  8. initialSlide:0,
  9. })
  10. $('.arrow-right').on('click', function(){
  11. slider.slideNext(800)
  12. })
  13. $('.arrow-left').on('click', function(){
  14. slider.slidePrev(800)
  15. })
  16. $('.menu .burger').on('click', function(){
  17. $('.menu-mobile').slideToggle(200)
  18. })
  19. console.log(slider)
  20. ymaps.ready(function () {
  21. var myMap = new ymaps.Map('map', {
  22. center: [54.621076,39.747109],
  23. zoom: 18
  24. }, {
  25. searchControlProvider : 'yandex#search'
  26. })
  27. myMap.geoObjects.add(new ymaps.Placemark([54.620954, 39.747420], {
  28. iconCaption: 'Центр медицинской профилактики'
  29. }, {
  30. preset: 'islands#blueCircleDotIconWithCaption',
  31. iconCaptionMaxWidth: '200'
  32. }));
  33. });
  34. })