-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject1.html
More file actions
81 lines (73 loc) · 3.73 KB
/
project1.html
File metadata and controls
81 lines (73 loc) · 3.73 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pojects</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="terminal">
<div class="terminal-header">
<span class="title">about.txt</span>
</div>
<div class="terminal-body">
<p class="command">Mac:~ User$ <span class="typing"></span></p>
<p class="response about-text" style="display: none;">
<strong>Project: Lost Connections - Making Impacts Through Hidden Voices</strong><br>
This project was created for the WAI Smithsonian Hackathon 2024 for Booz Allen Hamilton.<br><br>
<em>Goal:</em> To illuminate the interconnectedness of women's achievements by creating a dynamic networking application, <strong>"Smithsonian: Lost Connections"</strong>, to map the profound impact of various contributions to society.<br><br>
<em>Objective:</em> Allow users to explore individuals' contributions by visualizing the connections between artifacts through Smithsonian departments, collections, and artifact types.<br><br>
<em>Data Sources:</em><br>
- Smithsonian Institution Enterprise Data Access Network<br>
- Smithsonian Institution Encoded Archival Description (EAD) XML Metadata<br>
- Wikipedia Science Data<br><br>
<em>My Role:</em> I focused on creating a web crawler that searched through Smithsonian web pages, stored this information in an index, and inserted it into our network map algorithm. This algorithm then generated a visual map of names, artifacts, curators, and Smithsonian departments.<br><br>
</p>
<br>
<a href="index.html" class="terminal-link">Go back</a>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function () {
fetch("images/ai-den.json")
.then(response => response.json())
.then(data => {
if (data.images && data.images.length > 0) {
// Pick a random image from the JSON list
const randomImage = data.images[Math.floor(Math.random() * data.images.length)];
// Apply the random image to the pseudo-element via CSS
const style = document.createElement("style");
style.innerHTML = `
.terminal-body::after {
background: url('${randomImage}') no-repeat center;
background-size: contain;
}
`;
document.head.appendChild(style);
}
})
.catch(error => console.error("Error loading images:", error));
let commandText = "cat smithsonian-hackathon-2024.md"; // The typed command
let typingElement = document.querySelector(".typing");
let aboutTextElement = document.querySelector(".about-text");
let i = 0;
function typeCommand() {
if (i < commandText.length) {
typingElement.innerHTML = commandText.substring(0, i + 1) + '<span class="blinking-cursor">|</span>';
i++;
setTimeout(typeCommand, 100);
} else {
// Remove cursor after typing command
typingElement.innerHTML = commandText;
// Instantly show the about text
setTimeout(() => {
aboutTextElement.style.display = "block";
}, 500);
}
}
typeCommand();
});
</script>
</body>
</html>