diff options
author | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2015-04-23 11:39:45 +0200 |
---|---|---|
committer | Tobias Kellner <tobias.kellner@iaik.tugraz.at> | 2015-04-23 11:39:45 +0200 |
commit | fd94c6186260ede93b5e5980032f67eb02cf2d5c (patch) | |
tree | 6e06baa234893f4bcb89b6ad13a399390d7d2ada /BKUOnline/src/main/webapp/applet.jsp | |
parent | cbd719a487362c2641e73889f5727981249e2d5f (diff) | |
download | mocca-fd94c6186260ede93b5e5980032f67eb02cf2d5c.tar.gz mocca-fd94c6186260ede93b5e5980032f67eb02cf2d5c.tar.bz2 mocca-fd94c6186260ede93b5e5980032f67eb02cf2d5c.zip |
Display different applet error message for Chrome users
Diffstat (limited to 'BKUOnline/src/main/webapp/applet.jsp')
-rw-r--r-- | BKUOnline/src/main/webapp/applet.jsp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/BKUOnline/src/main/webapp/applet.jsp b/BKUOnline/src/main/webapp/applet.jsp index c0e3ef49..60486ae6 100644 --- a/BKUOnline/src/main/webapp/applet.jsp +++ b/BKUOnline/src/main/webapp/applet.jsp @@ -185,21 +185,26 @@ <body> <div id="container"> <div id="buttons"> - <a href="#" id="focus" onclick="resize(1.2); return false;" style="float: left;"><img alt="<fmt:message key="incTextSize"/>" src="img/inc.png" id="incButton" class="button"></a> - <a href="#" onclick="resize(1/1.2); return false;" style="float: left;"><img alt="<fmt:message key="decTextSize"/>" src="img/dec.png" id="decButton" class="button"></a> + <a href="#" id="focus" onclick="resize(1.2); return false;" style="float: left;"><img alt="<fmt:message key="incTextSize"/>" src="img/inc.png" id="incButton" class="button"></a> + <a href="#" onclick="resize(1/1.2); return false;" style="float: left;"><img alt="<fmt:message key="decTextSize"/>" src="img/dec.png" id="decButton" class="button"></a> </div> - <a href="<c:out value="${helpUrl}"/>" onclick="this.href = document.moccaapplet.getHelpURL(); return true;" onblur="focusToApplet()" target="_new" style="float: right;"><img alt="<fmt:message key="help"/>" src="img/help.png" id="helpButton" class="button"></a> - <div id="message" style="display: none;"> + <a href="<c:out value="${helpUrl}"/>" onclick="this.href = document.moccaapplet.getHelpURL(); return true;" onblur="focusToApplet()" target="_new" style="float: right;"><img alt="<fmt:message key="help"/>" src="img/help.png" id="helpButton" class="button"></a> + <div id="message" style="display: none;"> <p><fmt:message key="javaPluginRequired"/></p> <p style="text-align: right;"> <a style="width: 90%; font-size: 100%" href="http://www.java.com" onclick="deployJava.installLatestJRE(); return false;"><fmt:message key="installJava"/></a> </p> + </div><div id="message_chrome" style="display: none;"> + <p><fmt:message key="noJavaChrome"/></p> </div><script type="text/javascript"> if (iframe) { document.getElementById("buttons").style.visibility = "hidden"; } if (!deployJava.versionCheck('<c:out value="${minJavaVersion}+"/>')) { - document.getElementById("message").style.display = "block"; + if (window.chrome) + document.getElementById("message_chrome").style.display = "block"; + else + document.getElementById("message").style.display = "block"; } else { var attributes = { codebase :'<c:out value="${codebase}"/>', |