Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
82 lines (80 loc) · 3.03 KB
/
Copy pathindex.html
File metadata and controls
82 lines (80 loc) · 3.03 KB
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
<!--
(c) 2023, Center for Computational Thinking and Design at Aarhus University and contributors
SPDX-License-Identifier: MIT
-->
<!DOCTYPE html>
<html lang="en" style="height: 100%">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="height=device-height, width=device-width, initial-scale=1.0, minimum-scale=1.0, target-densitydpi=device-dpi, viewport-fit=cover"
/>
<title><%= appNameFull %></title>
<meta property="og:title" content="<%= appNameFull %>" />
<link rel="canonical" href="%VITE_FULL_URL%" vite-ignore />
<meta property="og:url" content="%VITE_FULL_URL%" />
<% if (ogDescription) { %>
<meta property="og:description" content="<%= ogDescription %>" />
<% } %>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@microbit_edu" />
<% if (metaDescription) { %>
<meta name="description" content="<%= metaDescription %>" />
<% } %>
<meta property="og:image" content="%VITE_FULL_URL%social.png" />
<% /* Smart App Banner offering the iOS app to Safari visitors. Safari hides
it if the app is unavailable in the user's region or on their device, and
won't show it again once dismissed. Not in the apps build: there the page is
already running inside that app. */ if (iosAppStoreId && buildMode !==
'apps') { %>
<meta
name="apple-itunes-app"
content="app-id=<%= iosAppStoreId %>, app-argument=%VITE_FULL_URL%"
/>
<script>
// Point app-argument at the landing URL rather than the canonical one
// baked in above: Safari reads this tag on load, before React mounts,
// so useSmartAppBanner is too late for the first read. It takes over
// for the client-side navigations that follow.
(function () {
var meta = document.querySelector('meta[name="apple-itunes-app"]');
meta.content = meta.content.replace(/app-argument=.*$/, function () {
return "app-argument=" + window.location.href;
});
})();
</script>
<% } %>
<link rel="shortcut icon" href="%VITE_FULL_URL%imgs/favicon.ico" />
<% if (buildMode !== 'apps') { %>
<script
src="https://shared-assets.microbit.org/common/v3/common.js"
async
></script>
<script>
// GA config itself is via the common assets config depending on consent.
window.dataLayer = window.dataLayer || [];
window.gtag =
window.gtag ||
function () {
window.dataLayer.push(arguments);
};
</script>
<% } %>
<script type="text/javascript" id="crowdin-jipt-config">
(function () {
function escape() {
window.location.href = "%VITE_FULL_URL%";
}
window._jipt = [
["project", "microbitorg"],
["escape", escape],
];
})();
</script>
<script type="module" src="/src/main.tsx"></script>
</head>
<body style="overscroll-behavior-y: none; height: 100%">
<div id="root" style="overscroll-behavior-y: none; height: 100%"></div>
</body>
</html>