-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy-path.html
More file actions
142 lines (127 loc) · 7.79 KB
/
Copy pathmy-path.html
File metadata and controls
142 lines (127 loc) · 7.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>My Cryptographer's Path — The Cipher Museum</title>
<meta name="description" content="Track your progress through the Cipher Museum learning path. View earned badges, quiz scores, and your journey through each hall.">
<link rel="stylesheet" href="css/museum.css">
<style>
.path-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.5rem;margin-top:2rem}
.path-card{background:var(--s2);border:1px solid var(--gold-b);border-radius:var(--rl);padding:2rem;text-align:center;transition:all var(--trs)}
.path-card:hover{border-color:var(--gold-dim);transform:translateY(-2px)}
.path-card.passed{border-color:var(--gold);background:rgba(201,168,76,.06)}
.badge-svg{margin:0 auto 1rem;display:block}
.card-hall{font-family:var(--fm);font-size:.6rem;letter-spacing:.15em;color:var(--tx3);text-transform:uppercase;margin-bottom:.5rem}
.card-name{font-family:var(--fd);font-size:1.1rem;color:var(--tx);margin-bottom:.75rem}
.card-status{font-family:var(--fm);font-size:.65rem;letter-spacing:.1em}
.card-status.done{color:var(--gold)}
.card-status.pending{color:var(--tx3)}
.card-link{display:inline-block;margin-top:.75rem;font-family:var(--fm);font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-dim);text-decoration:none;border-bottom:1px solid transparent;transition:all var(--trs)}
.card-link:hover{color:var(--gold);border-color:var(--gold-dim)}
.path-summary{display:flex;gap:2rem;flex-wrap:wrap;margin-top:1.5rem;justify-content:center}
.summary-stat{text-align:center}
.stat-num{font-family:var(--fd);font-size:2.5rem;color:var(--gold);display:block}
.stat-label{font-family:var(--fm);font-size:.6rem;letter-spacing:.15em;color:var(--tx3);text-transform:uppercase}
.reset-btn{margin-top:3rem;font-family:var(--fm);font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;color:var(--tx3);background:none;border:1px solid var(--s5);padding:.5rem 1.2rem;border-radius:var(--r);cursor:pointer;transition:all var(--trs)}
.reset-btn:hover{border-color:#c0392b;color:#e74c3c}
@media(max-width:600px){.path-grid{grid-template-columns:1fr}.path-summary{gap:1rem}}
</style>
</head>
<body>
<a class="skip-link" href="#main-content">Skip to main content</a>
<nav class="museum-nav" aria-label="Primary">
<div class="nav-inner">
<a href="index.html" class="nav-logo">
<svg class="nav-logo-icon" viewBox="0 0 32 32" fill="none"><circle cx="16" cy="16" r="14" stroke="currentColor" stroke-width="1.5"/><circle cx="16" cy="16" r="8" stroke="currentColor" stroke-width="1"/><circle cx="16" cy="16" r="2" fill="currentColor"/><line x1="16" y1="2" x2="16" y2="6" stroke="currentColor" stroke-width="1.5"/><line x1="16" y1="26" x2="16" y2="30" stroke="currentColor" stroke-width="1.5"/><line x1="2" y1="16" x2="6" y2="16" stroke="currentColor" stroke-width="1.5"/><line x1="26" y1="16" x2="30" y2="16" stroke="currentColor" stroke-width="1.5"/></svg>
<span class="nav-logo-text">The Cipher Museum</span>
</a>
<ul class="nav-links">
<li><a href="museum-map.html">Explore</a></li>
<li><a href="timeline.html">Timeline</a></li>
<li><a href="learn.html">Learn</a></li>
<li><a href="cipher-corpus.html">Cipher Corpus</a></li>
<li><a href="cryptanalysis.html">Cryptanalysis</a></li>
<li><a href="challenges.html">Challenges</a></li>
<li><a href="lab/workbench.html">Lab</a></li>
<li><a href="search.html">Search</a></li>
</ul>
</div>
</nav>
<section class="page-hero">
<p class="hero-sub">Learning Mode</p>
<h1>My Cryptographer's Path</h1>
<p class="hero-intro">Track your journey through the Cipher Museum. Complete each hall's quiz to earn its badge.</p>
</section>
<main id="main-content" tabindex="-1" style="max-width:900px;margin:0 auto;padding:0 2rem 4rem">
<div class="path-summary" id="summary"></div>
<div class="path-grid" id="pathGrid"></div>
<div style="text-align:center">
<button class="reset-btn" id="resetBtn">Reset All Progress</button>
</div>
</main>
<footer></footer>
<script src="js/nav.js" defer></script>
<script>
(function(){
var HALLS = [
{id:'ancient', label:'Hall I', name:'World Origins of Cryptography', href:'halls/ancient.html', icon:'𓀂'},
{id:'substitution', label:'Hall II', name:'Classical Substitution', href:'halls/substitution.html', icon:'🔤'},
{id:'polyalphabetic',label:'Hall III',name:'Polyalphabetic', href:'halls/polyalphabetic.html', icon:'🔑'},
{id:'transposition',label:'Hall IV', name:'Transposition', href:'halls/transposition.html', icon:'⟺'},
{id:'military', label:'Hall V', name:'Military & Spy', href:'halls/military.html', icon:'🎖'},
{id:'civil-war', label:'CW', name:'Civil War Gallery', href:'halls/civil-war.html', icon:'⚔'},
{id:'machines', label:'Hall VII', name:'Mechanical Machines', href:'halls/machines.html', icon:'⚙'},
{id:'puzzle', label:'Hall VIII', name:'Puzzle Ciphers', href:'halls/puzzle.html', icon:'🧩'},
{id:'unbreakable', label:'Final', name:'Unbreakable Ciphers', href:'halls/unbreakable.html', icon:'🔒'},
{id:'codebreakers', label:'⚜', name:'Hall of Codebreakers', href:'halls/codebreakers.html', icon:'🏛'},
{id:'foundations', label:'Annex', name:'Hall of Foundations', href:'hall-of-foundations/index.html', icon:'𝔽'}
];
function getPassed(){
try{return JSON.parse(localStorage.getItem('ciphermuseum.path.passed'))||[];}
catch(e){return [];}
}
function render(){
var passed = getPassed();
var total = HALLS.length;
var done = passed.length;
/* Summary */
document.getElementById('summary').innerHTML =
'<div class="summary-stat"><span class="stat-num">' + done + ' / ' + total + '</span><span class="stat-label">Halls Completed</span></div>' +
'<div class="summary-stat"><span class="stat-num">' + Math.round((done/total)*100) + '%</span><span class="stat-label">Progress</span></div>' +
'<div class="summary-stat"><span class="stat-num">' + done + '</span><span class="stat-label">Badges Earned</span></div>';
/* Grid */
var grid = document.getElementById('pathGrid');
grid.innerHTML = '';
HALLS.forEach(function(h){
var isPassed = passed.indexOf(h.id) !== -1;
var card = document.createElement('div');
card.className = 'path-card' + (isPassed ? ' passed' : '');
var badgeColor = isPassed ? 'var(--gold)' : 'var(--s5)';
var fillColor = isPassed ? 'var(--gold-glow)' : 'none';
card.innerHTML =
'<svg class="badge-svg" width="72" height="72" viewBox="0 0 80 80">' +
'<circle cx="40" cy="40" r="36" fill="none" stroke="' + badgeColor + '" stroke-width="2"/>' +
'<circle cx="40" cy="40" r="28" fill="' + fillColor + '" stroke="' + (isPassed?'var(--gold-dim)':'var(--s5)') + '" stroke-width="1"/>' +
'<text x="40" y="44" text-anchor="middle" font-size="22">' + h.icon + '</text>' +
'</svg>' +
'<div class="card-hall">' + h.label + '</div>' +
'<div class="card-name">' + h.name + '</div>' +
'<div class="card-status ' + (isPassed?'done':'pending') + '">' + (isPassed ? '✓ Badge Earned' : '○ Not Yet Completed') + '</div>' +
'<a class="card-link" href="' + h.href + '">' + (isPassed ? 'Revisit Hall' : 'Visit Hall') + '</a>';
grid.appendChild(card);
});
}
document.getElementById('resetBtn').addEventListener('click', function(){
if(confirm('Reset all learning path progress? This cannot be undone.')){
localStorage.removeItem('ciphermuseum.path.passed');
localStorage.removeItem('ciphermuseum.path.active');
render();
}
});
render();
})();
</script>
<script src="js/lightbox.js"></script>
</body>
</html>