Skip to content

Commit 1776716

Browse files
committed
add video popup to MMMt project
1 parent 0410ec7 commit 1776716

5 files changed

Lines changed: 35 additions & 0 deletions

File tree

app.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// Video popup functionaliteit voor MMMt project
2+
function openVideoPopup(e) {
3+
e.preventDefault();
4+
document.getElementById('video-popup').style.display = 'flex';
5+
}
6+
7+
function closeVideoPopup() {
8+
document.getElementById('video-popup').style.display = 'none';
9+
}
110
if (document.querySelector('#game .container.noselect')) {
211

312
document.addEventListener('keydown', function(e) {
72.5 MB
Binary file not shown.

img/Project_MMMt.png

1.13 MB
Loading

img/video_icon.svg

Lines changed: 4 additions & 0 deletions
Loading

index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,28 @@ <h2>De STrooperij</h2>
139139
<img src="./img/github.png" alt="GitHub link" class="project-icon">
140140
</a>
141141
</div>
142+
<div class="card">
143+
<a href="https://github.com/2TomL/Mikey-s_Magic_Mixer-tool" target="_blank" rel="noopener">
144+
<img src="./img/Project_MMMt.png" alt="Mikeys MagicMixing-tool">
145+
</a>
146+
<h2>Mikeys MagicMixing-tool</h2>
147+
<p>DJ set generator tool. Upload your tracks, generate a setlist, en download je mix.</p>
148+
<a class="project-link" href="https://github.com/2TomL/Mikey-s-Magic-Mixer-tool" target="_blank" rel="noopener" title="GitHub">
149+
<img src="./img/github.png" alt="GitHub link" class="project-icon">
150+
</a>
151+
<a class="project-link" href="#" title="Bekijk video" onclick="openVideoPopup(event)">
152+
<img src="./img/video_icon.svg" alt="Video link" class="project-icon">
153+
</a>
154+
<div id="video-popup" style="display:none;position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,0.8);z-index:9999;justify-content:center;align-items:center;">
155+
<div style="position:relative;width:80vw;max-width:700px;margin:auto;top:10vh;">
156+
<button onclick="closeVideoPopup()" style="position:absolute;top:-40px;right:0;background:#fff;border:none;padding:8px 16px;font-size:1.2rem;cursor:pointer;z-index:10001;">Sluiten</button>
157+
<video controls autoplay style="width:100%;border-radius:8px;background:#222;">
158+
<source src="./img/Desktop 2025.08.26 - 20.32.04.03.mp4" type="video/mp4">
159+
Je browser ondersteunt geen video.
160+
</video>
161+
</div>
162+
</div>
163+
</div>
142164
<div class="card">
143165
<a href="https://2toml.github.io/DJ_Swordz/" target="_blank" rel="noopener">
144166
<img src="./img/DJ_Swordz.png" alt="DJ Swordz">

0 commit comments

Comments
 (0)