变更集1513657
时间戳: 2016年12月10日下午11:34:53 ( 8年 (之前) 位置: 控制表-7/trunk/js的位置模块 文件夹: -
2已编辑
-
cf7位置模块.js (已修改) ( 2个差异 ) -
cf7-位置模块.min.js (已修改) ( 1个差异 )
图例:
未修改 补充 远离的
-
位置-模块-用于控制-表格-7/trunk/js/cf7-位置-模块.js 1513635兰特 1513657兰特 20 20 jQuery('#cf7-geocode-address').css(“width”,width); 21 21 } 22 var映射; 22 23 23 24 /** … … 44 45 *地图初始化 45 46 */ 46 无功功率,无功功率 map=新GMap({ 47 map=新GMap({ 47 48 div:“#cf7-location-map”, 48 49 滚轮:错误, -
位置-模块-用于控制-表格-7/trunk/js/cf7-位置-模块.min.js 1513635兰特 1513657兰特 5 5 */ 6 6 7 var ui_reload=function(){var a=jQuery(“.wpcf7”).outerWidth(),b=j查询(“#geocode-link”).out宽度(),c=j查询+“px”),a=a-b-5,jQuery(“#cf7-geocode-address”) .css(“宽度”,a)}; jQuery(window).load(function(){ui_reload()}),jQuery}); jQuery(“#geocode-link”).单击(function(){GMaps.geocode http://maps.google.com/maps?z=12&q=loc: “,url+=c.lat(),url++”+“,url+=c.lng(),jQuery(”#cf7-location-url“).val(url),f.removeMarkers(),f.addMarker({lat:c.lat),lng:c.lng .setZoom(16)}else alert(e)})})})、jQuery(窗口).resize(函数){jQuery(“#cf7位置图”).length&&(map.refresh(),ui_reload())}); 7 var ui_reload=function(){var a=jQuery(“.wpcf7”).outerWidth(),b=j查询(“#geocode-link”).out宽度(),c=j查询+“px”),a=a-b-5,jQuery(“#cf7-geocode-address”) .css(“宽度”,a)},映射; jQuery(window).load(function(){ui_reload()}),jQuery}),jQuery(“#geocode-link”)点击(function() {GMaps.geocode({address:jQuery(“#cf7-geocode-address”).val(),回调:函数(a,b){if(“OK”==b){var c=a[0].geometry.location;map.setCenter(c.lat()、c.lng())),jQuery http://maps.google.com/maps?z=12&q=loc: “,url+=c.lat(),url++”+“,url+=c.lng(),jQuery(”#cf7-location-url“).val(url),map.removeMarkers(),map.addMarker({lat:c.lat .setZoom(16)}else alert(e)}})}),jQuery(window).resize(function(){jQuery;