-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
196 lines (170 loc) · 3.91 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Immersive RPG</title>
<script>
document.addEventListener("DOMContentLoaded", function() {
fetch("/play_list.php")
.then(response => response.json())
.then(ids => {
//console.log(ids);
const video_iframe = document.querySelector("#youtube_video");
let play_list_src = "";
if (ids.length > 0) {
play_list_src = "https://www.youtube.com/embed/" + ids[0];
} else {
play_list_src = "https://www.youtube.com/embed/?list=PLlnj-W0EhsbtCTalstIUDmV2ZKgFbNkth";
}
video_iframe.src = play_list_src;
})
.catch (err => {
console.error(err);
});
});
</script>
</head>
<body>
<style>
*, *::before, *::after {
box-sizing: border-box;
}
* {
font-family: Helvetica, Arial, sans-serif;
}
a {
font-size: 4rem;
}
a:link {
color: yellow;
}
a:visited {
color: yellow;
}
a:focus {
color: orange;
}
a:hover {
color: orange;
}
a:active {
color: red;
}
html {
box-sizing: border-box;
min-height: 100%;
height: 100%;
color: white;
background-color: black;
}
body {
box-sizing: border-box;
margin: 50px;
padding: 0;
min-height: 100%;
}
h1 {
text-align: center;
margin-bottom: 3.0rem;
font-size: 5rem;
}
.links {
//background: #d9d7d5;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.links div {
//background: #767775;
text-align: center;
flex-basis: 100%;
height: 100px;
margin-bottom: 0.5rem;
}
footer {
text-align: center;
font-size: 1rem;
}
footer a {
font-size: 1rem;
}
.video div {
text-align: center;
width: 100%;
height: 100%;
}
.video {
width: 100%;
height: 100%;
}
@media (min-width: 526px) {
.video div iframe {
width: 426px;
height: 240px;
}
}
@media (min-width: 740px) {
.video div iframe {
width: 640px;
height: 360px;
}
}
@media (min-width: 954px) {
.video div iframe {
width: 854px;
height: 480px;
}
}
@media (min-width: 1380px) {
.video div iframe {
width: 1280px;
height: 720px;
}
}
@media (min-width: 2020px) {
.video div iframe {
width: 1920px;
height: 1080px;
}
}
@media (min-width: 900px) {
.links {
flex-wrap: nowrap;
}
.links div {
flex-basis: 50%;
}
}
</style>
<header>
<h1>Let's make an Immersive RPG in Godot</h1>
</header>
<segment class="video">
<div>
<iframe id="youtube_video" src="" frameborder="0" allowfullscreen></iframe>
</div>
</segment>
<segment class="links">
<div><a href="https://godotengine.org/asset-library/asset?user=ImmersiveRPG">Plugins</a></div>
<div><a href="https://github.com/ImmersiveRPG">Github</a></div>
<div><a href="https://www.patreon.com/ImmersiveRPG">Patreon</a></div>
</segment>
<segment class="links">
<div><a href="https://www.youtube.com/@immersiverpg">Youtube</a></div>
<div><a href="https://bitchute.com/ImmersiveRPG">BitChute</a></div>
<div><a href="https://rumble.com/user/ImmersiveRPG">Rumble</a></div>
<div><a href="https://odysee.com/@ImmersiveRPG">Odysee</a></div>
</segment>
<segment class="links">
<div><a href="https://twitter.com/ImmersiveRPG">Twitter</a></div>
<div><a href="https://minds.com/ImmersiveRPG">Minds</a></div>
<div><a href="https://reddit.com/u/ImmersiveRPG">Reddit</a></div>
<div><a href="https://github.com/ImmersiveRPG/credits">Credits</a></div>
</segment>
<footer>
<p>Copyright © 2023 Matthew Brennan Jones</p>
<p>Licensed under the MIT License</p>
<p>Source code: <a href="https://github.com/ImmersiveRPG/ImmersiveRPG.com">https://github.com/ImmersiveRPG/ImmersiveRPG.com</a></p>
</footer>
</body>
</html>