-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
74 lines (55 loc) · 4.21 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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Neutron</title>
<link rel="stylesheet" href="styles/style.css">
<script src="https://telegram.org/js/telegram-web-app.js"></script>
</head>
<body>
<div class="content">
</div>
<div class="footer">
<div class="today"><div class="sf-icon"></div>Сегодня</div>
<div class="menu"><div class="sf-icon"></div></div>
<div class="profile"></div>
</div>
<script type="module">
import * as assets from "./assets.js"
let css = ""
css += "@font-face {font-family: baton; src: url(" + assets.assets.batonTurboRegular +"); font-weight: 400; font-style: normal}"
css += "@font-face {font-family: baton; src: url(" + assets.assets.batonTurboBook +"); font-weight: 500; font-style: normal}"
css += "@font-face {font-family: baton; src: url(" + assets.assets.batonTurboMedium +"); font-weight: 600; font-style: normal}"
css += "@font-face {font-family: baton; src: url(" + assets.assets.batonTurboBold +"); font-weight: 700; font-style: normal}"
css += "@font-face {font-family: baton; src: url(" + assets.assets.batonTurboHeavy +"); font-weight: 800; font-style: normal}"
css += "@font-face {font-family: baton; src: url(" + assets.assets.batonTurboRegularItalic +"); font-weight: 400; font-style: italic}"
css += "@font-face {font-family: baton; src: url(" + assets.assets.batonTurboBookItalic +"); font-weight: 500; font-style: italic}"
css += "@font-face {font-family: baton; src: url(" + assets.assets.batonTurboMediumItalic +"); font-weight: 600; font-style: italic}"
css += "@font-face {font-family: baton; src: url(" + assets.assets.batonTurboBoldItalic +"); font-weight: 700; font-style: italic}"
css += "@font-face {font-family: baton; src: url(" + assets.assets.batonTurboHeavyItalic +"); font-weight: 800; font-style: italic}"
css += "@font-face {font-family: sf; src: url(" + assets.assets.sf +");}"
css += "@font-face {font-family: tt; src: url(" + assets.assets.tt_extralight +"); font-weight: 200; font-style: normal}"
css += "@font-face {font-family: tt; src: url(" + assets.assets.tt_light +"); font-weight: 300; font-style: normal}"
css += "@font-face {font-family: tt; src: url(" + assets.assets.tt +"); font-weight: 400; font-style: normal}"
css += "@font-face {font-family: tt; src: url(" + assets.assets.tt_medium +"); font-weight: 500; font-style: normal}"
css += "@font-face {font-family: tt; src: url(" + assets.assets.tt_demibold +"); font-weight: 600; font-style: normal}"
css += "@font-face {font-family: tt; src: url(" + assets.assets.tt_bold +"); font-weight: 700; font-style: normal}"
css += "@font-face {font-family: tt; src: url(" + assets.assets.tt_extrabold +"); font-weight: 800; font-style: normal}"
css += "@font-face {font-family: tt; src: url(" + assets.assets.tt_extralight_italic +"); font-weight: 200; font-style: italic}"
css += "@font-face {font-family: tt; src: url(" + assets.assets.tt_light_italic +"); font-weight: 300; font-style: italic}"
css += "@font-face {font-family: tt; src: url(" + assets.assets.tt_italic +"); font-weight: 400; font-style: italic}"
css += "@font-face {font-family: tt; src: url(" + assets.assets.tt_medium_italic +"); font-weight: 500; font-style: italic}"
css += "@font-face {font-family: tt; src: url(" + assets.assets.tt_demibold_italic +"); font-weight: 600; font-style: italic}"
css += "@font-face {font-family: tt; src: url(" + assets.assets.tt_bold_italic +"); font-weight: 700; font-style: italic}"
css += "@font-face {font-family: tt; src: url(" + assets.assets.tt_extrabold_italic +"); font-weight: 800; font-style: italic}"
let cssBlock = document.createElement("style");
cssBlock.innerHTML = css;
document.head.appendChild(cssBlock);
</script>
<script>
setInterval(()=>{
document.querySelector(".footer").style.top = "calc(" + window.Telegram.WebApp.viewportHeight + "px - 60px)"
}, 100)
</script>
</body>
</html>