selfhost video, drop vimeo
This commit is contained in:
@@ -16,6 +16,5 @@
|
|||||||
<script src="{{ "js/nav.js" | relURL }}" defer></script>
|
<script src="{{ "js/nav.js" | relURL }}" defer></script>
|
||||||
<script src="{{ "js/boot.js" | relURL }}" defer></script>
|
<script src="{{ "js/boot.js" | relURL }}" defer></script>
|
||||||
<script>document.addEventListener('contextmenu',function(e){e.preventDefault();});</script>
|
<script>document.addEventListener('contextmenu',function(e){e.preventDefault();});</script>
|
||||||
<script>document.addEventListener('click',function(e){var b=e.target.closest?e.target.closest('.vimeo__play'):null;if(!b)return;var w=b.parentNode,id=w.getAttribute('data-vimeo');if(!id)return;var f=document.createElement('iframe');f.src='https://player.vimeo.com/video/'+id+'?dnt=1&autoplay=1&badge=0&autopause=0';f.title='video';f.allow='autoplay; fullscreen; picture-in-picture';f.setAttribute('allowfullscreen','');f.setAttribute('sandbox','allow-scripts allow-same-origin allow-presentation allow-popups');f.referrerPolicy='strict-origin-when-cross-origin';w.innerHTML='';w.appendChild(f);});</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user