Basics of client server communication and drawing of gamestates finished
This commit is contained in:
43
out/artifacts/Client/Client.html
Normal file
43
out/artifacts/Client/Client.html
Normal file
@@ -0,0 +1,43 @@
|
||||
<html><head>
|
||||
<SCRIPT src="http://java.com/js/dtjava.js"></SCRIPT>
|
||||
<script>
|
||||
function launchApplication(jnlpfile) {
|
||||
dtjava.launch( {
|
||||
url : 'Client.jnlp'
|
||||
},
|
||||
{
|
||||
javafx : '8.0+'
|
||||
},
|
||||
{}
|
||||
);
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
function javafxEmbedClient_id() {
|
||||
dtjava.embed(
|
||||
{
|
||||
id : 'Client_id',
|
||||
url : 'Client.jnlp',
|
||||
placeholder : 'javafx-app-placeholder',
|
||||
width : '900',
|
||||
height : '900'
|
||||
},
|
||||
{
|
||||
javafx : '8.0+'
|
||||
},
|
||||
{}
|
||||
);
|
||||
}
|
||||
<!-- Embed FX application into web page once page is loaded -->
|
||||
dtjava.addOnloadCallback(javafxEmbedClient_id);
|
||||
</script>
|
||||
|
||||
</head><body>
|
||||
<h2>Test page for <b>Client</b></h2>
|
||||
<b>Webstart:</b> <a href='Client.jnlp' onclick="return launchApplication('Client.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>
|
||||
Reference in New Issue
Block a user