mirror of
https://github.com/leaningtech/cheerpj-meta.git
synced 2025-03-25 07:27:51 +01:00
swingset html
This commit is contained in:
parent
f75ceed007
commit
a6180f615e
@ -3,7 +3,25 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
|
<title>SwingSet3 (CheerpJ)</title>
|
||||||
|
<script src="https://cjrtnc.leaningtech.com/3.0rc2/cj3loader.js"></script>
|
||||||
|
<style>
|
||||||
|
html, body {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#container {
|
||||||
|
width: 100vw;
|
||||||
|
height: 100svh;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div id="container"></div>
|
||||||
|
<script type="module">
|
||||||
|
await cheerpjInit();
|
||||||
|
cheerpjCreateDisplay(-1, -1, document.getElementById("container"));
|
||||||
|
await cheerpjRunJar("/app/SwingSet3.jar");
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
x
Reference in New Issue
Block a user