Bladeren bron

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

pull/1/merge
Matthew Petroff 12 jaren geleden
bovenliggende
commit
221c27ced3
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +2
    -2
      src/js/pannellum.js

+ 2
- 2
src/js/pannellum.js Bestand weergeven

@@ -49,9 +49,9 @@ if(getURLParameter('license')) {
case 4: licenseType = 'by-nc-sa'; 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;
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';
}



Laden…
Annuleren
Opslaan