1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
3 |
<head> |
4 |
<title>Launch jGridstart</title> |
5 |
<script src="http://java.com/js/deployJava.js"></script> |
6 |
<script src="tinybox.js"></script> |
7 |
<link rel="stylesheet" href="tinybox.css"/> |
8 |
</head> |
9 |
<body> |
10 |
|
11 |
<h1 style="text-align: center; font-size: 120%;">Launch jGridstart</h1> |
12 |
|
13 |
<script type="text/javascript"><!-- |
14 |
var jnlp = 'jgridstart.jnlp'; |
15 |
var minjava = '1.5'; |
16 |
|
17 |
function launch() { |
18 |
deployJava.launch(jnlp); |
19 |
} |
20 |
function installOrLaunch() { |
21 |
if (deployJava.isWebStartInstalled(minjava)) { |
22 |
// launch directly if required jws version present |
23 |
launch(); |
24 |
} else { |
25 |
// otherwise show message on installation |
26 |
deployJava.returnPage = document.location; |
27 |
var msg = |
28 |
"<h2>Java required</h2>" |
29 |
+ "<p>You need to install Java before you can run jGridstart.</p>" |
30 |
+ "<div><a href='javascript:deployJava.installLatestJRE()'><img src='javabutton.png' alt='Install Java'/></a></div" |
31 |
+ "<div class='runanyway'>If you do have Java installed, you can still " |
32 |
+ "<a href='javascript:launch()'>launch jGridstart</a>.</div>"; |
33 |
TINY.box.show(msg, false, 0, 0, false); |
34 |
} |
35 |
} |
36 |
|
37 |
document.write('<div class="jwslaunch" style="text-align: center">'); |
38 |
document.write('<a href="javascript:installOrLaunch()">'); |
39 |
document.write('<img src="'+deployJava.launchButtonPNG+'" border="0" alt="Launch"/>'); |
40 |
document.write('</a>'); |
41 |
if (!deployJava.isWebStartInstalled(minjava)) { |
42 |
document.write('<div style="font-size: 70%">(Java will be installed first)</div>'); |
43 |
} |
44 |
document.write('</div>'); |
45 |
|
46 |
//--></script> |
47 |
<noscript><a href="jgridstart.jnlp">Launch</a></noscript> |
48 |
</div> |
49 |
|
50 |
</body> |
51 |
</html> |