Skip to content

Commit 8790d20

Browse files
committed
redirect cpcbasic.html to index.html with URL parameters
1 parent ed1d867 commit 8790d20

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

cpcbasic.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
<head>
44
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<meta http-equiv="refresh" content="0; URL=index.html" />
7-
<title id="title">Page moved</title>
8-
</head>
9-
<body>
6+
<title id="title">CPCBasic page moved</title>
7+
<script>
8+
function loadNewDoc() {
9+
window.location.href = window.location.href.replace("cpcbasic.html", "index.html");
10+
window.document.getElementsByTagName("a")[0].href = window.location.href; // not really needed if JS is activated
11+
};
12+
</script>
13+
</head>
14+
<body onLoad="loadNewDoc()">
1015
<p>Page moved to <a href="index.html">index.html</a></p>
1116
</body>
1217
</html>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<link rel="stylesheet" href="cpcbasic.css" />
7-
<title id="title">CPC Basic v0.10.8</title>
7+
<title id="title">CPC Basic v0.10.9</title>
88
</head>
99

1010
<body id="pageBody">

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cpcbasic",
3-
"version": "0.10.8",
3+
"version": "0.10.9",
44
"description": "# CPCBasic - Run CPC BASIC in a Browser",
55
"main": "cpcbasic.js",
66
"directories": {

0 commit comments

Comments
 (0)