-
Notifications
You must be signed in to change notification settings - Fork 176
Expand file tree
/
Copy pathcaptions.html
More file actions
109 lines (98 loc) · 3.89 KB
/
captions.html
File metadata and controls
109 lines (98 loc) · 3.89 KB
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
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Player.js: Caption Demo</title>
<meta name="description" content="Overlay fun messages on videos with Player.js">
<link href='http://fonts.googleapis.com/css?family=Cantarell|Fjalla+One' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" href="css/foundation.min.css" />
<link rel="stylesheet" href="css/playerjs.css" />
<script src="scripts/libs/modernizr.js"></script>
</head>
<body class="caption">
<div class="contain-to-grid sticky">
<nav class="top-bar" data-topbar data-options="sticky_on: large">
<ul class="title-area">
<li class="name">
<h1><a href="/">Player.js</a></h1>
</li>
<li class="toggle-topbar menu-icon"><a href="#">Menu</a></li>
</ul>
<section class="top-bar-section">
<ul class="right">
<li ><a href="https://github.com/embedly/player.js"><i class="fa fa-github"></i> Code</a></li>
<li class="has-dropdown">
<a href="#">Demos</a>
<ul class="dropdown">
<li><a href="/article.html">Article</a></li>
<li><a href="/progress.html">Progress</a></li>
<li><a href="/captions.html"> Captions</a></li>
<li><a href="/scroll.html">Scroll</a></li>
<li><a href="/resume.html">Resume</a></li>
<li><a href="/music.html">Music</a></li>
<li><a href="/soundboard.html">Soundboard</a></li>
</ul>
</li>
</ul>
</section>
</nav>
</div>
<div class="row">
<div class="large-4 columns">
<h1>Captions</h1>
<p>
Enter a URL that you wish to add captions to.
</p>
<p>
<a href="/captions.html?url=http%3A%2F%2Fvimeo.com%2F18150336&c0=0-1%3A%3AThese&c1=2-3%3A%3Aare&c2=4-5%3A%3Acaptions&c3=6-7%3A%3Ahave&c4=8-9%3A%3Afun&c5=10-11%3A%3Awith&c6=12-13%3A%3Athem" class="button">View Example</a>
</p>
<p>
<a class="button secondary" target="_blank" href="https://github.com/embedly/player.js/blob/gh-pages/scripts/captions.js">Code</a>
<a class="button secondary" target="_blank" href="https://github.com/embedly/player.js/blob/gh-pages/captions.html">HTML</a>
</p>
</div>
<div class="large-8 columns">
<form class="url-form">
<label>Url</label>
<div class="row collapse">
<div class="small-10 columns">
<input id="url" type="text" value="http://vimeo.com/18150336"/>
</div>
<div class="small-2 columns">
<a href="#" class="button postfix">Go</a>
</div>
</div>
</form>
<div id="result"></div>
<div id="captions">
<form></form>
</div>
<div class="row caption-actions">
<div class="large-4 columns">
<a href="#" class="play">Restart</play>
<a href="#" class="share">Share</play>
</div>
<div class="large-8 columns text-right">
<a href="#" id="add">Add another caption <i class="fa fa-plus"></i></a>
</div>
</div>
</div>
</div>
<div id="share" class="reveal-modal small" data-reveal>
<h2>Share URL</h2>
<textarea class="modal-results"></textarea>
<a class="close-reveal-modal">×</a>
</div>
<script src="scripts/libs/jquery.js"></script>
<script src="scripts/libs/foundation.min.js"></script>
<script src="http://cdn.embed.ly/jquery.embedly-3.1.1.min.js"></script>
<script type="text/javascript" src="http://cdn.embed.ly/player-0.1.0.min.js"></script>
<script src="scripts/captions.js"></script>
<script>
$.embedly.defaults.key = '3ee528c9eb4b4908b268ce1ace120c92';
$(document).foundation();
</script>
</body>
</html>