Skip to content

Commit

Permalink
change fonts path
Browse files Browse the repository at this point in the history
  • Loading branch information
Salvialf committed Apr 27, 2020
1 parent 68dd881 commit 1690511
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified V4/DigitalClockVue/DigitalClockVue.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions V4/DigitalClockVue/cmd.info.string.DigitalClockVue.html
Expand Up @@ -23,14 +23,14 @@

if ('#datefont#'!='#'+'datefont#' && '#datefont#'!='') {
let dateFont = '#datefont#';
let dFont = new FontFace(dateFont, "url(data/customTemplates/dashboard/cmd.info.string.DigitalClock/"+dateFont+".ttf)");
let dFont = new FontFace(dateFont, "url(data/customTemplates/dashboard/cmd.info.string.DigitalClockVue/"+dateFont+".ttf)");
dFont.load();
document.fonts.add(dFont);
cmd.find('#date').css('font-family', dateFont);
}
if ('#timefont#'!='#'+'timefont#' && '#timefont#'!='') {
let timeFont = '#timefont#';
let tFont = new FontFace(timeFont, "url(data/customTemplates/dashboard/cmd.info.string.DigitalClock/"+timeFont+".ttf)");
let tFont = new FontFace(timeFont, "url(data/customTemplates/dashboard/cmd.info.string.DigitalClockVue/"+timeFont+".ttf)");
tFont.load()
document.fonts.add(tFont);
cmd.find('#time').css('font-family', timeFont);
Expand Down

0 comments on commit 1690511

Please sign in to comment.