/
index2.html
74 lines (71 loc) · 2.35 KB
/
index2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<meta http-equiv="X-Frame-Options" content="GOFORIT">
</head>
<body>
<iframe src="http://www.youtube.com/watch?v=ax68kL2WhRw&html5=true&output=embed" id="ext" style="opacity: 0.5"></iframe>
<div id="log"></div>
<form action="" method="post" id="form" class="well pane2" novalidate="novalidate">
<input type="text" class="input-medium" name="url" id="url" placeholder="YouTube Video URL like: www.youtube.com/watch?v=5KlnlCq2M5Q" style="width: 550px">
<div>
<button id="download-btn" class="btn btn-large btn-primary" type="submit"><i class="icon-download-alt icon-white"></i> Download Video</button>
<img id="loading" alt="Loading..." style="border-width:0; display: none;" src="img/loading.gif" />
</div>
</form>
<script src="http://www.youtube.com/player_api"></script>
<script src="js/libs/jquery-1.7.2.min.js"></script>
<!-- <script src="js/full2.js"></script> -->
<script>
$(document).ready(function() {
var id = "ax68kL2WhRw";
var url = "http://www.youtube.com/watch?v="+id+"&html5=true";
$("#log").html(url);
$("#log").html($("#ext").html());
//$("#log").load(url);
/*
$.ajax({
url: url,
//dataType: 'html',
async: false,
type: "GET",
crossDomain: true,
dataType: "jsonp",
success: function(data) {
console.log(data.length);
},
error: function(request, status, error) {
console.log(request+" "+status+" "+error);
}
});
*/
/*
$.ajax({
url: "http://www.youtube.com/watch?v="+id+"&html5=true&callback=?",
dataType: 'html',
async: false,
type: "GET",
crossDomain: true,
dataType: "jsonp",
success: function(res) {
//var headline = $(res.responseText).find('a.tsh').text();
//alert(headline);
//$("#log").html(res)
console.log(res);
}
});
*/
/*
$.getJSON(url + "?callback=?", null, function(res) {
console.log(res);
//$("#log").html(res)
});
*/
});
</script>
</body>
</html>