|
- <html><head>
- <SCRIPT src="./web-files/dtjava.js"></SCRIPT>
- <script>
- function launchApplication(jnlpfile) {
- dtjava.launch( {
- url : 'MontecarloPi.jnlp',
- jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sbnM6amZ4PSJodHRwOi8vamF2YWZ4LmNvbSIgaHJlZj0iTW9udGVjYXJsb1BpLmpubHAiPg0KICA8aW5mb3JtYXRpb24+DQogICAgPHRpdGxlPk1vbnRlY2FybG9QaTwvdGl0bGU+DQogICAgPHZlbmRvcj5FZHVhcmQ8L3ZlbmRvcj4NCiAgICA8ZGVzY3JpcHRpb24+bnVsbDwvZGVzY3JpcHRpb24+DQogICAgPG9mZmxpbmUtYWxsb3dlZC8+DQogIDwvaW5mb3JtYXRpb24+DQogIDxyZXNvdXJjZXM+DQogICAgPGoyc2UgdmVyc2lvbj0iMS42KyIgaHJlZj0iaHR0cDovL2phdmEuc3VuLmNvbS9wcm9kdWN0cy9hdXRvZGwvajJzZSIvPg0KICAgIDxqYXIgaHJlZj0iTW9udGVjYXJsb1BpLmphciIgc2l6ZT0iMTA0NDEiIGRvd25sb2FkPSJlYWdlciIgLz4NCiAgPC9yZXNvdXJjZXM+DQogIDxhcHBsZXQtZGVzYyAgd2lkdGg9IjgwMCIgaGVpZ2h0PSI2MDAiIG1haW4tY2xhc3M9ImNvbS5qYXZhZngubWFpbi5Ob0phdmFGWEZhbGxiYWNrIiAgbmFtZT0iTW9udGVjYXJsb1BpIiA+DQogICAgPHBhcmFtIG5hbWU9InJlcXVpcmVkRlhWZXJzaW9uIiB2YWx1ZT0iOC4wKyIvPg0KICA8L2FwcGxldC1kZXNjPg0KICA8amZ4OmphdmFmeC1kZXNjICB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCIgbWFpbi1jbGFzcz0ibW9udGVjYXJsb3BpLk1vbnRlY2FybG9QaSIgIG5hbWU9Ik1vbnRlY2FybG9QaSIgLz4NCiAgPHVwZGF0ZSBjaGVjaz0iYWx3YXlzIi8+DQo8L2pubHA+DQo='
- },
- {
- javafx : '8.0+'
- },
- {}
- );
- return false;
- }
- </script>
-
- <script>
- function javafxEmbedmontecarlopi() {
- dtjava.embed(
- {
- id : 'montecarlopi',
- url : 'MontecarloPi.jnlp',
- placeholder : 'javafx-app-placeholder',
- width : '800',
- height : '600',
- jnlp_content : 'PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxqbmxwIHNwZWM9IjEuMCIgeG1sbnM6amZ4PSJodHRwOi8vamF2YWZ4LmNvbSIgaHJlZj0iTW9udGVjYXJsb1BpLmpubHAiPg0KICA8aW5mb3JtYXRpb24+DQogICAgPHRpdGxlPk1vbnRlY2FybG9QaTwvdGl0bGU+DQogICAgPHZlbmRvcj5FZHVhcmQ8L3ZlbmRvcj4NCiAgICA8ZGVzY3JpcHRpb24+bnVsbDwvZGVzY3JpcHRpb24+DQogICAgPG9mZmxpbmUtYWxsb3dlZC8+DQogIDwvaW5mb3JtYXRpb24+DQogIDxyZXNvdXJjZXM+DQogICAgPGoyc2UgdmVyc2lvbj0iMS42KyIgaHJlZj0iaHR0cDovL2phdmEuc3VuLmNvbS9wcm9kdWN0cy9hdXRvZGwvajJzZSIvPg0KICAgIDxqYXIgaHJlZj0iTW9udGVjYXJsb1BpLmphciIgc2l6ZT0iMTA0NDEiIGRvd25sb2FkPSJlYWdlciIgLz4NCiAgPC9yZXNvdXJjZXM+DQogIDxhcHBsZXQtZGVzYyAgd2lkdGg9IjgwMCIgaGVpZ2h0PSI2MDAiIG1haW4tY2xhc3M9ImNvbS5qYXZhZngubWFpbi5Ob0phdmFGWEZhbGxiYWNrIiAgbmFtZT0iTW9udGVjYXJsb1BpIiA+DQogICAgPHBhcmFtIG5hbWU9InJlcXVpcmVkRlhWZXJzaW9uIiB2YWx1ZT0iOC4wKyIvPg0KICA8L2FwcGxldC1kZXNjPg0KICA8amZ4OmphdmFmeC1kZXNjICB3aWR0aD0iODAwIiBoZWlnaHQ9IjYwMCIgbWFpbi1jbGFzcz0ibW9udGVjYXJsb3BpLk1vbnRlY2FybG9QaSIgIG5hbWU9Ik1vbnRlY2FybG9QaSIgLz4NCiAgPHVwZGF0ZSBjaGVjaz0iYWx3YXlzIi8+DQo8L2pubHA+DQo='
- },
- {
- javafx : '8.0+'
- },
- {}
- );
- }
- <!-- Embed FX application into web page once page is loaded -->
- dtjava.addOnloadCallback(javafxEmbedmontecarlopi);
- </script>
-
- </head><body>
- <h2>Test page for <b>MontecarloPi</b></h2>
- <b>Webstart:</b> <a href='MontecarloPi.jnlp' onclick="return launchApplication('MontecarloPi.jnlp');">click to launch this app as webstart</a><br><hr><br>
-
- <!-- Applet will be inserted here -->
- <div id='javafx-app-placeholder'></div>
- </body></html>
|