forked from RaveTek/Eaglercraft-Bedrock-0.2.1
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
49 lines (47 loc) · 1.64 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Minecraft - Pocket Edition</title>
<style>
@font-face {
font-family: 'Minecraft';
src: url('minecraft.ttf') format('truetype'); /* Adjust the path if necessary */
}
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden; /* Prevent scrolling */
font-family: 'Minecraft', sans-serif; /* Apply the font */
}
iframe {
border: none; /* Remove border */
width: 100%; /* Full width */
height: 100%; /* Full height */
font-family: 'Minecraft', sans-serif; /* Apply the font to iframe content */
}
</style>
</head>
<body>
<iframe src="layouts/mainmenu_options.html" title="Main Content"></iframe>
<script>
const htmlContents = {};
function fetchHtmlFiles(fileNames) {
fileNames.forEach(fileName => {
fetch(fileName)
.then(response => response.text())
.then(data => {
htmlContents[fileName] = data;
console.log(`Loaded ${fileName} content:`, htmlContents[fileName]);
})
.catch(error => console.error(`Error loading ${fileName}:`, error));
});
}
const filesToFetch = ['drawable/bgtiled.html', 'html/preferences.html', 'layouts/main.html', 'layouts/create_new_world.html', 'layouts/create_world_screen.html', 'layouts/mainmenu_options.html', 'layouts/rename_mp_world.html'];
fetchHtmlFiles(filesToFetch);
</script>
</body>
</html>