Created
April 29, 2016 14:24
-
-
Save andreasvirkus/2cf6e0e921fc4ca874e163321b2962c8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function addGoogleFont(FontName) { | |
$("head").append("<link href='https://fonts.googleapis.com/css?family=" + FontName + "' rel='stylesheet' type='text/css'>"); | |
} | |
function addCustomFont(url) { | |
$("head").append("<link href='" + link + "' rel='stylesheet' type='text/css'>"); | |
} | |
// Usage | |
addGoogleFont("Junge"); | |
addCustomFont("https://cloud.typography.com/7311314/7589752/css/fonts.css"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment