mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
86 lines
2.5 KiB
Plaintext
86 lines
2.5 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<!-- isProduction comes from build time webpack config -->
|
|
<% if (isProduction) { %>
|
|
<!-- ServerType comes from runtime server -->
|
|
{{ if (eq .ServerType "sandbox") }}
|
|
<!-- these scripts are to add google analytics on production sandbox instances -->
|
|
<script
|
|
async
|
|
type="text/javascript"
|
|
src="https://www.googletagmanager.com/gtag/js?id=G-JC3DRNY1GV"
|
|
></script>
|
|
<script type="text/javascript">
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag() {
|
|
dataLayer.push(arguments);
|
|
}
|
|
gtag("js", new Date());
|
|
gtag("config", "G-JC3DRNY1GV");
|
|
</script>
|
|
|
|
<!-- adds pendo client for production sandbox instances -->
|
|
<script>
|
|
(function (apiKey) {
|
|
(function (p, e, n, d, o) {
|
|
var v, w, x, y, z;
|
|
o = p[d] = p[d] || {};
|
|
o._q = o._q || [];
|
|
v = ["initialize", "identify", "updateOptions", "pageLoad", "track"];
|
|
for (w = 0, x = v.length; w < x; ++w)
|
|
(function (m) {
|
|
o[m] =
|
|
o[m] ||
|
|
function () {
|
|
o._q[m === v[0] ? "unshift" : "push"](
|
|
[m].concat([].slice.call(arguments, 0))
|
|
);
|
|
};
|
|
})(v[w]);
|
|
y = e.createElement(n);
|
|
y.async = !0;
|
|
y.src = "https://cdn.pendo.io/agent/static/" + apiKey + "/pendo.js";
|
|
z = e.getElementsByTagName(n)[0];
|
|
z.parentNode.insertBefore(y, z);
|
|
})(window, document, "script", "pendo");
|
|
})("b323499a-2a2e-43eb-5c83-56882bda486f");
|
|
</script>
|
|
{{
|
|
end
|
|
}}
|
|
<% } %>
|
|
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<meta name="robots" content="noindex" />
|
|
|
|
<link
|
|
rel="stylesheet"
|
|
type="text/css"
|
|
href="{{.URLPrefix}}<%= htmlWebpackPlugin.files.css[0] %>"
|
|
/>
|
|
<link rel="shortcut icon" href="{{.URLPrefix}}/assets/favicon.ico" />
|
|
|
|
<title>Fleet</title>
|
|
<script type="text/javascript">
|
|
var urlPrefix = "{{.URLPrefix}}";
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script
|
|
async
|
|
defer
|
|
src="{{.URLPrefix}}<%= htmlWebpackPlugin.files.js[0] %>"
|
|
onload="this.parentElement.removeChild(this)"
|
|
></script>
|
|
<!-- Because iOS hates interactive stuff, we have to kill it with fire -->
|
|
<script>
|
|
document.addEventListener("touchstart", function () {}, false);
|
|
</script>
|
|
<!-- End Apple Hate -->
|
|
</body>
|
|
</html>
|