Skip to content

Instantly share code, notes, and snippets.

@c1b3rh4ck
Created March 18, 2011 03:28
Show Gist options
  • Save c1b3rh4ck/875569 to your computer and use it in GitHub Desktop.
Save c1b3rh4ck/875569 to your computer and use it in GitHub Desktop.
this is a simple html file using a simple query for found the total comments and all post of blogger
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Triva sbd</title><style type="text/css">
body { }
h1 { font-size: xx-large;
font-weight: bold;
border-bottom: 1px solid black; }
div.note {
position: relative;
display: block;
padding: 5pt;
margin: 5pt;
white-space: -moz-pre-wrap; /* Mozilla */
white-space: -pre-wrap; /* Opera 4 - 6 */
white-space: -o-pre-wrap; /* Opera 7 */
white-space: pre-wrap; /* CSS3 */
word-wrap: break-word; /* IE 5.5+ */ }
</style></head><body><div class="note" id="j"><a name="j"></a><h1></h1></div></body></html>
<div style="float: left;"><img style="width: 32px;" src=""/></div>
<div style=" float: left; text-align: left;">
<script style="text/javascript">
function showpostcount(json) {
document.write(parseInt(json.feed.openSearch$totalResults.$t,10));
}</script>
<script src="http://www.elladodelmal.com/feeds/posts/default?alt=json-in-script&amp;callback=showpostcount"></script> <span style="font-family: trebuchet; color:
#00BAFE;font-size: 15px;">Posts</span>
<br/>
<script src="http://www.elladodelmal.com/feeds/comments/default?alt=json-in-script&amp;callback=showpostcount"></script> <span style="font-family: trebuchet; color:
#33CC00;font-size: 15px;"><b>Comments</b></span></div>
<div style="clear: both;"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment