Created
November 15, 2017 00:59
-
-
Save liuxd/6e9540cb889160ad1322dc632ff202e8 to your computer and use it in GitHub Desktop.
Youtube Embeded Video
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
<!-- "allowfullscreen" controll whether fullscreen button --> | |
<iframe id="video_frame" class="embed-responsive-item" src="https://www.youtube.com/embed/jS3HN7Nw-qU" allowfullscreen></iframe> |
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
var youtube_url = 'https://www.youtube.com/watch?v=oZh4QHqdHW4' | |
video_embed_url = youtube_url.replace('watch?v=', 'embed/') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment