<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
var isIPHONE = (navigator.userAgent.match('iPhone') != null || navigator.userAgent.match('iPod') != null);
var isIPAD = (navigator.userAgent.match('iPad') != null);
var isANDROID = (navigator.userAgent.match('Android') != null);
function executeApp(url) {
if (isANDROID) {
location.href = "tstore://PRODUCT_VIEW/0000386538/0";
}
installApp();
if (isIPHONE || isIPAD) {
// window.location.href = url;
} else if (isANDROID) {
$('applinkDiv').innerHTML = '<iframe src="' + url + '" width="0" height="0" frameborder="0"></iframe>';
setTimeout(function(){
var b = $('applinkDiv');
var c = b.getElementsByTagName('iframe');
if (c.length > 0) { b.removeChild(c[0]); }
}, 1000);
}
}
function installApp() {
var b = new Date();
setTimeout(function(){
if (new Date() - b < 500) {
if (isANDROID) {
location.href = "market://details?id=com.inucompany.honeybridge9";
}
}
}, 500);
if (isIPHONE || isIPAD) {
location.href = "http://itunes.apple.com/app/id661986436?mt=8";
}
}
</script>
</head>
<body>
<script type="text/javascript">
window.onload=function() { executeApp("tstore://PRODUCT_VIEW/0000386538/0"); }
</script>
<div id="applinkDiv"></div>
</body>
</html>
'Infra & Server Dev' 카테고리의 다른 글
JAVA 서블릿 서버 병행성 및 자원공유 문제 (0) | 2013.08.30 |
---|---|
Java에서 줄바꿈 개행문자 바꾸기 (0) | 2013.08.13 |
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page contentType="Text/Html;charset=utf-8" pageEncoding="utf-8"%> (2) | 2013.04.12 |
JAVA 리눅스 컴파일시 UTF-8깨지는문제 해결법 (0) | 2013.04.11 |
[이클립스 에러] Target runtime Apache Tomcat v7.0 is not defined (0) | 2013.01.28 |