shit
This commit is contained in:
parent
fb97f39a51
commit
0b4f5ab8a9
2 changed files with 6 additions and 3 deletions
|
|
@ -1648,8 +1648,9 @@
|
||||||
</div>
|
</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);">
|
<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
|
<iframe
|
||||||
|
id="help-video-iframe"
|
||||||
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;"
|
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"
|
title="Monochrome Help"
|
||||||
frameborder="0"
|
frameborder="0"
|
||||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||||
|
|
|
||||||
|
|
@ -462,6 +462,10 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||||
|
|
||||||
if (helpBtn && helpModal) {
|
if (helpBtn && helpModal) {
|
||||||
helpBtn.addEventListener('click', () => {
|
helpBtn.addEventListener('click', () => {
|
||||||
|
const iframe = helpModal.querySelector('iframe');
|
||||||
|
if (iframe && iframe.dataset.src) {
|
||||||
|
iframe.src = iframe.dataset.src;
|
||||||
|
}
|
||||||
helpModal.classList.add('active');
|
helpModal.classList.add('active');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -469,9 +473,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||||
helpModal.classList.remove('active');
|
helpModal.classList.remove('active');
|
||||||
const iframe = helpModal.querySelector('iframe');
|
const iframe = helpModal.querySelector('iframe');
|
||||||
if (iframe) {
|
if (iframe) {
|
||||||
const src = iframe.src;
|
|
||||||
iframe.src = '';
|
iframe.src = '';
|
||||||
iframe.src = src;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue