Skip to content

Commit 13325a8

Browse files
committed
2 parents 2ce9961 + 304ef8c commit 13325a8

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

credit.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Document</title>
8+
<link href="style.css" rel="stylesheet">
9+
</head>
10+
<body style="text-align: center; color: rgb(255, 255, 255);">
11+
<br><h1 >Credits: </h1>
12+
<br>
13+
https://github.com/wanfungchui/Boxy-Run
14+
<br>
15+
<div class="level">
16+
<button class="button" onclick="level1()">Level 1</button>
17+
<br><button onclick="level2()" class="button">Level 2</button>
18+
<br><button onclick="level3()" class="button">Level 3</button>
19+
</div>
20+
<script>
21+
function level1(){
22+
window.location = "index.html";
23+
}
24+
function level2(){
25+
window.location = "level2.html";
26+
}
27+
function level3(){
28+
window.location = "level3.html";
29+
}
30+
</script>
31+
</body>
32+
</html>

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
<button style="background-color: green;" class="button">Level 1</button>
2323
<br><button onclick="level2()" class="button">Level 2</button>
2424
<br><button onclick="level3()" class="button">Level 3</button>
25+
<br>
26+
<p><a href="credit.html">Credits</a></p>
2527
</div>
2628

2729
<table class="instructions" id="controls">
@@ -55,7 +57,7 @@
5557
}
5658
function level3() {
5759
window.location = "level3.html";
58-
}
60+
}
5961
</script>
6062
</body>
6163
</html>

0 commit comments

Comments
 (0)