Skip to content
Browse files

Working

  • Loading branch information...
1 parent 0c92132 commit eca536237e594316902a5cdcf0fc96a60794b1f3 pawnda committed Apr 15, 2012
Showing with 17 additions and 6 deletions.
  1. +15 −1 data/ui/js/zogger.js
  2. +2 −5 data/ui/report.html
View
16 data/ui/js/zogger.js
@@ -9,6 +9,7 @@ function contentTypeCounts(){
function countryCounts(){
return Zogger.getFacet("country");
}
+
function countuper(div,high){
var current = 0;
var finish = $("."+div).text();
@@ -27,8 +28,21 @@ function countuper(div,high){
function closePreloader(){
$('#preloader').hide();
}
+
+function addFavicons(){
+ var domains = Zogger.getFacet("domain");
+ $.each(domains, function(index, value) {
+ $('.favicons').prepend("<img src='http://www."+index+"/favicon.ico' width='16' height='16' />");
+ });
+
+ $('img').error(function() {
+ $(this).remove();
+ });
+}
$(function(){
+
setTimeout('fireUpMap();', 2000);
+ setTimeout('addFavicons()', 200);
setTimeout('closePreloader();', 3000);
var $fieldsCloud = $("#fields");
$fieldsCloud.jQCloud(fieldNameCounts());
@@ -41,7 +55,6 @@ $(function(){
- countuper("sites");
countuper("timespent");
countuper("urls");
countuper("dangerzones");
@@ -62,6 +75,7 @@ $(function(){
function fireUpMap(){
$('.removemap').hide();
+ $('b.sites').text(Zogger.getFacetObjects("domain", "text", "weight").length);
$('b.countries').text(Zogger.getFacetObjects("country", "text", "weight").length);
countuper("countries");
var gdpData = countryCounts();
View
7 data/ui/report.html
@@ -45,14 +45,11 @@
<div id="numbers">
<div class="innumbers">
- <span class="bignumber">SITES<b class="sites">7105</b></span><br />
+ <span class="bignumber">SITES<b class="sites">0</b></span><br />
<br/>
<div class="sitesall">
- <!-- FAV ICONS HERE -->
- <img src="http://www.facebook.com/favicon.ico" /><img src="http://www.twitter.com/favicon.ico" /><img src="http://www.pinterest.com/favicon.ico" /><img src="http://www.linkedin.com/favicon.ico" /><img src="http://www.klikx.ba/favicon.ico" /><img src="http://www.gamers.ba/favicon.ico" /><img src="http://www.facebook.com/favicon.ico" /><img src="http://www.twitter.com/favicon.ico" /><img src="http://www.pinterest.com/favicon.ico" /><img src="http://www.linkedin.com/favicon.ico" /><img src="http://www.klikx.ba/favicon.ico" /><img src="http://www.gamers.ba/favicon.ico" /><img src="http://www.facebook.com/favicon.ico" /><img src="http://www.twitter.com/favicon.ico" /><img src="http://www.pinterest.com/favicon.ico" /><img src="http://www.linkedin.com/favicon.ico" /><img src="http://www.klikx.ba/favicon.ico" /><img src="http://www.gamers.ba/favicon.ico" /><img src="http://www.facebook.com/favicon.ico" /><img src="http://www.twitter.com/favicon.ico" /><img src="http://www.pinterest.com/favicon.ico" /><img src="http://www.linkedin.com/favicon.ico" /><img src="http://www.klikx.ba/favicon.ico" /><img src="http://www.gamers.ba/favicon.ico" /><img src="http://www.facebook.com/favicon.ico" /><img src="http://www.twitter.com/favicon.ico" /><img src="http://www.pinterest.com/favicon.ico" /><img src="http://www.linkedin.com/favicon.ico" /><img src="http://www.klikx.ba/favicon.ico" /><img src="http://www.gamers.ba/favicon.ico" /><img src="http://www.facebook.com/favicon.ico" /><img src="http://www.twitter.com/favicon.ico" /><img src="http://www.pinterest.com/favicon.ico" /><img src="http://www.linkedin.com/favicon.ico" /><img src="http://www.klikx.ba/favicon.ico" /><img src="http://www.gamers.ba/favicon.ico" /><img src="http://www.facebook.com/favicon.ico" /><img src="http://www.twitter.com/favicon.ico" /><img src="http://www.pinterest.com/favicon.ico" /><img src="http://www.linkedin.com/favicon.ico" /><img src="http://www.klikx.ba/favicon.ico" /><img src="http://www.gamers.ba/favicon.ico" /><img src="http://www.facebook.com/favicon.ico" /><img src="http://www.twitter.com/favicon.ico" /><img src="http://www.pinterest.com/favicon.ico" /><img src="http://www.linkedin.com/favicon.ico" /><img src="http://www.klikx.ba/favicon.ico" /><img src="http://www.gamers.ba/favicon.ico" />
-
- <!-- END OF ICONS HERE -->
+<div class="favicons"></div>
</div>
<br /><hr /></br >
</div>

0 comments on commit eca5362

Please sign in to comment.
Something went wrong with that request. Please try again.