Skip to content

Commit 619575a

Browse files
committed
Hello Bcomp World
0 parents  commit 619575a

File tree

8 files changed

+103
-0
lines changed

8 files changed

+103
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# browsercomp
2+
3+
Run [Tune-IT bcomp][bcomp] in browser with [CheerpJ][cheerpj]
4+
5+
- [bcomp-ng](https://e1turin.github.io/browsercomp/index.html)
6+
- [bcomp-ng-ex](https://e1turin.github.io/browsercomp/index-ex.html)
7+
- [bcomp-ng-extended](https://e1turin.github.io/browsercomp/index-extended.html)
8+
9+
[bcomp]: https://github.com/tune-it/bcomp
10+
[cheerpj]: https://cheerpj.com/

bcomp-extended-1.5.0-beta.jar

1.8 MB
Binary file not shown.

bcomp-ng-ex_v1.3.jar

1.98 MB
Binary file not shown.

bcomp-ng_v1.45.09.jar

832 KB
Binary file not shown.

browsercomp.png

100 KB
Loading

index-ex.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>browsercomp</title>
6+
<script src="https://cjrtnc.leaningtech.com/4.0/loader.js"></script>
7+
<link rel="icon" href="browsercomp.png" type="image/png">
8+
</head>
9+
<body style="background: #212529">
10+
<script>
11+
(async function () {
12+
function execCb(cmdPath, argsArray) {
13+
if (cmdPath === "xdg-open") {
14+
window.open(argsArray, "_blank");
15+
}
16+
}
17+
const javaVersion = 8; // allowed 8 or 11
18+
await cheerpjInit({version: javaVersion, execCallback: execCb, clipboardMode: "system"}, document.body);
19+
20+
const bcompMinWidth = 860;
21+
const bcompMinHeight = 600
22+
cheerpjCreateDisplay(Math.max(bcompMinWidth, window.innerWidth - 16), Math.max(bcompMinHeight, window.innerHeight - 16));
23+
24+
// "/app/" is specific for CheerpJ
25+
const githubPagesRoot = "/app/browsercomp"
26+
const bcompJar = "bcomp-ng-ex_v1.3.jar" // https://github.com/HackMemory/BasicComputer
27+
await cheerpjRunJar(`${githubPagesRoot}/${bcompJar}`)
28+
})();
29+
</script>
30+
</body>
31+
</html>

index-extended.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>browsercomp</title>
6+
<script src="https://cjrtnc.leaningtech.com/4.0/loader.js"></script>
7+
<link rel="icon" href="browsercomp.png" type="image/png">
8+
</head>
9+
<body style="background: #212529">
10+
<script>
11+
(async function () {
12+
function execCb(cmdPath, argsArray) {
13+
if (cmdPath === "xdg-open") {
14+
window.open(argsArray, "_blank");
15+
}
16+
}
17+
const javaVersion = 8; // allowed 8 or 11
18+
await cheerpjInit({version: javaVersion, execCallback: execCb, clipboardMode: "system"}, document.body);
19+
20+
const bcompMinWidth = 860;
21+
const bcompMinHeight = 600
22+
cheerpjCreateDisplay(Math.max(bcompMinWidth, window.innerWidth - 16), Math.max(bcompMinHeight, window.innerHeight - 16));
23+
24+
// "/app/" is specific for CheerpJ
25+
const githubPagesRoot = "/app/browsercomp"
26+
const bcompJar = "bcomp-extended-1.5.0-beta.jar" // https://github.com/AppLoidx/bcomp-extended
27+
await cheerpjRunJar(`${githubPagesRoot}/${bcompJar}`)
28+
})();
29+
</script>
30+
</body>
31+
</html>

index.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>browsercomp</title>
6+
<script src="https://cjrtnc.leaningtech.com/4.0/loader.js"></script>
7+
<link rel="icon" href="browsercomp.png" type="image/png">
8+
</head>
9+
<body style="background: #212529">
10+
<script>
11+
(async function () {
12+
function execCb(cmdPath, argsArray) {
13+
if (cmdPath === "xdg-open") {
14+
window.open(argsArray, "_blank");
15+
}
16+
}
17+
const javaVersion = 8; // allowed 8 or 11
18+
await cheerpjInit({version: javaVersion, execCallback: execCb, clipboardMode: "system"}, document.body);
19+
20+
const bcompMinWidth = 860;
21+
const bcompMinHeight = 600
22+
cheerpjCreateDisplay(Math.max(bcompMinWidth, window.innerWidth - 16), Math.max(bcompMinHeight, window.innerHeight - 16));
23+
24+
// "/app/" is specific for CheerpJ
25+
const githubPagesRoot = "/app/browsercomp"
26+
const bcompJar = "bcomp-ng_v1.45.09.jar"
27+
await cheerpjRunJar(`${githubPagesRoot}/${bcompJar}`)
28+
})();
29+
</script>
30+
</body>
31+
</html>

0 commit comments

Comments
 (0)