Changeset 25792 for extensions/rv_gmaps/trunk/template/data_handler.js
- Timestamp:
- Dec 5, 2013, 9:35:51 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_gmaps/trunk/template/data_handler.js
r21892 r25792 212 212 buildCurrentPictureHtml: function( marker ) 213 213 { 214 var imageDetail = marker.pwg.images[marker.currentImageIndex]; 214 var imageDetail = marker.pwg.images[marker.currentImageIndex], 215 dpr = window.devicePixelRatio || 1, 216 w = Math.round(imageDetail.w/dpr), 217 h = Math.round(imageDetail.h/dpr); 218 215 219 var res = ""; 216 res += '<div class="gmiw_imageTitle">' + imageDetail. name+ "</div>";220 res += '<div class="gmiw_imageTitle">' + imageDetail.t + "</div>"; 217 221 res += 218 222 '<div class="gmiw_imageContent">' + 219 223 '<div class="gmiw_imageWrap">'+ 220 '<a href="'+imageDetail. page_url+'">' +221 '<img src="' + imageDetail.tn + '" alt="thumb" />'+224 '<a href="'+imageDetail.url+'">' + 225 '<img src="' + imageDetail.tn + '" alt="thumb" width='+w+' height='+h+'>'+ 222 226 '</a></div>' + 223 '<div class="gmiw_imageComment">' + imageDetail. comment+ '</div>' +227 '<div class="gmiw_imageComment">' + imageDetail.d + '</div>' + 224 228 '</div>'; 225 229 return res;
Note: See TracChangeset
for help on using the changeset viewer.