Adding Google Chrome Framework for IE<9
This commit is contained in:
33
wise-webapp/src/main/webapp/jsp/installCFG.jsp
Normal file
33
wise-webapp/src/main/webapp/jsp/installCFG.jsp
Normal file
@@ -0,0 +1,33 @@
|
||||
<html>
|
||||
<head>
|
||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
|
||||
</head>
|
||||
<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">
|
||||
<!-- if IE without GCF, prompt goes here -->
|
||||
</div>
|
||||
<script>
|
||||
// The conditional ensures that this code will only execute in IE,
|
||||
// Therefore we can use the IE-specific attachEvent without worry
|
||||
$(document).ready(function(){
|
||||
$("#div").click(function(event){
|
||||
$(".chromeFrameOverlayContent").css("display","block");
|
||||
$(".chromeFrameOverlayUnderlay").css("display","block");
|
||||
});
|
||||
});
|
||||
window.attachEvent("onload", function() {
|
||||
CFInstall.check({
|
||||
mode: "overlay" // the default
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@@ -12,6 +12,10 @@
|
||||
</c:url>
|
||||
<html>
|
||||
<head>
|
||||
<!--[if lt IE 9]>
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||
<![endif]-->
|
||||
|
||||
<!-- Internet Explorer 8 Hack -->
|
||||
<meta http-equiv="Content-type" value="text/html;charset=UTF-8">
|
||||
<title><spring:message code="SITE.TITLE"/> - ${mindmap.title} </title>
|
||||
|
Reference in New Issue
Block a user