draft of field manua

This commit is contained in:
2025-08-29 06:58:56 -04:00
parent d28218de89
commit 4a6b9f922f
33 changed files with 15554 additions and 0 deletions
+411
View File
@@ -0,0 +1,411 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 16px;
scroll-behavior: smooth;
}
body {
font-family: "Courier New", "Monaco", "Menlo", monospace;
font-size: 16px;
line-height: 1.6;
color: #ffffff;
background-color: #000000;
min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Arial", "Helvetica", sans-serif;
font-weight: bold;
margin-bottom: 1rem;
line-height: 1.2;
}
h1 {
font-size: 2.5rem;
color: #00ff00;
text-align: center;
margin-bottom: 2rem;
text-transform: uppercase;
letter-spacing: 2px;
}
h2 {
font-size: 2rem;
color: #0066ff;
border-bottom: 2px solid #0066ff;
padding-bottom: 0.5rem;
margin-top: 2rem;
margin-bottom: 1.5rem;
}
h3 {
font-size: 1.5rem;
color: #00ff00;
margin-top: 1.5rem;
margin-bottom: 1rem;
}
h4 {
font-size: 1.25rem;
color: #ffffff;
margin-top: 1rem;
margin-bottom: 0.75rem;
}
p {
margin-bottom: 1rem;
}
a {
color: #0066ff;
text-decoration: none;
transition: color 0.3s ease;
}
a:hover {
color: #00ff00;
text-decoration: underline;
}
a:visited {
color: #66a3ff;
}
ul, ol {
margin-bottom: 1rem;
padding-left: 2rem;
}
ul li, ol li {
margin-bottom: 0.5rem;
}
code {
background-color: #1a1a1a;
color: #00ff00;
padding: 0.2rem 0.4rem;
border-radius: 3px;
font-family: "Courier New", "Monaco", "Menlo", monospace;
font-size: 0.9rem;
}
pre {
background-color: #1a1a1a;
color: #ffffff;
padding: 1rem;
border-radius: 5px;
overflow-x: auto;
margin-bottom: 1rem;
border-left: 4px solid #00ff00;
}
pre code {
background: none;
padding: 0;
color: inherit;
}
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 1rem;
background-color: #1a1a1a;
}
table th, table td {
padding: 0.75rem;
text-align: left;
border-bottom: 1px solid #333333;
}
table th {
background-color: #333333;
color: #00ff00;
font-weight: bold;
}
table tr:hover {
background-color: #272727;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
.header {
background-color: #000000;
border-bottom: 2px solid #00ff00;
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 100;
}
.header .header-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.header .logo {
display: flex;
align-items: center;
font-size: 1.5rem;
font-weight: bold;
color: #00ff00;
}
.header .logo .omega {
font-size: 2rem;
margin-right: 0.5rem;
}
.header .nav-toggle {
display: none;
background: none;
border: none;
color: #ffffff;
font-size: 1.5rem;
cursor: pointer;
}
.main-layout {
display: flex;
min-height: calc(100vh - 80px);
}
.sidebar {
width: 300px;
background-color: #0d0d0d;
border-right: 1px solid #333333;
padding: 2rem 1rem;
overflow-y: auto;
position: sticky;
top: 80px;
height: calc(100vh - 80px);
}
.sidebar .nav-section {
margin-bottom: 2rem;
}
.sidebar .nav-section h3 {
color: #00ff00;
font-size: 1rem;
margin-bottom: 0.5rem;
text-transform: uppercase;
letter-spacing: 1px;
}
.sidebar .nav-section ul {
list-style: none;
padding: 0;
}
.sidebar .nav-section ul li {
margin-bottom: 0.25rem;
}
.sidebar .nav-section ul li a {
display: block;
padding: 0.5rem;
border-radius: 3px;
transition: background-color 0.3s ease;
}
.sidebar .nav-section ul li a:hover {
background-color: #333333;
text-decoration: none;
}
.sidebar .nav-section ul li a.active {
background-color: #0066ff;
color: #000000;
}
.sidebar .nav-section ul li ul {
margin-left: 1rem;
margin-top: 0.5rem;
}
.sidebar .nav-section ul li ul a {
font-size: 0.9rem;
color: white;
}
.content {
flex: 1;
padding: 2rem;
max-width: calc(100% - 300px);
}
.content .content-header {
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 1px solid #333333;
}
.content .content-header .manual-designation {
color: #00ff00;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
margin-bottom: 0.5rem;
}
.content .content-header .classification {
color: #ffaa00;
font-size: 0.8rem;
text-transform: uppercase;
font-weight: bold;
}
.content .section-nav {
display: flex;
justify-content: space-between;
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid #333333;
}
.content .section-nav .nav-link {
display: flex;
align-items: center;
padding: 0.75rem 1.5rem;
background-color: #1a1a1a;
border: 1px solid #333333;
border-radius: 5px;
transition: all 0.3s ease;
}
.content .section-nav .nav-link:hover {
background-color: #0066ff;
color: #000000;
text-decoration: none;
}
.content .section-nav .nav-link .arrow {
font-size: 1.2rem;
margin: 0 0.5rem;
}
.warning-box {
background-color: rgba(255, 170, 0, 0.1);
border-left: 4px solid #ffaa00;
padding: 1rem;
margin: 1rem 0;
border-radius: 0 5px 5px 0;
}
.warning-box .warning-title {
color: #ffaa00;
font-weight: bold;
margin-bottom: 0.5rem;
text-transform: uppercase;
}
.info-box {
background-color: rgba(0, 102, 255, 0.1);
border-left: 4px solid #0066ff;
padding: 1rem;
margin: 1rem 0;
border-radius: 0 5px 5px 0;
}
.info-box .info-title {
color: #0066ff;
font-weight: bold;
margin-bottom: 0.5rem;
text-transform: uppercase;
}
.success-box {
background-color: rgba(0, 255, 0, 0.1);
border-left: 4px solid #00ff00;
padding: 1rem;
margin: 1rem 0;
border-radius: 0 5px 5px 0;
}
.success-box .success-title {
color: #00ff00;
font-weight: bold;
margin-bottom: 0.5rem;
text-transform: uppercase;
}
.do-dont-list {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
margin: 1rem 0;
}
.do-dont-list .do-list, .do-dont-list .dont-list {
padding: 1rem;
border-radius: 5px;
}
.do-dont-list .do-list h4, .do-dont-list .dont-list h4 {
margin-bottom: 0.5rem;
text-transform: uppercase;
}
.do-dont-list .do-list ul, .do-dont-list .dont-list ul {
margin: 0;
padding-left: 1.5rem;
}
.do-dont-list .do-list {
background-color: rgba(0, 255, 0, 0.1);
border: 1px solid #00ff00;
}
.do-dont-list .do-list h4 {
color: #00ff00;
}
.do-dont-list .dont-list {
background-color: rgba(255, 0, 0, 0.1);
border: 1px solid #ff0000;
}
.do-dont-list .dont-list h4 {
color: #ff0000;
}
.footer {
background-color: #333333;
padding: 2rem 0;
margin-top: 4rem;
text-align: center;
border-top: 2px solid #00ff00;
}
.footer .footer-content {
color: white;
font-size: 0.9rem;
}
.footer .footer-content .organization {
color: #00ff00;
font-weight: bold;
}
@media (max-width: 768px) {
.header .nav-toggle {
display: block;
}
.main-layout {
flex-direction: column;
}
.sidebar {
width: 100%;
position: static;
height: auto;
display: none;
}
.sidebar.active {
display: block;
}
.content {
max-width: 100%;
padding: 1rem;
}
.do-dont-list {
grid-template-columns: 1fr;
}
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.5rem;
}
}
@media print {
body {
background: white;
color: black;
}
.header, .sidebar, .footer, .section-nav {
display: none;
}
.content {
max-width: 100%;
padding: 0;
}
a {
color: black;
text-decoration: underline;
}
}
/*# sourceMappingURL=main.css.map */
File diff suppressed because one or more lines are too long
+166
View File
@@ -0,0 +1,166 @@
// Field Guide for Subversives - Main JavaScript
document.addEventListener('DOMContentLoaded', function() {
// Mobile navigation toggle
const navToggle = document.getElementById('nav-toggle');
const sidebar = document.getElementById('sidebar');
if (navToggle && sidebar) {
navToggle.addEventListener('click', function() {
sidebar.classList.toggle('active');
});
}
// Smooth scrolling for anchor links
const anchorLinks = document.querySelectorAll('a[href^="#"]');
anchorLinks.forEach(link => {
link.addEventListener('click', function(e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
// Add security warning for external links
const externalLinks = document.querySelectorAll('a[href^="http"]:not([href*="' + window.location.hostname + '"])');
externalLinks.forEach(link => {
link.addEventListener('click', function(e) {
if (!confirm('You are about to visit an external site. Ensure you are using secure browsing practices. Continue?')) {
e.preventDefault();
}
});
// Add visual indicator for external links
link.setAttribute('title', 'External link - opens in new tab');
link.setAttribute('target', '_blank');
link.setAttribute('rel', 'noopener noreferrer');
});
// Keyboard navigation
document.addEventListener('keydown', function(e) {
// Alt + Left Arrow: Previous page
if (e.altKey && e.key === 'ArrowLeft') {
const prevLink = document.querySelector('.section-nav .nav-link:first-child');
if (prevLink && prevLink.href) {
window.location.href = prevLink.href;
}
}
// Alt + Right Arrow: Next page
if (e.altKey && e.key === 'ArrowRight') {
const nextLink = document.querySelector('.section-nav .nav-link:last-child');
if (nextLink && nextLink.href) {
window.location.href = nextLink.href;
}
}
// Escape: Close mobile menu
if (e.key === 'Escape' && sidebar && sidebar.classList.contains('active')) {
sidebar.classList.remove('active');
}
});
// Print functionality
function addPrintButton() {
const contentHeader = document.querySelector('.content-header');
if (contentHeader) {
const printButton = document.createElement('button');
printButton.textContent = 'Print Section';
printButton.className = 'print-button';
printButton.style.cssText = `
background: #333;
color: #00ff00;
border: 1px solid #00ff00;
padding: 0.5rem 1rem;
border-radius: 3px;
cursor: pointer;
font-family: inherit;
margin-top: 1rem;
`;
printButton.addEventListener('click', function() {
window.print();
});
contentHeader.appendChild(printButton);
}
}
addPrintButton();
// Security reminder
function showSecurityReminder() {
const reminder = document.createElement('div');
reminder.style.cssText = `
position: fixed;
bottom: 20px;
right: 20px;
background: rgba(255, 170, 0, 0.9);
color: #000;
padding: 1rem;
border-radius: 5px;
max-width: 300px;
font-size: 0.9rem;
z-index: 1000;
display: none;
`;
reminder.innerHTML = `
<strong>Security Reminder:</strong> Ensure you're using Tails OS or a secure browser when accessing this guide.
<button onclick="this.parentElement.style.display='none'" style="float: right; background: none; border: none; font-size: 1.2rem; cursor: pointer;">×</button>
`;
document.body.appendChild(reminder);
// Show reminder after 30 seconds
setTimeout(() => {
reminder.style.display = 'block';
}, 30000);
// Auto-hide after 10 seconds
setTimeout(() => {
reminder.style.display = 'none';
}, 40000);
}
// Only show security reminder on first visit
if (!localStorage.getItem('security_reminder_shown')) {
showSecurityReminder();
localStorage.setItem('security_reminder_shown', 'true');
}
// Add copy-to-clipboard functionality for code blocks
const codeBlocks = document.querySelectorAll('pre code');
codeBlocks.forEach(block => {
const button = document.createElement('button');
button.textContent = 'Copy';
button.className = 'copy-button';
button.style.cssText = `
position: absolute;
top: 0.5rem;
right: 0.5rem;
background: #333;
color: #00ff00;
border: 1px solid #00ff00;
padding: 0.25rem 0.5rem;
border-radius: 3px;
cursor: pointer;
font-size: 0.8rem;
`;
const pre = block.parentElement;
pre.style.position = 'relative';
pre.appendChild(button);
button.addEventListener('click', function() {
navigator.clipboard.writeText(block.textContent).then(() => {
button.textContent = 'Copied!';
setTimeout(() => {
button.textContent = 'Copy';
}, 2000);
});
});
});
});