A Pen by Simply Codin on CodePen.
Created
April 25, 2017 20:22
-
-
Save fallsimply/d1f99740beabecf501a9f98e93200860 to your computer and use it in GitHub Desktop.
YouTube Thumbnail Grabber
This file contains 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
input(type="text", id="vidID") | |
button(onclick="submit()") Click Me | |
br |
This file contains 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
function submit(){ | |
var iframe = document.createElement('iframe'); | |
iframe.src = "https://i.ytimg.com/vi/"+vidID.value+"/hqdefault.jpg"; | |
document.body.appendChild(iframe); | |
} |
This file contains 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
body | |
background-color: red | |
font: 13.3333px Arial | |
#vidID | |
color: red | |
border: 0px | |
background-color: white | |
border-radius: 0px | |
height: 18px | |
button | |
color: red | |
background-color: white | |
border: 0px | |
margin: 0em 0em 0em 0em | |
padding: 2px 6px 3px | |
height: 20px | |
font: 13.3333px Arial | |
#link | |
background-color: white | |
color: red | |
text-decoration: none | |
padding: 2px 6px 3px | |
margin: 0px 0px 0px 4px | |
font: 13.3333px Arial | |
iframe | |
width: 460px | |
height: 360px |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment