-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
82 lines (65 loc) · 2.4 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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="text/javascript" charset="utf-8" src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script type="text/javascript" charset="utf-8" src="http://cdn.clappr.io/latest/clappr.min.js"></script>
<script type="text/javascript" charset="utf-8" src="dist/comments.js"></script>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<!-- Live reload - only for development -->
<script src="http://clappr.dev:35729/livereload.js"></script>
<title>Clappr comment plugin - Labs of Jordane</title>
<script type="text/javascript" charset="utf-8">
window.onload = function() {
var player = new Clappr.Player({
sources: ['http://clappr.io/highline.mp4'],
width: 800,
plugins: {
core: [Comments]
},
// Comment options
videoId: 1,
urlGetComments: "http://labs.jordane.net/clappr-comment/comments-video",
urlAddComments: "http://labs.jordane.net/clappr-comment/submit-comment",
iconComment: "fa fa-comment-o",
iconFont: "FontAwesome",
pointerColor: "blue",
enablePicture: true,
pointerColor: "blue",
texts: {
addComment: 'Add a comment at',
addCommentLink: "Comment",
minutes: "minutes",
commentPlaceholder: "Put a comment here",
sendComment: "Send"
}
});
player.attachTo(document.getElementById('player-wrapper'));
}
</script>
<style>
.player {
width: 800px;
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body>
<div class="container">
<h2 class="text-center">Clappr comment plugin</h2>
<div class="player" id="player-wrapper"></div>
<h3>Repository: <a href="https://github.com/metrakit/clappr-comment-plugin">https://github.com/metrakit/clappr-comment-plugin</a></h3>
<h3>Options</h3>
<pre>
urlGetComments: "http://localhost/comments-video",
urlAddComments: "http://localhost/submit-comment",
iconComment: "fa fa-comment-o",
iconFont: "FontAwesome",
pointerColor: "blue",
enablePicture: true
</pre>
</div>
</body>
</html>