Load different versions of Roboto web font

Use Roboto for COMM font rather than Verdana
This commit is contained in:
Morgan Jones
2013-10-07 18:29:43 -05:00
parent 709af1a9d9
commit 306de7e6dc
2 changed files with 12 additions and 8 deletions

View File

@ -40,10 +40,10 @@ if(!d) {
if(document.getElementById('header_email')) {
// however, we are logged in.
setTimeout('location.reload();', 3*1000);
throw('Page doesnt have player data, but you are logged in. Reloading in 3s.');
throw("Page doesn't have player data, but you are logged in. Reloading in 3s.");
}
// FIXME: handle nia takedown in progress
throw('Couldnt retrieve player data. Are you logged in?');
throw("Couldn't retrieve player data. Are you logged in?");
}
@ -63,7 +63,9 @@ document.getElementsByTagName('head')[0].innerHTML = ''
+ '<style>@@INCLUDESTRING:style.css@@</style>'
+ '<style>@@INCLUDESTRING:external/leaflet.css@@</style>'
//note: smartphone.css injection moved into code/smartphone.js
+ '<link href="//fonts.googleapis.com/css?family=Roboto:normal,bold&subset=latin,cyrillic-ext,greek-ext,greek,cyrillic,latin-ext,vietnamese" rel="stylesheet" type="text/css">';
+ '<script type="text/javascript" src="//apis.google.com/js/api.js"/>'
+ '<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Coda"/>'
+ '<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic,700,700italic&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic"/>';
document.getElementsByTagName('body')[0].innerHTML = ''
+ '<div id="map">Loading, please wait</div>'