source: plugins/related/test/options.html @ 1940

Revision 1940, 1.7 KB checked in by jeroen, 23 months ago (diff)

wrapped up tests and Flash version of related plugin

  • Property svn:executable set to *
Line 
1<html>
2<head>
3
4<meta charset="UTF-8">
5<script type="text/javascript" src="assets/jwplayer.min.js"></script>
6<title>Configuration options</title>
7<style>
8    body { padding: 50px; font: 13px/20px Arial; background: #EEE; }
9    #player, p, ul { margin-top: 20px; display: block; }
10    #player { -webkit-box-shadow: 0 0 5px #999; }
11</style>
12
13</head>
14<body>
15
16<h2>Configuration options</h2>
17
18<div id="player"></div>
19
20<script type="text/javascript">
21function reload(oncomplete,usedock,heading) {
22    jwplayer("player").setup({
23        file: 'http://content.bitsontherun.com/videos/nPripu9l-327.mp4',
24        flashplayer: 'assets/player.swf',
25        height: 270,
26        image:'http://content.bitsontherun.com/thumbs/nPripu9l-480.jpg',
27        plugins: {
28            '../related.js': {
29                file: 'assets/blender.xml',
30                oncomplete: oncomplete,
31                usedock: usedock,
32                heading: heading
33            }
34        },
35        width: 480
36    });
37};
38</script>
39
40
41<ul>
42    <li><a href="javascript:reload(true,true,'Watch related videos');">Both enabled</a></li>
43    <li><a href="javascript:reload(true,false,'Watch some additional related videos');">Only oncomplete, long heading</a></li>
44    <li><a href="javascript:reload(false,true,'لوحة المفاتيح العرؚية');">Only the dock, arab heading</a></li>
45</ul>
46
47
48<p>
49    The oncomplete option (true/false) determines whether related thumbs are shown at the end of the video.<br />
50    The usedock option (true/false) determines whether a related dock button is shown.<br/>
51    A custom heading replaces the default <em>Watch more videos</em>.
52</p>
53
54
55</body>
56</html>
Note: See TracBrowser for help on using the repository browser.