fixing google frame installation jsp

This commit is contained in:
Pablo Luna 2011-03-29 16:28:13 +01:00
parent 760ccd3754
commit fdf3b34959
2 changed files with 55 additions and 22 deletions

View File

@ -323,5 +323,9 @@ NO_HISTORY_RESULTS= No History Information was found.
HISTORY_INFO = Here is the list of the last revisions of you map. HISTORY_INFO = Here is the list of the last revisions of you map.
REVERT=revert REVERT=revert
SAMPLE_MAPS=Sample Maps SAMPLE_MAPS=Sample Maps
INSTALL_CFG=Install Google Chrome Frame
INSTALL_CFG_REASON = Since you are using Internet Explorer 8 or previous, you need to install Google Chrome Frame. This is a plugin made by Google that will allow you to see SVG in your browser.
INSTALL_CFG_BROWSERS=This plug in is not necessary for Internet Explorer 9, or any other browser.
INSTALL_CFG_CLICK_HERE=To download click here
INVALID_EMAIL_ERROR = The e-mail was not verified INVALID_EMAIL_ERROR = The e-mail was not verified

View File

@ -1,20 +1,43 @@
<!DOCTYPE HTML>
<%@page pageEncoding="UTF-8"%>
<%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles" %>
<%@ include file="/jsp/init.jsp" %>
<html> <html>
<head> <head>
<title>
<spring:message code="SITE.TITLE"/>
-
<spring:message code="INSTALL_CFG"/>
</title>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="../css/wisehome.css"/>
<link rel="icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon"/>
<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon"/>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script type="text/javascript" <script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script> src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
</head> </head>
<body> <body>
<div style="width:100%; font-size:130%;">
you need to install Google Chrome Frame.
<br/>
<div id="div"> click here</div>
</div>
<div id="prompt"> <jsp:include page="header.jsp"/>
<div class="pageBody">
<div class="pageBodyContent">
<div style="width:100%; font-size:130%;">
<spring:message code="INSTALL_CFG_REASON"/>
<br/><br/>
<span style="font-size:20px; font-weight:bold;"><spring:message code="INSTALL_CFG_BROWSERS"/></span>
<br/><br/>
<div id="div" style="text-decoration:underline; cursor:pointer; color:blue;"><spring:message code="INSTALL_CFG_CLICK_HERE"/></div>
</div>
<div id="prompt">
<!-- if IE without GCF, prompt goes here --> <!-- if IE without GCF, prompt goes here -->
</div> </div>
<script> <script>
// The conditional ensures that this code will only execute in IE, // The conditional ensures that this code will only execute in IE,
// Therefore we can use the IE-specific attachEvent without worry // Therefore we can use the IE-specific attachEvent without worry
$(document).ready(function(){ $(document).ready(function(){
@ -27,7 +50,13 @@
CFInstall.check({ CFInstall.check({
mode: "overlay" // the default mode: "overlay" // the default
}); });
$(".chromeFrameOverlayContent").css("display","none");
$(".chromeFrameOverlayUnderlay").css("display","none");
}); });
</script> </script>
</div>
</div>
<jsp:include page="footer.jsp"/>
</body> </body>
</html> </html>