Skip to content

Commit

Permalink
Merge pull request #274 from KisaragiEffective/fix/broken-html
Browse files Browse the repository at this point in the history
  • Loading branch information
KisaragiEffective authored Oct 15, 2023
2 parents d4a7876 + f06eb87 commit 2d9683c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package/origlang-interop-frontend-webserver/www/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<script type="module" src="./origlang_interop.js"></script>
<script type="application/wasm" src="origlang_interop_bg.wasm"></script>
<script>
Expand All @@ -16,17 +17,17 @@
const plural = (s, n) => n >= 2 ? `${s}s` : s;
switch (s) {
case "Hello, World":
fetch("./example/hello_world.ol").then(x => x.text()).then(t => {
fetch("./example/hello_world.origlang").then(x => x.text()).then(t => {
document.getElementById("src").value = t;
});
break;
case "Fizz Buzz":
fetch("./example/fizz_buzz.ol").then(x => x.text()).then(t => {
fetch("./example/fizz_buzz.origlang").then(x => x.text()).then(t => {
document.getElementById("src").value = t;
});
break;
case "99 Bottles of Beer":
fetch("./example/99_bottles_of_beer.ol").then(x => x.text()).then(t => {
fetch("./example/99_bottles_of_beer.origlang").then(x => x.text()).then(t => {
document.getElementById("src").value = t;
})
break;
Expand Down

0 comments on commit 2d9683c

Please sign in to comment.