2
0
Fork 0
tcrud/lib/www_views/node-ff-tcrud/angular/js/application-font.ejs

16 lines
483 B
Plaintext
Raw Permalink Normal View History

2017-06-10 14:53:29 +00:00
'use strict';
console.log('FFTCrudExample.fontFaceOnload check');
var ffolStartTime = new Date().getTime();
FontFaceOnload('Source Sans', {
timeout: 1234,
success: function() {
console.log('FFTCrudExample.FontFaceOnload success in '+(new Date().getTime()-ffolStartTime)+' ms.');
document.documentElement.className += ' fontLoaded';
},
error: function() {
console.log('FFTCrudExample.fontFaceOnload timeout.');
document.documentElement.className += ' fontLoaded';
}
});