first update of sidebar for new data format: show the info available from the brief portal data

TODO: retrieve the full portal data and update to include that
This commit is contained in:
Jon Atkins
2013-11-30 22:26:40 +00:00
parent c197f74945
commit 7a19d30173
4 changed files with 222 additions and 110 deletions

View File

@ -194,10 +194,8 @@ window.potentialPortalLevel = function(d) {
}
window.getPortalImageUrl = function(d) {
if (d.imageByUrl && d.imageByUrl.imageUrl) {
url = d.imageByUrl.imageUrl;
window.fixPortalImageUrl = function(url) {
if (url) {
if (window.location.protocol === 'https:') {
url = url.indexOf('www.panoramio.com') !== -1
? url.replace(/^http:\/\/www/, 'https://ssl').replace('small', 'medium')