Skip to content

Commit

Permalink
update, scripts, skip to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
harrymkt committed Mar 13, 2024
1 parent de30533 commit 2664ba5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion community_policy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</head>
<body>
<script>navstart();</script>
<h1>community policy</h1>
<h1 id="mainc">community policy</h1>
<p>If you are in my communities, please follow the below rules.</p>

<h2>general rules</h2>
Expand Down
2 changes: 1 addition & 1 deletion scripts/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function addfooter()
// Assuming "fdd" is a reference to an existing DOM object
var fdd = document.createElement("div");
fdd.className = "beforefooter";

fdd.id="footersection";
// "come to me" section
var comeToMeHeading = document.createElement("h1");
comeToMeHeading.textContent = "come to me";
Expand Down
6 changes: 5 additions & 1 deletion scripts/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ var skipToNavigationLink = document.createElement("a");
skipToNavigationLink.href = "#navigation";
skipToNavigationLink.className = "skip-link";
skipToNavigationLink.textContent = "skip to navigation";

var skipfooterLink = document.createElement("a");
skipfooterLink.href = "#footersection";
skipfooterLink.className = "skip-link";
skipfooterLink.textContent = "skip to footer";
// Append elements to the document body or any other target element
document.body.appendChild(h1Element);
document.body.appendChild(skipToMainContentLink);
document.body.appendChild(skipToNavigationLink);
document.body.appendChild(skipfooterLink);
// Create p element with id "fulldate"
var fulldateElement = document.createElement("p");
fulldateElement.id = "fulldate";
Expand Down

0 comments on commit 2664ba5

Please sign in to comment.