forked from fooleap/disqus-php-api
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdemo.html
41 lines (41 loc) · 1.32 KB
/
demo.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Disqus PHP API 示例</title>
<style>
body{
max-width: 640px;
width: 100%;
margin: 0 auto;
overflow-x: hidden;
}
body > * {
width: 100%;
}
body a{
color: #0095dd;
}
</style>
</head>
<body>
<div id="comment"></div>
<p>本页共有 <span data-disqus-url="/disqus-php-api.html"></span> 条评论</p>
<ul id="popular-posts"></ul>
<p>项目地址:<a href="https://github.com/fooleap/disqus-php-api" target="_blank">https://github.com/fooleap/disqus-php-api</a></p>
<script>
var disq = new iDisqus('comment', {
forum: 'fooleap',
site: 'http://blog.fooleap.org',
api: 'http://api.fooleap.org/disqus',
mode: 2,
timeout: 3000,
popular: document.getElementById('popular-posts'),
init: true,
});
disq.popular();
disq.count();
</script>
</body>
</html>