Common.js: Difference between revisions
From LimeSurvey Manual
(Created page with " WebFontConfig = { google: { families: [ 'Special+Elite::latin' ] } }; (function() { var wf = document.createElement('script'); wf.src = ('https:' == document...") |
No edit summary |
||
Line 1: | Line 1: | ||
<script type="text/javascript"> | |||
WebFontConfig = { | WebFontConfig = { | ||
google: { families: [ 'Special+Elite::latin' ] } | google: { families: [ 'Special+Elite::latin', 'Sintony::latin,latin-ext' ] } | ||
}; | }; | ||
(function() { | (function() { | ||
Line 10: | Line 11: | ||
var s = document.getElementsByTagName('script')[0]; | var s = document.getElementsByTagName('script')[0]; | ||
s.parentNode.insertBefore(wf, s); | s.parentNode.insertBefore(wf, s); | ||
})(); | })(); </script> |
Revision as of 12:38, 31 March 2015
<script type="text/javascript">
WebFontConfig = {
google: { families: [ 'Special+Elite::latin', 'Sintony::latin,latin-ext' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})(); </script>