Skip to Content

JavaScript File

URL: https://angradoheroismo.pt/wp-content/plugins/events-manager-pro/includes/js/events-manager-pro.js?ver=3.2.7
HTTP Status: 200 OK
MIME Type: application/javascript
Last Modified: Thu, 24 Aug 2023 09:49:17 GMT
Download Time: Less than a second
Cookies: None
Size: 2 KB
HTTP Headers:  13 headers
Links In:  1 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
OK Issues: No issues found

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 //Approve/Reject Links

31 $(document).on('click', '.em-transaction-delete', function(){

32 var el = $(this);

33 if( !confirm(EM.transaction_delete) ){ return false; }

34 var url = em_ajaxify( el.attr('href'));

35 var td = el.parents('td').first();

36 td.html(EM.txt_loading);

37 $.get( url, function( response ){

38 td.html(response);

39 });

40 return false;

...

</html>