-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (46 loc) · 1.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flying Poop Emoji with Fan</title>
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: #f0f0f0;
}
canvas {
display: block;
background-color: white;
width: 100%; /* canvas адаптируется под ширину экрана */
height: 100%; /* canvas адаптируется под высоту экрана */
}
/* Позиционирование кнопки */
.github-button-container {
position: absolute;
top: 10px;
right: 10px;
z-index: 10; /* Кнопка всегда будет поверх всего */
}
</style>
<!-- GitHub Button Script -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
</head>
<body>
<!-- Контейнер для кнопки -->
<div class="github-button-container">
<!-- Place this tag where you want the button to render. -->
<a class="github-button" href="https://github.com/chuckis/flyingpoop"
data-color-scheme="no-preference: light; light: light; dark: dark;"
data-size="large" data-show-count="true"
aria-label="Star chuckis/flyingpoop on GitHub">Star</a>
</div>
<canvas id="poopCanvas"></canvas>
<script src="script.js"></script>
</body>
</html>