-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
400 lines (346 loc) · 12.1 KB
/
index.html
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
<html><head><base href="https://artifact-magic-tech.com/" />
<title>Artifact Magic Tech - Advanced Artifact Analysis System</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;700&family=Orbitron:wght@400;700&display=swap');
:root {
--primary-color: #00bcd4;
--secondary-color: #d81d5b;
--background-color: #0a192f;
--surface-color: #172a45;
--on-surface-color: #a8b2d1;
--on-background-color: #e6f1ff;
--card-shadow: 0 4px 20px rgba(0, 188, 212, 0.3);
}
body {
font-family: 'Roboto Mono', monospace;
line-height: 1.6;
color: var(--on-background-color);
background-color: var(--background-color);
margin: 0;
padding: 0;
min-height: 100vh;
overflow-x: hidden;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
background-color: var(--surface-color);
color: var(--on-surface-color);
text-align: center;
padding: 2rem 0;
margin-bottom: 2rem;
box-shadow: var(--card-shadow);
border-bottom: 2px solid var(--primary-color);
position: relative;
overflow: hidden;
}
header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
animation: scan 3s linear infinite;
}
@keyframes scan {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
h1 {
margin: 0;
font-size: 2.5rem;
font-weight: 700;
color: var(--primary-color);
font-family: 'Orbitron', sans-serif;
text-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}
header p {
margin: 0.5rem 0 0;
font-weight: 300;
font-size: 1rem;
}
.content {
display: flex;
justify-content: space-between;
gap: 2rem;
}
.choices, .results {
background-color: var(--surface-color);
border-radius: 8px;
padding: 1.5rem;
box-shadow: var(--card-shadow);
border: 1px solid rgba(0, 188, 212, 0.3);
}
.choices {
flex: 1;
}
.results {
flex: 2;
}
h2 {
color: var(--secondary-color);
margin-top: 0;
font-weight: 700;
font-family: 'Orbitron', sans-serif;
}
.choice-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
gap: 10px;
margin-top: 1rem;
}
.choice-item {
background-color: rgba(0, 188, 212, 0.1);
color: var(--on-background-color);
border: 1px solid var(--primary-color);
padding: 10px;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease;
font-family: 'Roboto Mono', monospace;
font-weight: 400;
font-size: 0.9rem;
}
.choice-item:hover {
background-color: rgba(0, 188, 212, 0.3);
transform: translateY(-2px);
box-shadow: 0 2px 10px rgba(0, 188, 212, 0.4);
}
.choice-item.selected {
background-color: var(--primary-color);
color: var(--surface-color);
box-shadow: 0 0 15px rgba(0, 188, 212, 0.6);
}
.artifact {
background-color: rgba(23, 42, 69, 0.8);
border-radius: 4px;
padding: 1rem;
margin-bottom: 1rem;
transition: all 0.3s ease;
border: 1px solid var(--secondary-color);
position: relative;
overflow: hidden;
}
.artifact::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, transparent 49%, var(--secondary-color) 49%, var(--secondary-color) 51%, transparent 51%);
background-size: 10px 10px;
opacity: 0.1;
}
.artifact:hover {
box-shadow: 0 0 20px rgba(255, 64, 129, 0.3);
transform: translateY(-2px);
}
.artifact h3 {
margin-top: 0;
color: var(--secondary-color);
font-weight: 700;
font-family: 'Orbitron', sans-serif;
}
.artifact p {
margin-bottom: 0.5rem;
font-size: 0.9rem;
}
.loading {
text-align: center;
font-style: italic;
color: var(--on-surface-color);
}
.export-btn {
display: block;
width: 100%;
padding: 12px;
background-color: var(--primary-color);
color: var(--surface-color);
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
margin-top: 1rem;
transition: all 0.3s ease;
font-family: 'Roboto Mono', monospace;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
box-shadow: 0 4px 10px rgba(0, 188, 212, 0.3);
}
.export-btn:hover {
background-color: #00d8f0;
box-shadow: 0 6px 15px rgba(0, 188, 212, 0.5);
transform: translateY(-2px);
}
.export-btn:disabled {
background-color: #37474f;
color: #607d8b;
cursor: not-allowed;
box-shadow: none;
}
@media (max-width: 768px) {
.content {
flex-direction: column;
}
.choices, .results {
width: 100%;
}
}
/* Matrix rain effect */
.matrix-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.05;
}
</style>
</head>
<body>
<canvas class="matrix-bg" id="matrixCanvas"></canvas>
<header>
<div class="container">
<h1>Artifact Magic Tech</h1>
<p>Advanced Artifact System</p>
</div>
</header>
<div class="container">
<div class="content">
<div class="choices">
<h2>Guideline Selection Matrix</h2>
<p>Select the Area or individual Guidelines for your event:</p>
<div class="choice-grid" id="choiceGrid"></div>
</div>
<div class="results">
<button id="exportBtn" class="export-btn" disabled>Export Data to Excel</button>
<br><h2>Associated Artifacts</h2>
<div id="artifactList"></div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.17.0/xlsx.full.min.js"></script>
<script>
const choices = [
"ORG", "PSB", "ACCT", "AMR", "RDM",
"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"
];
const artifacts = [
{ name: "01 - Program Summary Data", description: "For each program, provide the following in one Excel file:<br> - Integrated Master Plan (IMP) on Contract? (Yes / No) <br>- # of IMP Codes - Freeze Period (i.e. 60 days) <br>- Number of Work Packages (WP) <br>- Number of Control Accounts (CA)", elements: ["3", "8", "9", "10", "27", "29", "ORG", "PSB", "AMR", "RDM"]},
{ name: "02 - Accounting Fiscal Calendar", description: "Fiscal Calendar Used (include all accounting periods from beginning of program until program completion)", elements: ["3", "8", "9", "10", "27", "29", "ORG", "PSB", "AMR", "RDM"]},
{ name: "03 - EVM System Description", description: "System Descriptions, corporate operating instructions, standard operating procedures, and program unique directives/procedures. (Include the latest approved versions)", elements: ["1", "3", "4", "6", "7", "10", "12", "14", "21", "23", "27", "28", "29", "ORG", "PSB", "ACCT", "AMR", "RDM"]},
{ name: "04 - Contract Statement of Work", description: "Contract Statement of Work", elements: ["1", "6", "12", "ORG", "PSB"]},
{ name: "05 - Contract Work Breakdown Structure Dictionary", description: "Contract Work Breakdown Structure Dictionary. Include reference ID to the SOW.", elements: ["1", "12", "ORG", "PSB"]},
{ name: "06 - Contractual Documents", description: "Initial contract, and contract modifications since program inception, e.g., contract modification, letter to proceed from contracts office or legal office, not-to-exceed letter, change order, engineering change order, delivery order, basic ordering agreement, etc.<br>- Comprehensive list by date, dollar value, funding and changes to the contract target cost. <br>- Electronic copies of all contract mods for the last 12 months.", elements: ["1", "2", "6", "14", "20", "27", "28", "31", "ORG", "PSB", "AMR", "RDM"]},
{ name: "Quantum Superposition Lens", description: "View and manipulate alternate timelines", elements: ["Time", "Knowledge", "Creation"] }
];
let relevantArtifacts = [];
function initializeChoices() {
const choiceGrid = document.getElementById('choiceGrid');
choices.forEach(choice => {
const button = document.createElement('button');
button.textContent = choice;
button.classList.add('choice-item');
button.addEventListener('click', () => toggleChoice(button));
choiceGrid.appendChild(button);
});
}
function toggleChoice(button) {
button.classList.toggle('selected');
updateArtifacts();
}
function updateArtifacts() {
const selectedChoices = Array.from(document.querySelectorAll('.choice-item.selected')).map(btn => btn.textContent);
const artifactList = document.getElementById('artifactList');
const exportBtn = document.getElementById('exportBtn');
artifactList.innerHTML = '<p class="loading">Analyzing artifact combinations...</p>';
exportBtn.disabled = true;
setTimeout(() => {
relevantArtifacts = artifacts.filter(artifact =>
selectedChoices.some(choice => artifact.elements.includes(choice))
);
if (relevantArtifacts.length === 0) {
artifactList.innerHTML = '<p>No artifacts detected in current quantum state. Adjust Guideline selection for further analysis.</p>';
exportBtn.disabled = true;
} else {
artifactList.innerHTML = relevantArtifacts.map(artifact => `
<div class="artifact">
<h3>${artifact.name}</h3>
<p>${artifact.description}</p>
<p><strong>Relevant Guidelines and Areas:</strong> ${artifact.elements.join(', ')}</p>
</div>
`).join('');
exportBtn.disabled = false;
}
}, 800);
}
function exportToExcel() {
const selectedChoices = Array.from(document.querySelectorAll('.choice-item.selected')).map(btn => btn.textContent);
const workbook = XLSX.utils.book_new();
// Create a worksheet for selected choices
const choicesWS = XLSX.utils.aoa_to_sheet([['Selected Guidelines'], ...selectedChoices.map(choice => [choice])]);
XLSX.utils.book_append_sheet(workbook, choicesWS, 'Guidelines');
// Create a worksheet for artifacts
const artifactsData = [
['Artifact Designation', 'Functional Description', 'Applicable Guidelines']
].concat(relevantArtifacts.map(artifact => [
artifact.name,
artifact.description,
artifact.elements.join(', ')
]));
const artifactsWS = XLSX.utils.aoa_to_sheet(artifactsData);
XLSX.utils.book_append_sheet(workbook, artifactsWS, 'Analyzed Artifacts');
// Generate the Excel file
XLSX.writeFile(workbook, 'ArtifactMagic_Analysis.xlsx');
}
initializeChoices();
document.getElementById('exportBtn').addEventListener('click', exportToExcel);
// Matrix rain effect
const canvas = document.getElementById('matrixCanvas');
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@#$%^&*()_+[]{}|;:,.<>?';
const fontSize = 10;
const columns = canvas.width / fontSize;
const drops = [];
for (let i = 0; i < columns; i++) {
drops[i] = 1;
}
function drawMatrix() {
ctx.fillStyle = 'rgba(10, 25, 47, 0.05)';
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = '#0f0';
ctx.font = fontSize + 'px monospace';
for (let i = 0; i < drops.length; i++) {
const text = characters.charAt(Math.floor(Math.random() * characters.length));
ctx.fillText(text, i * fontSize,drops[i] * fontSize);
if (drops[i] * fontSize > canvas.height && Math.random() > 0.975) {
drops[i] = 0;
}
drops[i]++;
}
}
setInterval(drawMatrix, 50);
window.addEventListener('resize', () => {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
});
</script>
</body></html>