1jQuery(document).ready(function($){ 2 //google maps 3 $('.em-location-map-static.em-map-static-relative').each(function(){ 4 var e = $(this); 5 var parent = e.closest('.em-location-map-container').css('background',''); 6 var url = e.data('gmap-url').replace('SIZE', parent.width() + 'x' + parent.height()); 7 var html = '<img src="'+ url +'" alt="'+ e.data('gmap-title')+'" class="em-location-static-map">'; 8 e.empty().append(jQuery(html)); 9 }); 10 $(document).on('click', '.em-location-map-container.em-map-static-load', function(){ 11 var e = $(this) 12 if( e.data('gmap-embed') ){ 13 e.removeClass('em-map-static-embed').empty(); 14 e.append('<iframe style="width:100%; height:100%;" frameborder="0" style="border:0" src="'+ e.data('gmap-embed') +'" allowfullscreen></iframe>'); 15 }else{ 16 var map = e.removeClass('em-map-static-load').find('.em-location-map-static'); 17 map.addClass('em-location-map').removeClass('em-location-map-static').siblings('.em-map-overlay').remove(); 18 em_maps_loaded ? em_maps_load_location( map ) : em_maps_load(); 19 } 20 }); 21 //offline approval link - listen on body to take precedence of default listener 22 $('body').on('click', '.em-bookings-approve-5', function(e){ 23 if( !confirm(EM.offline_confirm) ){ 24 e.stopPropagation(); 25 e.stopImmediatePropagation(); 26 e.preventDefault(); 27 return false; 28 } 29 }); 30 //form tooltips 31 var tooltip_vars = { theme : 'light-border', placement : 'right', allowHTML: true }; 32 $(document).trigger('emp-tippy-vars',[tooltip_vars]); 33 tippy('form.em-booking-form span.form-tip, form#em-booking-form span.form-tip', tooltip_vars); 34});
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.