-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexperience.html
More file actions
107 lines (97 loc) · 4.19 KB
/
Copy pathexperience.html
File metadata and controls
107 lines (97 loc) · 4.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Experience - Movie Player</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="movie-player-container">
<div class="movie-header">
<h1>🍿 Experience</h1>
<button class="back-button" onclick="window.location.href='foryou.html#footer'">⬅︎ Back to Main</button>
</div>
<div class="movie-content">
<div class="movie-video">
<img src="work.jpg" alt="Projects Video" class="placeholder-video">
<div class="audio-player">
<button id="playPauseButton">▶</button>
<span id="currentTime">0:00</span> /
<span id="duration">0:00</span>
<div class="progress-bar-container">
<div class="progress-bar" id="progressBar"></div>
</div>
</div>
<audio id="audio" src="about-experience.mp3"></audio>
</div>
<div class="movie-description">
<h2>About My Experience</h2>
<ul>
<li>I've worked as a <strong>technician</strong> at my university's IT Help Desk since December 2024.</li>
<p></p>
<li>I have been a <strong>tutor</strong> for Brandeis' low-income/first-gen students in <strong>Java and Python</strong> since September of 2023.</li>
<p></p>
<li>I have been working as a peer advocate at PARC (the sexual/domestic violence <strong>resource center</strong> on my campus) since January of 2023.</li>
<p></p>
<li>I was a <strong>web developer intern</strong> for Boynton Insurance Group this past summer.</li>
<p></p>
<li>I was an <strong>AI Project Intern at Accenture</strong> last fall.</li>
<p></p>
<li>I was a <strong>MIT Break Through Tech AI Fellow</strong> from May 2024-2025.</li>
<p></p>
<li>I also previously worked as a <strong>web designer</strong> for the UN's Working Group of Girls from 2019-2023.</li>
</ul>
</div>
</div>
</div>
<footer>
<p> 2024 ZANYDA</p>
</footer>
<script>
const audio = document.getElementById('audio');
const playPauseButton = document.getElementById('playPauseButton');
const currentTimeDisplay = document.getElementById('currentTime');
const durationDisplay = document.getElementById('duration');
const progressBar = document.getElementById('progressBar');
const progressBarContainer = document.querySelector('.progress-bar-container');
playPauseButton.addEventListener('click', () => {
if (audio.paused) {
audio.play();
playPauseButton.textContent = '⏸';
} else {
audio.pause();
playPauseButton.textContent = '▶';
}
});
audio.addEventListener('timeupdate', () => {
const currentTime = Math.floor(audio.currentTime);
const duration = Math.floor(audio.duration);
currentTimeDisplay.textContent = formatTime(currentTime);
durationDisplay.textContent = formatTime(duration);
const progressPercent = (currentTime / duration) * 100;
progressBar.style.width = progressPercent + '%';
});
progressBarContainer.addEventListener('click', (event) => {
const containerWidth = progressBarContainer.offsetWidth;
const clickX = event.offsetX;
const duration = audio.duration;
const newTime = (clickX / containerWidth) * duration;
audio.currentTime = newTime;
});
audio.addEventListener('ended', () => {
playPauseButton.textContent = '↺';
playPauseButton.addEventListener('click', () => {
audio.currentTime = 0;
audio.play();
playPauseButton.textContent = '⏸';
}, { once: true });
});
function formatTime(seconds) {
const minutes = Math.floor(seconds / 60);
const secs = seconds % 60;
return `${minutes}:${secs.toString().padStart(2, '0')}`;
}
</script>
</body>
</html>