This commit is contained in:
Samidy 2026-04-24 00:30:45 +03:00
parent fb97f39a51
commit 0b4f5ab8a9
2 changed files with 6 additions and 3 deletions

View file

@ -1648,8 +1648,9 @@
</div>
<div id="help-video-container" style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; background: #000; border-radius: var(--radius);">
<iframe
id="help-video-iframe"
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;"
src="https://m.samidy.xyz/monochrome-help.mp4"
data-src="https://m.samidy.xyz/monochrome-help.mp4"
title="Monochrome Help"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"

View file

@ -462,6 +462,10 @@ document.addEventListener('DOMContentLoaded', async () => {
if (helpBtn && helpModal) {
helpBtn.addEventListener('click', () => {
const iframe = helpModal.querySelector('iframe');
if (iframe && iframe.dataset.src) {
iframe.src = iframe.dataset.src;
}
helpModal.classList.add('active');
});
@ -469,9 +473,7 @@ document.addEventListener('DOMContentLoaded', async () => {
helpModal.classList.remove('active');
const iframe = helpModal.querySelector('iframe');
if (iframe) {
const src = iframe.src;
iframe.src = '';
iframe.src = src;
}
};