$(document).ready(function() { $('.drop-menu_2>li').hover(function(){ console.log(123); $('.container-menu').hide(); var n = $(this).index(); $('.container-menu').eq(n).css('display', 'block'); }, function(){ $('.container-menu').css('display', 'none'); } ); $('.container-menu').hover(function(){ $(this).css('display', 'block'); }, function(){ $('.container-menu').css('display', 'none'); } ); var t; $('.container-menu').hover(function(){ var thisIndex = $(this).index(); $('.drop-menu>li').eq(thisIndex).addClass('subactive'); $('.drop-menu').find('.active').removeClass('active'); }, function(){ $('.subactive').removeClass('subactive'); $('.drop-menu>li').eq(i).addClass('active'); } ); //$('.block-with-frame_effect .read-more, .causes .read-more, .interesting-data .read-more, .testimony .read-more, .contraindications .read-more').click(function(){ // console.log($(this)); // var content = $(this).parent().next().html(); // $("#service_content").html(content); // // $('.modal').show(); // $('.modal-item').hide(); // $('.modal-item-more-info').show(); // $('body').css({ // "overflow" : "hidden" // }); // // $('.scroll-pane').jScrollPane(); // //}); $('.why_us, .effect, .causes-big, .causes, .testimony, .contraindications, .interesting-data, .effect-level3').click(function(e){ //e.preventDefault(); modal_name = $(this).attr("data-modal-name"), cursor = $(this).attr("data-cursor"); if (cursor != "default") { content = $("."+modal_name).html(); $("#service_content").html(content); $('.modal').show(); $('.modal-item').hide(); $('.modal-item-more-info').show(); $('body').css({ "overflow" : "hidden" }); //console.log(this); var api = $("#service_content").jScrollPane(); //var api = $('.scroll-pane').jScrollPane(); //api.reinitialise(); //$('.scroll-pane').jScrollPane(); //console.log(22222); } else { return true; } }); if($('#main-map').length != 0) { ymaps.ready(init); } var myMap, myPlacemark1, myPlacemark2, myPlacemark3; function init(){ myMap = new ymaps.Map("main-map", { center: [55.76, 37.64], zoom: 12 }); myPlacemark1 = new ymaps.Placemark([55.782765, 37.575926], { balloonContent: 'Москва, ул. Правды, д.2А', hintContent: 'Собственный значок метки' },{ iconLayout: 'default#image', iconImageHref: '/local/assets/custom/icon/ymaps_placemark.png', iconImageSize: [58, 57], iconImageOffset: [-58, -57] }); myPlacemark2 = new ymaps.Placemark([55.733493, 37.609973], { balloonContent: 'Москва, Якиманский переулок, д. 6' },{ iconLayout: 'default#image', iconImageHref: '/local/assets/custom/icon/ymaps_placemark.png', iconImageSize: [58, 57], iconImageOffset: [-58, -57] }); myPlacemark3 = new ymaps.Placemark([55.753119, 37.575917], { balloonContent: 'Москва, ул. Новый Арбат 36/3 ТЦ «Сфера»' },{ iconLayout: 'default#image', iconImageHref: '/local/assets/custom/icon/ymaps_placemark.png', iconImageSize: [58, 57], iconImageOffset: [-58, -57] }); myMap.geoObjects.add(myPlacemark1); myMap.geoObjects.add(myPlacemark2); myMap.geoObjects.add(myPlacemark3); myMap.behaviors.disable('scrollZoom'); //myMap.panes.get('events').getElement('layers').style = 'my/background/image'; } }); /* FILE ARCHIVED ON 09:00:21 Oct 20, 2017 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 23:38:15 Dec 22, 2019. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): exclusion.robots.policy: 0.33 captures_list: 101.446 PetaboxLoader3.datanode: 107.147 (4) CDXLines.iter: 16.188 (3) PetaboxLoader3.resolve: 25.667 LoadShardBlock: 80.156 (3) RedisCDXSource: 0.853 exclusion.robots: 0.351 esindex: 0.021 load_resource: 76.622 */