forked from flgonzaga/youtube-api-v3-jquery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-usage.html
53 lines (42 loc) · 1.77 KB
/
example-usage.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
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>Youtube API V3 Request for Javascript</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="http://code.jquery.com/jquery-2.1.4.js"></script>
<script src="jquery.youtubev3.js"></script>
</head>
<body>
<div class="container">
<div class="playerbox">
</div>
<div class="myplaylistvideos" >
<a href="/example-usage.html" class="ytubeid_class">
<img src="" alt="" class="ytubethumbnail_class" /><br />
<strong><span class="ytubetitle_class"></span></strong> <br />
<p class="ytubedescription_class"></p>
</a>
<span><small>Por: </small> <a href="" class="ytubechannel_class"></a></span>
<hr />
</div>
</div>
<script type="text/javascript">
$(document).ready(function() {
$('.myplaylistvideos').Youtube('playlist', {
playlistTitle:'.ytubetitle_class',
playlistDescription:'.ytubedescription_class',
playlistThumbnail:'.ytubethumbnail_class',
playlistChannel:'.ytubechannel_class',
playlistVideoId:'.ytubeid_class'
});
$('.playerbox').Youtube('player', {});
});
</script>
</body>
</html>