-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
30 lines (25 loc) · 854 Bytes
/
Copy pathindex.html
File metadata and controls
30 lines (25 loc) · 854 Bytes
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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" src="jquery.yt-api.js"></script>
<script type="text/javascript">
/*
* The following will output the description of the video. I'm a big NIN fan.
*/
YtApi("http://www.youtube.com/watch?v=ccY25Cb3im0", function (data) {
console.log(data.get('description'));
});
/*
Essentially what we just did here was make a call to YouTube and passed
a function to run upon completion. We do it this way now so that it
becomes a non-blocking operation meaning that it won't make everything
wait until it's done.
*/
</script>
</head>
<body>
</body>
</html>