Advertisement
EddieKidiw

Youtube To Mp3 - Youtube Video to Mp3 Converter

Apr 26th, 2016
654
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.92 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Youtube So Mp3 - Youtube Video to Mp3 Converter</title>
  4. <link href='https://softron.zendesk.com/system/photos/4810/6698/Favicon_Softron_Blue_200_thumb.png' rel='icon' type='image/x-icon'/>
  5. <style>
  6. 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}
  7. 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}
  8. .box{color:#ffffff;background-color:#0086ce;width:500px;height:300px;border-radius:6px;z-index:3;}
  9. </style>
  10. </head>
  11. <body>
  12. <center>
  13. <p>
  14. <div class="box" align="center">
  15. <img src="http://2.bp.blogspot.com/-OQaf-MdtShI/VLSCW5yGDHI/AAAAAAAAGHQ/tlHKfulDLFg/s1600/small-youtube-music.png" /><br />
  16.     <div><strong>Insert YouTube URI:</strong></div>
  17.     <input type="text" size="50" id="ytlink" onkeyup="youtube_parser(this.value)">
  18. <br />
  19.     <div><strong>YouTube Video ID:</strong></div>
  20.     <input type="text" id="ytimagelink" value="">
  21.     <div><strong>Video to Mp3 Processing</strong></div>
  22.     <div style="width:428px; height:38px; margin:0px auto 5px auto; overflow:hidden;" align="center"><div id="ytimage"></div></div>
  23. <script>
  24.     function youtube_parser(url) {
  25.     var regExp = /.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/;
  26.     var match = url.match(regExp);
  27.     if (match && match[1].length == 11) {
  28.    urllink = match[1];
  29.     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>";
  30.     } else {
  31.     //urllink = "test"
  32.     }
  33.     document.getElementById("ytimagelink").value = urllink;
  34.     document.getElementById("ytimage").innerHTML = imagelink;
  35.     }
  36.     </script>
  37. </div>
  38. </p>
  39. </center>
  40. </body>
  41. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement