HEX
Server: Microsoft-IIS/10.0
System: Windows NT WIN8095 10.0 build 20348 (Windows Server 2016) AMD64
User: kytoffice-001 (0)
PHP: 7.4.30
Disabled: exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source
Upload Files
File: h:/root/home/kytoffice-001/www/expresstinou/wp-content/plugins/google-maps-widget/js/gmw.js
/*
 * Google Maps Widget
 * (c) Web factory Ltd, 2012 - 2015
 */

jQuery(function($) {
    $('a.gmw-thumbnail-map.gmw-lightbox-enabled').click(function(e) {
      e.preventDefault();

      dialog = $($(this).attr('href'));
      map_width = dialog.attr('data-map-width');
      map_height = dialog.attr('data-map-height');
      map_url = dialog.attr('data-map-iframe-url');
      map_title = dialog.attr('title');
      map_skin = dialog.attr('data-map-skin');

      // adjust map size if screen is too small
      screen_width = $(window).width() - 50;
      if (screen_width < map_width) {
        map_width = screen_width;
        map_height *= screen_width / map_width;
      }
      screen_height = $(window).height() - 50;
      if (screen_height < map_height) {
        map_height = screen_height;
        map_width *= screen_height / map_height;
      }
      
      content = $(dialog.html());
      content.filter('.gmw-map').html('<iframe width="' + map_width + 'px" height="' + map_height + 'px" src="' + map_url + '"></iframe>');

      $.colorbox({ html: content,
                   title: map_title,
                   className: 'gmw-' + map_skin,
                   closeButton: false });

      return false;
    });
}); // onload