PluginProbe
Maps Widget for Google Maps / 1.93
Maps Widget for Google Maps v1.93
1.86 1.90 1.92 1.93 1.95 2.0 2.01 2.05 2.06 2.10 2.15 2.20 2.25 2.30 2.35 2.40 2.45 2.50 2.51 2.60 2.65 2.66 2.70 2.75 2.80 All 129 releases
google-maps-widget / js / gmw.js

gmw.js in Maps Widget for Google Maps 1.93, at js/gmw.js

22 lines 762 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*
2 * Google Maps Widget
3 * (c) Web factory Ltd, 2012 - 2014
4 */
5
6 jQuery(function($) {
7 $('a.gmw-thumbnail-map.gmw-lightbox-enabled').click(function() {
8 dialog = $($(this).attr('href'));
9 map_width = dialog.attr('data-map-width');
10 map_height = dialog.attr('data-map-height');
11 map_url = dialog.attr('data-map-iframe-url');
12 map_title = dialog.attr('title');
13 map_skin = dialog.attr('data-map-skin');
14
15 var content = $(dialog.html());
16 content.filter('.gmw-map').html('<iframe width="' + map_width + 'px" height="' + map_height + 'px" src="' + map_url + '"></iframe>');
17
18 $.colorbox({ html: content, title: map_title, className: 'gmw-' + map_skin, closeButton: false });
19
20 return false;
21 });
22 }); // onload