-
Notifications
You must be signed in to change notification settings - Fork 0
/
amprecentcomments.html
73 lines (72 loc) · 3.69 KB
/
amprecentcomments.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Disqus Recent Comments</title>
<meta content='width=device-width, initial-scale=1' name='viewport'>
<style>
body{padding:0;margin:0}
#topcommenters,#RecentComments{display:block;width:100%;margin:0 auto;padding:10px 0 0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;height:auto}
.dsq-widget ul.dsq-widget-list{padding:0!important;margin-right:0!important;text-align:left}
img.dsq-widget-avatar{margin:0 10px 7px 0!important;width:58px!important;height:58px!important;padding:0!important;float:left;border-radius:3px!important}
.dsq-widget-comment p{font-size:14px;line-height:1.2em!important;color:inherit}
.dsq-widget-comment{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
p.dsq-widget-meta{clear:both;font-size:80%;margin-top:5px!important}
p.dsq-widget-meta a{display:inline-block!important;width:48%;overflow:hidden;text-overflow:ellipsis;-webkit-text-overflow:ellipsis;white-space:nowrap;text-decoration:none}
li.dsq-widget-item{margin:0 0 12px 0!important;padding:0 10px 4px!important;list-style-type:none;clear:none!important;display:inline;float:left;width:33.333333%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;}
a.dsq-widget-user{font-weight:bold;display:block!important;margin-bottom:5px;text-decoration:none}
li.dsq-widget-item div:after,#RecentComments p.dsq-widget-meta:after{content:'';display:block;border-bottom:1px solid #ddd;}
li.dsq-widget-item:last-child div:after,#RecentComments li.dsq-widget-item:last-child p.dsq-widget-meta:after{content:'';display:block;border-bottom:none;}
.clear{clear:both}
.post-body {font-size:14px;line-height:1.2em!important;padding:0;}
@media screen and (max-width:800px){li.dsq-widget-item{width:50%}
}
@media screen and (max-width:414px){li.dsq-widget-item{width:100%}
}
</style>
<script>
function getQueryVariable(variable) {
var query = window.location.search.substring(1);
var vars = query.split('&');
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split('=');
if (pair[0] == variable) {
return pair[1];
}
}
return (false);
}
</script>
</head>
<body>
<div class='post-body' id="disqus_thread">
<div id="RecentComments" class="dsq-widget">
<script>
document.write("<scr" + "ipt type=\"text/javascript\" src=\"https://" + getQueryVariable('shortname') + ".disqus.com/recent_comments_widget.js?num_items=22&hide_mods=1&hide_avatars=0&avatar_size=32&excerpt_length=80\"></scr" + "ipt>")
</script>
<div class="clear"></div>
</div>
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.3.js"></script>
<script type='text/javascript'>
//<![CDATA[
$("#topcommenters a,#RecentComments a").filter(function(){return this.hostname&&this.hostname!==location.hostname}).attr('rel', 'nofollow').attr('target', '_blank');
//]]>
</script>
<script>
function generateCss(q) {
var css = document.createElement('style'),
sp2 = document.getElementById('disqus_thread'),
parentDiv = sp2.parentNode;
css.type = 'text/css';
if (css.styleSheet) css.styleSheet.cssText = q;
else css.appendChild(document.createTextNode(q));
parentDiv.insertBefore(css, sp2);
}
(function() {
var q = '#disqus_thread {color:#' + getQueryVariable('fontBodyColor') + '; font-family:' + getQueryVariable('fontBodyFamily') + '} a:link, a:visited {color:#' + getQueryVariable('fontLinkColor') + ';text-decoration:none;} a:link:hover,a:visited:hover{color:#' + getQueryVariable('linkHoverColor') + '}';
generateCss(q);
})();
</script>
</body>
</html>