Skip to content
Snippets Groups Projects
Commit 0f98d922 authored by Richard Alam's avatar Richard Alam
Browse files

- add some checks for java

parent e5887fe1
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,9 @@
<script type="text/javascript" src="lib/bbb_check.js" language="javascript"></script>
<script type="text/javascript" src="lib/pre_flight_check.js" language="javascript"></script>
<script>
var testJava = function() {
window.open("http://www.java.com/en/download/testjava.jsp")
}
</script>
</head>
......@@ -27,6 +29,9 @@
<div id="controls">
<button type="button" onclick="bbbCheckFlashVersion()">Check Flash Version</button>
<button type="button" onclick="bbbHasMinFlashVersion('9.0.18')">Min Version</button>
<button type="button" onclick="bbbGetBrowser()">Get browser</button>
<button type="button" onclick="bbbGetJREs()">Get JREs</button>
<button type="button" onclick="testJava()">test Java</button>
</div>
</body>
</html>
......@@ -10,7 +10,25 @@
return swfobject.hasFlashPlayerVersion(flashVersion);
}
BBBCheck.getBrowser = function() {
return deployJava.getBrowser();
}
BBBCheck.getJREs = function() {
return deployJava.getJREs();
}
BBBCheck.installJRE = function(version) {
deployJava.installJRE(version);
}
BBBCheck.installLatestJRE = function() {
deployJava.installLatestJRE();
}
BBBCheck.runApplet = function(attributes, parameters, minimumVersion) {
deployJava.runApplet(attributes, parameters, minimumVersion);
}
window.BBBCheck = BBBCheck;
})(this);
......@@ -6,4 +6,12 @@ var bbbCheckFlashVersion = function() {
var bbbHasMinFlashVersion = function(version) {
console.log("Q: Do I have Flash player 9.0.18 or higher installed?\nA: " + BBBCheck.hasMinFlashPlayerVersion(version));
}
var bbbGetBrowser = function() {
console.log("Browser = " + BBBCheck.getBrowser());
}
var bbbGetJREs = function() {
console.log("JREs = " + BBBCheck.getJREs());
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment