Created
February 15, 2013 12:28
-
-
Save anonymous/4960116 to your computer and use it in GitHub Desktop.
trying to load youtube video later using js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <script type='text/javascript' src='http://code.jquery.com/jquery-1.9.1.min.js'></script> | |
| <script type='text/javascript' src='//cdn.sublimevideo.net/js/wkc49gq2-beta.js'></script> | |
| <script type='text/javascript'> | |
| $(document).ready(function(){ | |
| $('#load_video').click(function(e){ | |
| $('#video1').addClass('sublime'); | |
| sublime.load(); | |
| }); | |
| }); | |
| </script> | |
| </head> | |
| <body> | |
| <video id='video1' width='640' height= '360' data-youtube-id='93dj7ykJ8sg' | |
| data-autoresize='none' data-uid='93dj7ykJ8sg' preload='none' | |
| poster='http://media.sublimevideo.net/vpa/ms_800.jpg'> | |
| </video> | |
| <button id='load_video'>click to play video </button> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment