-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcredits.html
60 lines (58 loc) · 1.68 KB
/
credits.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Credits</title>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
#content {
background-color: #f9f9f9;
border: 1px solid #ddd;
border-radius: 5px;
padding: 20px;
}
h1 {
color: #2c3e50;
}
#home-button {
display: inline-block;
margin-top: 20px;
padding: 10px 20px;
background-color: #3498db;
color: white;
text-decoration: none;
border-radius: 5px;
}
#home-button:hover {
background-color: #2980b9;
}
</style>
</head>
<body>
<div id="content"></div>
<a href="app.html" id="home-button">Home</a>
<script>
function loadCredits() {
fetch('Credits.md')
.then(response => response.text())
.then(text => {
document.getElementById('content').innerHTML = marked.parse(text);
})
.catch(error => {
console.error('Error loading Credits.md:', error);
document.getElementById('content').innerHTML = '<p>Error loading credits. Please try again later.</p>';
});
}
window.onload = loadCredits;
</script>
</body>
</html>