forked from Viima/jquery-comments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (58 loc) · 2.19 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
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<meta name=description content="">
<meta name=viewport content="width=device-width, initial-scale=1">
<title>Jquery Comments Plugin</title>
<!-- Styles -->
<link rel="stylesheet" type="text/css" href="css/jquery-comments.css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
<!-- Data -->
<script type="text/javascript" src="data/comments-data.js"></script>
<!-- Libraries -->
<script type="text/javascript" src="js/lib/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="js/jquery-comments.js"></script>
<style type="text/css">
body {
padding: 20px;
margin: 0px;
font-size: 14px;
font-family: "Arial", Georgia, Serif;
}
</style>
<!-- Init jquery-comments -->
<script type="text/javascript">
$(function() {
$('#comments-container').comments({
profilePictureURL: 'https://app.viima.com/static/media/user_profiles/user-icon.png',
roundProfilePictures: true,
textareaRows: 1,
getComments: function(success, error) {
setTimeout(function() {
success(commentsArray);
}, 500);
},
putComment: function(data, success, error) {
setTimeout(function() {
success(data);
}, 200)
},
deleteComment: function(data, success, error) {
setTimeout(function() {
success();
}, 200)
},
upvoteComment: function(data, success, error) {
setTimeout(function() {
success(data);
}, 200)
}
});
});
</script>
</head>
<body>
<div id="comments-container"></div>
</body>
</html>