-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
29 lines (29 loc) · 838 Bytes
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#33ff00">
<link rel="icon" type="image/x-icon" href="/images/favicon.ico">
<title id="title">Loading...</title>
<style>
body {
background-color: rgb(51, 255, 0);
}
</style>
</head>
<body>
<script>
// Read the title from the text file (title.txt)
fetch('title.txt')
.then(response => response.text())
.then(title => {
// Set the title on the webpage
document.getElementById('title').textContent = title;
})
.catch(error => {
console.error('Error fetching title:', error);
});
</script>
</body>
</html>