Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- document.addEventListener("DOMContentLoaded", function(e) {
- let video = document.querySelector('.header__background-desktop video');
- if(window.innerWidth < 768) {
- video.autoplay = false;
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement