diff -r 94f586daa623 -r 8ca7f2cea729 alcatel/static/js/base.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/alcatel/static/js/base.js Thu Jan 24 16:58:55 2013 +0100 @@ -0,0 +1,48 @@ +function liste(json) + { + content = "
"; + + for (i = 0; i < json.clusters.length && i<4; i++) + { + content += "

"; + content += json.clusters[i].title; + content += "

"; + content += json.clusters[i].documents_number; + content +=" articles | "; + content += json.clusters[i].annotations.length; + content += " annotations

"; + content +="
\"\"
"; + content +="

"; + content += json.clusters[i].abstract; + content += "

"; + content +="
"; + } + content +="
"; + $("#right").empty(); + $(content).appendTo("#right"); + } + + + function treemap(json) + { + var k =1; + content = "
"; + for (i = 0; i < json.clusters.length && i<4; i++) + { + content += "
\"\"
"; + content += "

"; + content += json.clusters[i].title; + content += "

"; + k++; + } + content +="
"; + $("#right").empty(); + $(content).appendTo("#right"); + } \ No newline at end of file