Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="ru">
- <head>
- <meta charset="UTF-8">
- <title>Документ</title>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
- <script>
- const main = () => {
- window.Video || ( window.Video = {} );
- Video.playYouTube = function(container, video) {
- video = "https://www.youtube.com/v/" + video + "?autoplay=1&start=0";
- $(container).parent().html(`
- <object width="100%" height="720px">
- <param name="movie" value="` + video + `">
- <param name="allowFullScreen" value="true">
- <param name="wmode" value="transparent">
- <param name="allowscriptaccess" value="always">
- <embed src="` + video + `" type="application/x-shockwave-flash" allowscriptaccess="always" width="98%" height="720px">
- </object>
- `);
- };
- const iframe = document.querySelector('iframe');
- Video.playYouTube(iframe,'RppBrNQOPYU');
- };
- window.addEventListener('load', main);
- </script>
- </head>
- <body>
- <iframe width="1280" height="720">
- </iframe>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement