Skip to content

Commit b7fadb9

Browse files
committed
CheerpJ v3.0 to v3.1
1 parent bf90d8a commit b7fadb9

29 files changed

+50
-50
lines changed

packages/astro-theme/components/ProductVersionSwitcher.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { product } = Astro.props;
1414
class="px-2 py-1 rounded bg-transparent text-stone-400 font-medium"
1515
id="version-switcher"
1616
>
17-
<option value="cheerpj3" selected={product.id === "cheerpj3"}>v3.0</option>
17+
<option value="cheerpj3" selected={product.id === "cheerpj3"}>v3.1</option>
1818
<option value="cheerpj2" selected={product.id === "cheerpj2"}>v2.3</option>
1919
</select>
2020
</div>

sites/cheerpj/src/content/docs/00-overview.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import AppletRunnerButton from "@leaningtech/astro-theme/components/AppletRunner
1212

1313
<div class="not-prose flex gap-2 mb-2">
1414
<img
15-
src="https://img.shields.io/badge/version-3.0-orange"
16-
alt="Version 3.0"
15+
src="https://img.shields.io/badge/version-3.1-orange"
16+
alt="Version 3.1"
1717
/>
1818
<a href="https://discord.leaningtech.com/">
1919
<img
@@ -43,7 +43,7 @@ import AppletRunnerButton from "@leaningtech/astro-theme/components/AppletRunner
4343
</div>
4444

4545
```html
46-
<script src="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"></script>
46+
<script src="https://cjrtnc.leaningtech.com/3.1/cj3loader.js"></script>
4747
```
4848

4949
<div class="mx-24">![](./explanation-diagram.png)</div>

sites/cheerpj/src/content/docs/10-getting-started/00-Java-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Let's create a basic HTML file like the following example. Please notice the Che
3333
<head>
3434
<meta charset="utf-8" />
3535
<title>CheerpJ test</title>
36-
<script src="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"></script>
36+
<script src="https://cjrtnc.leaningtech.com/3.1/cj3loader.js"></script>
3737
</head>
3838
<body>
3939
<script>

sites/cheerpj/src/content/docs/10-getting-started/01-Java-applet.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ In order to integrate CheerpJ, you just need to add:
3838
1. A simple `<script>` within the `<head>` of your page with the CheerpJ runtime loader.
3939

4040
```html
41-
<script src="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"></script>
41+
<script src="https://cjrtnc.leaningtech.com/3.1/cj3loader.js"></script>
4242
```
4343

4444
2. A second script calling [`cheerpjInit()`] to initialize CheerpJ's runtime environment.
@@ -57,7 +57,7 @@ For example:
5757
<head>
5858
<meta charset="utf-8" />
5959
<title>CheerpJ applet test</title>
60-
<script src="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"></script>
60+
<script src="https://cjrtnc.leaningtech.com/3.1/cj3loader.js"></script>
6161
</head>
6262
<body>
6363
<applet

sites/cheerpj/src/content/docs/10-getting-started/02-Java-library.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Use Java classes in JavaScript
66
## 1. Include CheerpJ on your page
77

88
```html
9-
<script src="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"></script>
9+
<script src="https://cjrtnc.leaningtech.com/3.1/cj3loader.js"></script>
1010
```
1111

1212
## 2. Initialize CheerpJ and load your Java library

sites/cheerpj/src/content/docs/10-getting-started/03-JNLP.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Example of an HTML file for an app where the class name is included in the manif
118118
<head>
119119
<meta charset="utf-8" />
120120
<title>CheerpJ test</title>
121-
<script src="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"></script>
121+
<script src="https://cjrtnc.leaningtech.com/3.1/cj3loader.js"></script>
122122
</head>
123123
<body>
124124
<script>
@@ -164,7 +164,7 @@ The HTML for an applet would look like this:
164164
<head>
165165
<meta charset="utf-8" />
166166
<title>CheerpJ applet test</title>
167-
<script src="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"></script>
167+
<script src="https://cjrtnc.leaningtech.com/3.1/cj3loader.js"></script>
168168
</head>
169169
<body>
170170
<applet

sites/cheerpj/src/content/docs/11-guides/cheerpj-debug.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The reason your application isn't working could be quite simple. Try these check
1414
- You integrated CheerpJ into your web page by adding a `<script>` tag like this:
1515

1616
```html
17-
<script src="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"></script>
17+
<script src="https://cjrtnc.leaningtech.com/3.1/cj3loader.js"></script>
1818
```
1919

2020
- The location of your JARs is correct and the prefix `/app/` is added when passing it to [`cheerpjRunJar`] or [`cheerpjRunMain`]. For more information visit the [virtual filesystem] guide.

sites/cheerpj/src/content/docs/11-guides/implementing-native-libraries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export default {
117117
<html>
118118
<head>
119119
<title>Native Method Example</title>
120-
<script src="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"></script>
120+
<script src="https://cjrtnc.leaningtech.com/3.1/cj3loader.js"></script>
121121
</head>
122122
<body>
123123
<script>

sites/cheerpj/src/content/docs/11-guides/implementing-native-methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Here, we provide an implementation for the `nativeAlert` method in the `Example`
145145
<html>
146146
<head>
147147
<title>Native Method Example</title>
148-
<script src="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"></script>
148+
<script src="https://cjrtnc.leaningtech.com/3.1/cj3loader.js"></script>
149149
</head>
150150
<body>
151151
<script>

sites/cheerpj/src/content/docs/13-tutorials/00-swingset3.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Visit the URL shown in the terminal and you should see a blank page. Leave Vite
4747
Let's add CheerpJ to the page by adding this script tag to the `<head>`:
4848

4949
```html title="index.html"
50-
<script src="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"></script>
50+
<script src="https://cjrtnc.leaningtech.com/3.1/cj3loader.js"></script>
5151
```
5252

5353
## 3. Initialise CheerpJ and run the jar

0 commit comments

Comments
 (0)