-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4d1428
commit 885e366
Showing
5 changed files
with
78 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Trail Sense</title> | ||
<link rel="shortcut icon" href="logo.png" type="image/x-icon"> | ||
<link rel="stylesheet" href="pluto.css" /> | ||
<link rel="stylesheet" href="style.css" /> | ||
</head> | ||
|
||
<body> | ||
<section id="hero"> | ||
<div class="grid"> | ||
<div id="titlebar" class="navbar"> | ||
<a href="index.html">HOME</a> | ||
<a href="https://github.com/kylecorry31/Trail-Sense/wiki/Frequently-Asked-Questions-(FAQ)" | ||
target="_blank">FAQ</a> | ||
<a href="index.html/#contact">CONTACT</a> | ||
<a href="https://github.com/kylecorry31/Trail-Sense" target="_blank">GITHUB</a> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section id="guide-content"> | ||
<div class="card-round"> | ||
<section id="guide"> | ||
<div class="container"> | ||
<h2>Survival Guide</h2> | ||
<div id="guide-list"></div> | ||
</div> | ||
</section> | ||
</div> | ||
</section> | ||
|
||
<script src="survival_guides.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const guides = [ | ||
"survival_chapter_overview", | ||
"survival_chapter_medical", | ||
"survival_chapter_water", | ||
"survival_chapter_food", | ||
"survival_chapter_fire", | ||
"survival_chapter_shelter_and_clothing", | ||
"survival_chapter_navigation", | ||
"survival_chapter_weather", | ||
"survival_chapter_crafting" | ||
]; | ||
|
||
// Populate the guide list | ||
const guideList = document.querySelector("#guide-list"); | ||
for (const guide of guides) { | ||
const guideItem = document.createElement("a"); | ||
guideItem.innerText = guide | ||
.split("_") | ||
.slice(2) | ||
.map((w) => w[0].toUpperCase() + w.slice(1)) | ||
.join(" "); | ||
guideItem.classList.add("guide-list-item"); | ||
guideItem.href = `guide?id=${guide}`; | ||
guideList.appendChild(guideItem); | ||
} |