Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Youtube So Mp3 - Youtube Video to Mp3 Converter</title>
- <link href='https://softron.zendesk.com/system/photos/4810/6698/Favicon_Softron_Blue_200_thumb.png' rel='icon' type='image/x-icon'/>
- <style>
- body{-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;display:block;line-height:1.4em;margin:0 0 .75em;padding:5px;unselectable:on;user-select:none}
- body{background:#fff;color:#0B6138;font-family:Arial, Helvetica, Tahoma, sans-serif;font-size:14px;font-weight:400;line-height:22px;text-decoration:none;margin:0;padding:0}
- .box{color:#ffffff;background-color:#0086ce;width:500px;height:300px;border-radius:6px;z-index:3;}
- </style>
- </head>
- <body>
- <center>
- <p>
- <div class="box" align="center">
- <img src="http://2.bp.blogspot.com/-OQaf-MdtShI/VLSCW5yGDHI/AAAAAAAAGHQ/tlHKfulDLFg/s1600/small-youtube-music.png" /><br />
- <div><strong>Insert YouTube URI:</strong></div>
- <input type="text" size="50" id="ytlink" onkeyup="youtube_parser(this.value)">
- <br />
- <div><strong>YouTube Video ID:</strong></div>
- <input type="text" id="ytimagelink" value="">
- <div><strong>Video to Mp3 Processing</strong></div>
- <div style="width:428px; height:38px; margin:0px auto 5px auto; overflow:hidden;" align="center"><div id="ytimage"></div></div>
- <script>
- function youtube_parser(url) {
- var regExp = /.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/;
- var match = url.match(regExp);
- if (match && match[1].length == 11) {
- urllink = match[1];
- imagelink = "<iframe style=\"margin-top:-32px;\" src=\"http:\/\/www.music-clips.net\/small-api\/"+urllink+"\/mp3/\" scrolling=\"no\" frameborder=\"0\" height=\"70\" width=\"428\"><\/iframe>";
- } else {
- //urllink = "test"
- }
- document.getElementById("ytimagelink").value = urllink;
- document.getElementById("ytimage").innerHTML = imagelink;
- }
- </script>
- </div>
- </p>
- </center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement