This repository has been archived by the owner on Jun 30, 2020. It is now read-only.
forked from dan0/youtubeplaylist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·141 lines (106 loc) · 3.55 KB
/
index.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.youtubeplaylist.js"></script>
<script type="text/ecmascript">
$(function() {
$("ul.demo1").ytplaylist();
$("ul.demo2").ytplaylist({addThumbs:true, autoPlay: false, holderId: 'ytvideo2'});
});
</script>
<style type="text/css">
#ytvideo,
#ytvideo2 {
float: left;
margin-right:10px;
}
.yt_holder {
background: #f3f3f3;
padding: 10px;
float: left;
border: 1px solid #e3e3e3;
margin-bottom:15px;
}
ul {
float: left;
margin: 0;
padding: 0;
width: 220px;
}
ul li {
list-style-type: none;
display:block;
background: #f1f1f1;
float: left;
width: 216px;
margin-bottom: 5px;
padding:2px;
}
ul li img {
width: 120px;
float: left;
margin-right: 5px;
border: 1px solid #999;
}
ul li a {
font-family: georgia;
text-decoration: none;
display: block;
color: #000;
}
.currentvideo {
background: #e6e6e6;
}
</style>
</head>
<body>
<div id="page">
<h1>jQuery YouTube playlist plugin</h1>
<p><a href="#">back to blog post</a></p>
<p>The html code for the following examples: (note that div.yt_holder is not required for the plugin and is used here simply to style the video area)</p>
<code>
<pre>
<div class="yt_holder">
<div id="ytvideo"></div>
<ul class="demo1">
<li><a href="http://www.youtube.com/watch?v=QBBWKvY-VDc">Video 1</a></li>
<li><a href="http://www.youtube.com/watch?v=ZXMQqLnRhRI">Video 2</a></li>
<li><a href="http://www.youtube.com/watch?v=Wvo-g_JvURI">Video 3</a></li>
</ul>
</pre>
</code>
<p>javascript for the following example (basic setup, no options used)</p>
<code>
<pre>
$("ul.demo1").ytplaylist();
</pre>
</code>
<div class="yt_holder">
<div id="ytvideo"></div>
<ul class="demo1">
<li><a href="http://www.youtube.com/watch?v=QBBWKvY-VDc">Video 1</a></li>
<li><a href="http://www.youtube.com/watch?v=ZXMQqLnRhRI">Video 2</a></li>
<li><a href="http://youtu.be/L0CsLefLisE">Video 3</a></li>
</ul>
</div>
<div style="clear:both;"></div>
<p>javascript for the following example with autoplay off, thumbnails and a new holder id</p>
<code>
<pre>
$("ul.demo2").ytplaylist({addThumbs:true, autoPlay: false, holderId: 'ytvideo2'});
</pre>
</code>
<div class="yt_holder">
<div id="ytvideo2"></div>
<ul class="demo2">
<li><a href="http://www.youtube.com/watch?v=QBBWKvY-VDc">Video 1</a></li>
<li><a href="http://www.youtube.com/watch?v=ZXMQqLnRhRI">Video 2</a></li>
<li><a href="http://youtu.be/L0CsLefLisE">Video 3</a></li>
</ul>
</div>
</div>
</body>
</html>