Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
125 lines (122 loc) · 4.07 KB
/
Copy pathindex.html
File metadata and controls
125 lines (122 loc) · 4.07 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!doctype html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>
PRUNplanner: Base and Empire Planner for Prosperous Universe
</title>
<meta
name="description"
content="Free planning tool for Prosperous Universe (PrUn): plan bases and empires, find planets, compare ROI and track burn with FIO. Used by over 6,000 players." />
<link rel="canonical" href="https://prunplanner.org/" />
<meta name="theme-color" content="#030707" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="PRUNplanner" />
<meta
property="og:title"
content="PRUNplanner: Base and Empire Planner for Prosperous Universe" />
<meta
property="og:description"
content="Free planning tool for Prosperous Universe (PrUn): plan bases and empires, find planets, compare ROI and track burn with FIO. Used by over 6,000 players." />
<meta property="og:url" content="https://prunplanner.org/" />
<meta
property="og:image"
content="https://prunplanner.org/images/og/prunplanner.jpg" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta
property="og:image:alt"
content="The PRUNplanner plan editor with the claim: Plan a base before you build it." />
<meta name="twitter:card" content="summary_large_image" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "PRUNplanner",
"alternateName": ["PRUN planner", "PrUn Planner"],
"url": "https://prunplanner.org/"
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "PRUNplanner",
"url": "https://prunplanner.org/",
"description": "Free planning tool for Prosperous Universe (PrUn): plan bases and empires, find planets, compare ROI and track burn with FIO. Used by over 6,000 players.",
"applicationCategory": "GameApplication",
"operatingSystem": "Web",
"isAccessibleForFree": true,
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"inLanguage": [
"en-US",
"de-DE",
"es-ES",
"fr-FR",
"it-IT",
"nl-NL",
"pt-PT",
"ru-RU",
"ja-JP",
"ko-KR",
"zh-CN"
],
"image": "https://prunplanner.org/images/og/prunplanner.jpg",
"sameAs": ["https://github.com/PRUNplanner"]
}
</script>
<!-- The server answers every path with this file. The prerendered
landing page shows only on "/", logged out and in English; else
it stays hidden until the app has mounted fresh over it (a
stored session goes on to /empire, a stored locale re-renders). -->
<script>
(function () {
let skip = location.pathname !== "/";
try {
const user = JSON.parse(
localStorage.getItem("prunplanner_user") || "{}"
);
const locale = user.preferences && user.preferences.locale;
skip ||=
!!(user.accessToken && user.refreshToken) ||
(!!locale && locale !== "en_US");
} catch {}
if (skip)
document.documentElement.classList.add("skip-prerender");
else {
// the hero image, fetched with the HTML; its img is lazy, so
// the hidden page fetches nothing (HomepageTour.vue)
const hero = document.createElement("link");
hero.rel = "preload";
hero.setAttribute("as", "image");
hero.setAttribute("fetchpriority", "high");
hero.setAttribute(
"imagesrcset",
"/images/homepage/plan-640.webp 640w, /images/homepage/plan-1280.webp 1280w, /images/homepage/plan.webp 2880w"
);
hero.setAttribute(
"imagesizes",
"(min-width: 1240px) 1180px, 100vw"
);
document.head.appendChild(hero);
}
})();
</script>
<!-- not laid out: its fonts and lazy images aren't fetched -->
<style>
.skip-prerender #app[data-prerendered] {
display: none;
}
</style>
</head>
<body>
<div id="app"></div>
<script src="/env.js"></script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>