Adding Google Chrome Framework for IE<9
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
<definition name="closeDialog" page="/jsp/closeDialog.jsp"/>
|
||||
<definition name="embeddedViewError" page="/jsp/embeddedViewError.jsp"/>
|
||||
<definition name="mindmapPrint" page="/jsp/mindmapPrint.jsp"/>
|
||||
<definition name="installCFG" page="/jsp/installCFG.jsp"/>
|
||||
|
||||
<!-- Template Declaration -->
|
||||
<definition name="pageTemplate" page="/jsp/template.jsp">
|
||||
|
@@ -23,7 +23,7 @@ function afterCoreLoading()
|
||||
// Uncomment for debug ...
|
||||
if (core.UserAgent.isVMLSupported())
|
||||
{
|
||||
$import("../js/mindplot.vml.js");
|
||||
// $import("../js/mindplot.vml.js");
|
||||
} else
|
||||
{
|
||||
$import("../js/mindplot.svg.js");
|
||||
|
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