-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
45 lines (39 loc) · 1.33 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
<!doctype html>
<html>
<head>
<title>Termfolio</title>
<link data-trunk rel="icon" href="./styles/favicon.ico" type="image/ico" />
<meta
http-equiv="Permissions-Policy"
content="interest-cohort=(), user-id=()"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link data-trunk rel="css" href="./styles/styles.css" />
<link data-trunk rel="css" href="./styles/themes.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div id="orientation-warning">
For the best experience, please use landscape mode or switch to a wider
screen.
</div>
<script>
function checkOrientation() {
const isPortrait = window.innerHeight > window.innerWidth;
const warning = document.getElementById("orientation-warning");
if (isPortrait) {
warning.style.display = "block";
} else {
warning.style.display = "none";
}
}
window.addEventListener("resize", checkOrientation);
window.addEventListener("load", checkOrientation);
</script>
</body>
</html>