Skip to content

Commit

Permalink
experimenting with not showing content
Browse files Browse the repository at this point in the history
  • Loading branch information
millerti committed Mar 8, 2024
1 parent d2412a0 commit a310c6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<link rel="stylesheet" href="https://navapbc.github.io/FFS-IncomeReportingToolkit/assets/css/style.css" />
</head>
<body>
<div class="container-lg px-3 my-5 markdown-body">
<div id="primary" class="container-lg px-3 my-5 markdown-body">

{{ content }}

Expand Down
4 changes: 2 additions & 2 deletions assets/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ console.log("Entered main.js!");
document.addEventListener('DOMContentLoaded', (event) => {
console.log("In event handler!");
const secret = getUrlParameter('secret');
if (secret == "hithere") {
if (secret != "hithere") {
console.log("got secret!");
document.title = `Secret: ${secret}`;
document.getElementById('primary').style.display = 'none';
}
});

Expand Down

0 comments on commit a310c6a

Please sign in to comment.