-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.html
34 lines (32 loc) · 820 Bytes
/
game.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
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
<style>
html, body {
height: 100%;
}
body {
margin: 0;
display: flex;
/* This centers our sketch horizontally. */
justify-content: center;
/* This centers our sketch vertically. */
align-items: center;
}
</style>
<script src="https://telegram.org/js/telegram-web-app.js"></script>
<!-- Expand the window as soon as the Telegram Web App API is loaded -->
<script>
window.onload = function() {
if (window.Telegram && window.Telegram.WebApp) {
window.Telegram.WebApp.expand();
}
};
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.6.0/p5.min.js"></script>
<script src="slideit.js"></script>
</head>
<body>
</body>
</html>