Skip to content

Commit

Permalink
Merge pull request #34 from OpenUpSA/feature/add-hotjar
Browse files Browse the repository at this point in the history
Feature/add hotjar
  • Loading branch information
paulmwatson authored Feb 19, 2025
2 parents 0c87332 + 5664df5 commit dd21109
Show file tree
Hide file tree
Showing 8 changed files with 166 additions and 80 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "1.0.0",
"license": "MIT",
"scripts": {
"dev": "parcel src/index.html src/attendance/index.html src/overview/index.html && npm run copy",
"build": "parcel build src/index.html src/attendance/index.html src/overview/index.html && npm run copy",
"dev": "parcel src/index.html src/attendance/index.html src/bill-tracker/index.html src/overview/index.html && npm run copy",
"build": "parcel build src/index.html src/attendance/index.html src/bill-tracker/index.html src/overview/index.html && npm run copy",
"deploy": "netlify deploy",
"copy": "cp -r src/data dist && cp -r src/assets dist"
},
Expand Down
61 changes: 36 additions & 25 deletions src/attendance/index.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-7R2ZRGPPBV"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "G-7R2ZRGPPBV");
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<link rel="icon" href="../assets/favicon.ico" type="image/x-icon" />
<title>Attendance Tracker</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="./index.js"></script>
</body>
</html>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7R2ZRGPPBV"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "G-7R2ZRGPPBV");
</script>
<!-- Hotjar Tracking Code -->
<script>
(function (h, o, t, j, a, r) {
h.hj = h.hj || function () { (h.hj.q = h.hj.q || []).push(arguments) };
h._hjSettings = { hjid: 5310183, hjsv: 6 };
a = o.getElementsByTagName('head')[0];
r = o.createElement('script'); r.async = 1;
r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
a.appendChild(r);
})(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<link rel="icon" href="../assets/favicon.ico" type="image/x-icon" />
<title>Attendance Tracker</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="./index.js"></script>
</body>

</html>
39 changes: 39 additions & 0 deletions src/bill-tracker/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="en">

<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7R2ZRGPPBV"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "G-7R2ZRGPPBV");
</script>
<!-- Hotjar Tracking Code -->
<script>
(function (h, o, t, j, a, r) {
h.hj = h.hj || function () { (h.hj.q = h.hj.q || []).push(arguments) };
h._hjSettings = { hjid: 5310183, hjsv: 6 };
a = o.getElementsByTagName('head')[0];
r = o.createElement('script'); r.async = 1;
r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
a.appendChild(r);
})(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<link rel="icon" href="../assets/favicon.ico" type="image/x-icon" />
<title>Bill Tracker</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="./index.js"></script>
</body>

</html>
14 changes: 14 additions & 0 deletions src/bill-tracker/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from "react";
import { createRoot } from "react-dom/client";

import BillTracker from "../components/billtracker";

import "../app.scss";

function App() {
return <BillTracker />;
}

const container = document.getElementById("root");
const root = createRoot(container);
root.render(<App />);
2 changes: 1 addition & 1 deletion src/components/pmtabs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function PMTabs(props) {
</a>
<a
className={`tab ${active === "bill-tracker" ? "active" : ""}`}
href="/"
href="/bill-tracker"
>
Bill Tracker
</a>
Expand Down
61 changes: 36 additions & 25 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-7R2ZRGPPBV"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "G-7R2ZRGPPBV");
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<link rel="icon" href="./assets/favicon.ico" type="image/x-icon" />
<title>Bill Tracker</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="./index.js"></script>
</body>
</html>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7R2ZRGPPBV"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "G-7R2ZRGPPBV");
</script>
<!-- Hotjar Tracking Code -->
<script>
(function (h, o, t, j, a, r) {
h.hj = h.hj || function () { (h.hj.q = h.hj.q || []).push(arguments) };
h._hjSettings = { hjid: 5310183, hjsv: 6 };
a = o.getElementsByTagName('head')[0];
r = o.createElement('script'); r.async = 1;
r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
a.appendChild(r);
})(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<link rel="icon" href="./assets/favicon.ico" type="image/x-icon" />
<title>Bill Tracker</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="./index.js"></script>
</body>

</html>
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';
import { createRoot } from 'react-dom/client';

import BillTracker from './components/billtracker';
import Overview from './components/overview';

import './app.scss';

function App() {
return (
<BillTracker />
<Overview />
);
}

Expand Down
61 changes: 36 additions & 25 deletions src/overview/index.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-7R2ZRGPPBV"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "G-7R2ZRGPPBV");
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<link rel="icon" href="../assets/favicon.ico" type="image/x-icon" />
<title>Performace Overview</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="./index.js"></script>
</body>
</html>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7R2ZRGPPBV"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "G-7R2ZRGPPBV");
</script>
<!-- Hotjar Tracking Code -->
<script>
(function (h, o, t, j, a, r) {
h.hj = h.hj || function () { (h.hj.q = h.hj.q || []).push(arguments) };
h._hjSettings = { hjid: 5310183, hjsv: 6 };
a = o.getElementsByTagName('head')[0];
r = o.createElement('script'); r.async = 1;
r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
a.appendChild(r);
})(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex" />
<link rel="icon" href="../assets/favicon.ico" type="image/x-icon" />
<title>Performace Overview</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="./index.js"></script>
</body>

</html>

0 comments on commit dd21109

Please sign in to comment.