-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Load material icons and display when page has loaded | ||
if ('fonts' in document) { | ||
document.fonts.ready.then(() => { | ||
$('.material-icons').css({ | ||
'opacity': 1, | ||
'max-width': 'unset', | ||
'overflow': 'visible' | ||
}); | ||
}).catch((error) => { | ||
console.error('Font loading failed:', error); | ||
}); | ||
} else { | ||
// Fallback for browsers that don't support document.fonts | ||
console.warn('Font API not supported in this browser.'); | ||
$('.material-icons').css({ | ||
'opacity': 1, | ||
'max-width': 'unset', | ||
'overflow': 'visible' | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters