Skip to content

Commit

Permalink
CJ3 RC1 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
bates64 authored Oct 18, 2023
1 parent 2b7b87d commit f096652
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/ProductVersionSwitcher.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { product } = Astro.props;
---

<div class="flex items-center justify-end gap-2">
{product.id === "cheerpj3" && <div>Preview</div>}
{product.id === "cheerpj3" && <div>Release candidate</div>}

<label for="version-switcher" class="sr-only">Version</label>
<select
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Let's create a basic HTML file like the following example. Please notice the Che
<head>
<meta charset="utf-8" />
<title>CheerpJ test</title>
<script src="https://cjrtnc.leaningtech.com/3_20230819_174/cj3loader.js"></script>
<script src="https://cjrtnc.leaningtech.com/3.0rc1/cj3loader.js"></script>
</head>
<body>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ CheerpJ can run Java applets in the browser seamlessly. This page will help you
<head>
<meta charset="utf-8" />
<title>CheerpJ applet test</title>
<script src="https://cjrtnc.leaningtech.com/3_20230819_174/cj3loader.js"></script>
<script src="https://cjrtnc.leaningtech.com/3.0rc1/cj3loader.js"></script>
</head>
<body>
<cheerpj-applet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ subtitle: Use Java classes in JavaScript
## 1. Include CheerpJ on your page

```html
<script src="https://cjrtnc.leaningtech.com/3_20230819_174/cj3loader.js"></script>
<script src="https://cjrtnc.leaningtech.com/3.0rc1/cj3loader.js"></script>
```

## 2. Initialize CheerpJ and load your Java library
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/cheerpj3/13-examples/00-swingset3.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Visit the URL shown in the terminal and you should see a blank page. Leave Vite
Let's add CheerpJ to the page by adding this script tag to the `<head>`:

```html title="index.html"
<script src="https://cjrtnc.leaningtech.com/3_20230915_194/cj3loader.js"></script>
<script src="https://cjrtnc.leaningtech.com/3.0rc1/cj3loader.js"></script>
```

## 3. Initialise CheerpJ and run the jar
Expand Down
5 changes: 3 additions & 2 deletions src/lib/products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ export const products: { [product in Product]: ProductData } = {
href: "/cheerpj3",
logotype: cheerpjLogotype,
favicon: "/cheerpj2/favicon.ico",
subtitle: "Run JAR files and Java applets on the web",
description: "Java Virtual Machine (JVM) replacement",
subtitle: "Java Virtual Machine replacement for the browser",
description:
"Run Java 8 applications, libraries, applets, Java Web Start, and Oracle Forms on the web without legacy plugins.",
},
cheerpx: {
id: "cheerpx",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/cheerpj.astro
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<meta http-equiv="Refresh" content="0;url=/cheerpj2" />
<meta http-equiv="Refresh" content="0;url=/cheerpj3" />
2 changes: 1 addition & 1 deletion src/pages/docs.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { Image } from "astro:assets";
<div class="grid md:grid-cols-2 xl:grid-cols-3 gap-6 items-stretch">
{
Object.values(products)
.filter((product) => product.id !== "cheerpj3")
.filter((product) => product.id !== "cheerpj2")
.map((product) => (
<a
href={product.href}
Expand Down

0 comments on commit f096652

Please sign in to comment.