1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub-skin.git synced 2024-05-20 01:48:23 +03:00

fix: webfont

This commit is contained in:
Alexander Yakovlev 2019-02-19 02:21:12 +07:00
parent 2b85a09fd2
commit 6c1abff76a
Signed by: oreolek
GPG key ID: 1CDC4B7820C93BD3
2 changed files with 6 additions and 9 deletions

View file

@ -24,7 +24,7 @@ jQuery(document).ready(function($){
/\/tag\/?/, /\/tag\/?/,
/\/rss\/?/, /\/rss\/?/,
/\/ajax\/?/, /\/ajax\/?/,
/#(.+)/, /#(.+)/
] ]
}); });
@ -684,13 +684,5 @@ jQuery(document).ready(function($){
// Хук конца инициализации javascript-составляющих шаблона // Хук конца инициализации javascript-составляющих шаблона
ls.hook.run('ls_template_init_end',[],window); ls.hook.run('ls_template_init_end',[],window);
if (WebFont !== undefined) {
WebFont.load({
google: {
families: ['Open Sans:300,400,700:latin,cyrillic']
}
});
}
}); });

View file

@ -275,6 +275,11 @@
})(document, window, "yandex_metrika_callbacks2"); })(document, window, "yandex_metrika_callbacks2");
// /Yandex.Metrika counter // /Yandex.Metrika counter
// Google webfont loader // Google webfont loader
WebFontConfig = {
google: {
families: ['Open Sans:300,400,700:latin,cyrillic']
}
}
(function(d) { (function(d) {
var wf = d.createElement('script'), s = d.scripts[0]; var wf = d.createElement('script'), s = d.scripts[0];
wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js'; wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js';