Blog Archives: sertifikaat

Google web fonts ja https

  |   by kadriad   |   Blogi, javascript, jQuery  |  No Comments

Oli vaja, et samal lehel toimiksid google web fonts nii ssl-sertifikaadiga kui ilma. Selle asemel, et laadida google fonts style.css-i, tuleb asi teha läbi javascripti. Kood siin: WebFontConfig = { google: { families: [ 'Anaheim' ] } }; (function() { var wf = document.createElement('script'); wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; […]

Read more »