Skip to content

Commit

Permalink
experimenting with some security
Browse files Browse the repository at this point in the history
  • Loading branch information
millerti committed Mar 8, 2024
1 parent 02c2a9d commit 1363c59
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="FFS-IncomeReportingToolkit" />
<meta name="robots" content="noindex">
<script src="https://navapbc.github.io/FFS-IncomeReportingToolkit/assets/scripts/main.js"></script>
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebSite","headline":"FFS-IncomeReportingToolkit","name":"FFS-IncomeReportingToolkit","url":"https://navapbc.github.io/FFS-IncomeReportingToolkit/"}</script>

Expand Down
10 changes: 10 additions & 0 deletions assets/scripts/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
console.log("Entered main.js!");

document.addEventListener('DOMContentLoaded', (event) => {
console.log("In event handler!");
const secret = getURLParameter('secret');
if (secret == "hithere") {
console.log("got secret!");
document.title = `Secret: ${secret}`;
}
});

0 comments on commit 1363c59

Please sign in to comment.