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
/** | |
* JavaScript code to detect available availability of a | |
* particular font in a browser using JavaScript and CSS. | |
* | |
* Author : Lalit Patel | |
* Website: http://www.lalit.org/lab/javascript-css-font-detect/ | |
* License: Apache Software License 2.0 | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* Version: 0.15 (21 Sep 2009) | |
* Changed comparision font to default from sans-default-default, |
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
/* | |
Open native app through iframe so that mobile safari "invalid address" warnings be suppressed when the app is not installed. | |
* `window.location=url` will not open native app in the iframe of android chrome | |
* Android will go to the next page even if the url scheme is not supported | |
*/ | |
function openApp (url) { | |
if (window.chrome && navigator.userAgent.search(/\bChrome\b/)!=-1) { | |
window.location = url; | |
} else { |