made links relative

the links provided in the HTML are now relative links.
This commit is contained in:
Keep Creating Online
2024-06-19 16:13:04 -04:00
parent b1ab4183c6
commit f5bbfac531
5 changed files with 503 additions and 1802 deletions

View File

@@ -1,14 +0,0 @@
Steps to have a searchable offline directory from this repo:
1. Download, Clone or Fork this Repo. (links won't work as is)
2. Download and install Snap2HTML for your system. (https://github.com/rlv-dan/Snap2HTML)
3. Open Snap2HTML and select the "HOME" directory as your root folder.
4. Rename the Page title from the long "Snapshot of..." to something cool like "Survival Data".
5. Make sure to Enable Linked files.
6. Click "Create Snapshot"
7. Save the HTML page as the index.html located in the repo root.
8. enjoy an offline searchable Survival database.
Good luck!
- PR0M3TH3AN

Binary file not shown.

Before

Width:  |  Height:  |  Size: 233 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

2159
index.html

File diff suppressed because one or more lines are too long

132
styles.css Normal file
View File

@@ -0,0 +1,132 @@
/* General styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #121212;
color: #e0e0e0;
display: flex;
flex-direction: column;
align-items: center;
}
header {
background-color: #1f1f1f;
color: white;
padding: 20px;
text-align: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
width: 100%;
}
header h1 {
margin: 0;
}
nav ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
justify-content: center;
flex-wrap: wrap;
}
nav ul li {
margin: 5px 10px;
}
nav ul li a {
color: white;
text-decoration: none;
padding: 10px 15px;
border-radius: 5px;
transition: background 0.3s;
}
nav ul li a:hover {
background: #007BFF;
}
main {
padding: 20px;
max-width: 800px;
width: 100%;
}
section {
margin-bottom: 10px;
}
h2 {
font-size: 1.2em;
margin: 0;
padding: 10px;
background-color: #1f1f1f;
color: white;
cursor: pointer;
border-bottom: 1px solid #007BFF;
border-radius: 5px;
transition: background 0.3s;
text-align: center;
}
h2:hover {
background-color: #007BFF;
}
ul {
list-style: none;
padding: 0;
display: none; /* Hide the list by default */
margin: 0;
background-color: #2a2a2a;
border-radius: 5px;
overflow: hidden;
text-align: center;
}
ul li {
padding: 10px;
border-bottom: 1px solid #444;
}
ul li:last-child {
border-bottom: none;
}
ul li a {
text-decoration: none;
color: #007BFF;
display: block;
transition: background 0.3s;
}
ul li a:hover {
background: #333;
}
footer {
background-color: #1f1f1f;
color: white;
text-align: center;
padding: 10px 0;
position: fixed;
width: 100%;
bottom: 0;
box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}
/* Responsive design */
@media (max-width: 600px) {
header h1 {
font-size: 1.5em;
}
h2 {
font-size: 1em;
}
nav ul {
flex-direction: column;
align-items: center;
}
}