Parcourir la source

Use protocol agnostic Creative Commons license images and links for proper HTTPS support.

pull/1/merge
Matthew Petroff il y a 12 ans
Parent
révision
221c27ced3
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      src/js/pannellum.js

+ 2
- 2
src/js/pannellum.js Voir le fichier

@@ -49,9 +49,9 @@ if(getURLParameter('license')) {
case 4: licenseType = 'by-nc-sa'; break; case 4: licenseType = 'by-nc-sa'; break;
case 5: licenseType = 'by-nc-nd'; break; case 5: licenseType = 'by-nc-nd'; break;
} }
document.getElementById('author_box').innerHTML += '<a rel="license" target="_blank" href="http://creativecommons.org/licenses/' + licenseType + '/3.0/"><div id="license"></div></a>';
document.getElementById('author_box').innerHTML += '<a rel="license" target="_blank" href="//creativecommons.org/licenses/' + licenseType + '/3.0/"><div id="license"></div></a>';
var license = document.getElementById('license').style; var license = document.getElementById('license').style;
license.backgroundImage = "url('http://i.creativecommons.org/l/" + licenseType + "/3.0/80x15.png')";
license.backgroundImage = "url('//i.creativecommons.org/l/" + licenseType + "/3.0/80x15.png')";
license.width = '80px'; license.width = '80px';
} }




Chargement…
Annuler
Enregistrer