-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (85 loc) · 2.3 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html>
<head>
<link rel="icon" type="image/x-icon" href="./favicon.ico">
<link rel="apple-touch-icon" href="./apple-touch-icon.png" sizes="180×180">
<link rel="stylesheet" href="css/normalize.min.css">
<link rel="stylesheet" href="https://unpkg.com/swiper@7/swiper-bundle.min.css"/>
<style>
.container {
display: grid;
grid-template-columns: 1fr;
grid-gap: 10px;
align-items: center;
}
#game {
aspect-ratio: 16 / 9;
margin: 0 auto;
max-height: 724px;
max-width: 1287px;
height: 100%;
width: 100%;
}
#game::-webkit-scrollbar {
display: none;
}
.item {
margin: 0 auto;
max-width: 900px;
width: 100%;
}
.swiper--wrapper {
width: 100%;
}
.swiper-slide {
color: #ffffff;
width: 100%;
height: 100%;
text-align: center;
}
</style>
</head>
<body>
<div class="container">
<iframe id="game" src="./flora/index.html" width="100%"></iframe>
</div>
<div class="swiper">
<div class="swiper-wrapper">
<div class="swiper-slide"><img src="Help1.jpg"></div>
<div class="swiper-slide"><img src="Help2.jpg"></div>
<div class="swiper-slide"><img src="Help3.jpg"></div>
<div class="swiper-slide"><img src="Help4.jpg"></div>
<div class="swiper-slide"><img src="Credit.jpg"></div>
</div>
</div>
<div class="swiper-pagination"></div>
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</body>
<script src="https://unpkg.com/swiper@7/swiper-bundle.min.js"></script>
<script>
const swiper = new Swiper(".swiper", {
pagination: {
el: ".swiper-pagination"
},
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev"
},
loop: true,
autoHeight: true,
});
const game = document.getElementById("game");
game.onload = function () {
const item =
game.contentWindow.document.getElementById("unity-canvas");
item.style.height = "100%";
item.style.width = "100%";
item.style.maxHeight = "718px";
item.style.maxWidth = "1287px";
const body = game.contentWindow.document.body;
body.style.margin = "0px";
console.log("ok");
}
</script>
</html>