Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/alert/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default class MyDocument extends Document {
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<link rel="icon" href="/favicon.ico" />
<script src="https://status.pennlabs.org/banner.js" defer />
</Head>
<body>
<Main />
Expand Down
22 changes: 21 additions & 1 deletion frontend/plan/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import Document, { DocumentContext } from "next/document";
import Document, {
DocumentContext,
Html,
Head,
Main,
NextScript,
} from "next/document";
import { ServerStyleSheet } from "styled-components";

export default class MyDocument extends Document {
Expand Down Expand Up @@ -27,4 +33,18 @@ export default class MyDocument extends Document {
sheet.seal();
}
}

render() {
return (
<Html>
<Head>
<script src="https://status.pennlabs.org/banner.js" defer />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}
16 changes: 9 additions & 7 deletions frontend/review/public/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down Expand Up @@ -134,17 +134,19 @@
type="text/css"
/>

<script src="https://status.pennlabs.org/banner.js" defer></script>

<!-- Google Analytics -->
<script type="text/javascript">
(function(i, s, o, g, r, a, m) {
(function (i, s, o, g, r, a, m) {
i["GoogleAnalyticsObject"] = r;
(i[r] =
((i[r] =
i[r] ||
function() {
function () {
(i[r].q = i[r].q || []).push(arguments);
}),
(i[r].l = 1 * new Date());
(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
(i[r].l = 1 * new Date()));
((a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]));
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m);
Expand All @@ -153,7 +155,7 @@
document,
"script",
"https://www.google-analytics.com/analytics.js",
"ga"
"ga",
);

ga("create", "UA-21029575-4", "auto");
Expand Down
Loading