mirror of
https://github.com/quinton-ashley/java2js
synced 2024-12-29 10:11:54 +01:00
1.1.11
This commit is contained in:
parent
7e855616c8
commit
e11bf077f8
@ -2,7 +2,7 @@
|
||||
|
||||
`java2js` can translate simple Java programs to JavaScript and runs them using a JavaScript based JDK.
|
||||
|
||||
Try out the `demo.html` and `ide.js`, a barebones implementation.
|
||||
Try out the demo in the docs folder of this repository. `index.html` and `ide.js` are a barebones implementation.
|
||||
|
||||
## Java classes included in the java2js JDK
|
||||
|
||||
@ -46,7 +46,7 @@ The java2js transpiler supports:
|
||||
- arrays with initial size
|
||||
- two dimensional arrays
|
||||
- lambda arrow functions
|
||||
- triple quotes
|
||||
- triple quote strings
|
||||
|
||||
## API
|
||||
|
||||
|
BIN
docs/favicon.ico
Normal file
BIN
docs/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
@ -1,6 +1,6 @@
|
||||
(async () => {
|
||||
jdk.log = document.getElementById('javaConsole');
|
||||
await jdk.init();
|
||||
await jdk.init('..');
|
||||
|
||||
let file0 = document.getElementById('javaFile');
|
||||
file0.onchange = async () => {
|
@ -2,6 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" type="image/x-icon" href="./favicon.ico" />
|
||||
<title>java2js test</title>
|
||||
<style>
|
||||
body,
|
||||
@ -47,7 +48,7 @@
|
||||
placeholder="Java console, click here to run!"
|
||||
></textarea>
|
||||
|
||||
<script type="text/javascript" src="jdk.js"></script>
|
||||
<script type="text/javascript" src="../jdk.js"></script>
|
||||
<script type="text/javascript" src="ide.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "java2js",
|
||||
"version": "1.1.10",
|
||||
"description": "Converts Java to JavaScript with support for p5.js and QuintOS.",
|
||||
"version": "1.1.11",
|
||||
"description": "Converts Java to JavaScript and runs it with a JS JDK",
|
||||
"main": "jdk.js",
|
||||
"scripts": {
|
||||
"start": "open demo.html",
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"test": "open demo.html",
|
||||
"v": "npm version patch --force",
|
||||
"V": "npm version minor --force",
|
||||
"version": "git add -A",
|
||||
|
Loading…
x
Reference in New Issue
Block a user