1var showToursMap = function () { 2 3 var locators = { 4 offer: '.m-offer-tours', 5 offerMap: '.m-offer-tours__picture--map', 6 activeClass: 'is-active' 7 }; 8 $('body').on('mouseenter', locators.offer, function (e) { 9 var target = $(e.target).closest(locators.offer).find(locators.offerMap); 10 $(target).addClass(locators.activeClass); 11 12 }); 13 $(document).on('click', function (e) { 14 if (!$(locators.offer).is(e.target) && $(locators.offer).has(e.target).length === 0) { 15 $(locators.offerMap).removeClass(locators.activeClass); 16 } 17 }); 18 19}; 20 21$(document).ready(function () { 22 showToursMap(); 23});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.