timeline and font update

This commit is contained in:
devin committed 2012-07-02 16:22:51 +08:00
1 parent 6533abf214
commit 08fd07b6aa
6 files changed
+69 -62

No files matched your search

+4 -5
View File
@@ -29,7 +29,7 @@ var orbitTimeline = function(dom){
}
this.constructTimeScale = function(callbackFn){
var mon ="",year="";
var scale = $("<div id='scale_wrapper'></div>");
var scale = $("<div id='scale_wrapper' class='ph'></div>");
$.getJSON("desktop_orbit/getevents",{"event":"papers"},function(journals){
$.each(journals,function(x,journal){
$.each(journal.papers,function(i,paper){
@@ -42,16 +42,16 @@ var orbitTimeline = function(dom){
t.events.push(bubbleData);
if(cur_year != year){
year = cur_year;
scale.append($("<div class='scale_region year'>"+(year+1)+"</div>"));
scale.append($("<div class='group year w1 h1 thmtxt thmc1'>"+(year+1)+"</div>"));
}
if(cur_mon != mon){
mon = cur_mon;
console.log(parseInt(cur_mon));
scale.append($("<div class='scale_region month' data-content='"+cdt+"'><div class='month_heading'>"+t.monthList[parseInt(formname)]+"</div><div class='bubble_list'></div></div>"))
scale.append($("<div class='group month' data-content='"+cdt+"'><div class='month_heading hp vp'>"+t.monthList[parseInt(formname)]+"</div><div class='bubble_list'></div></div>"))
}
});
})
scale.append($("<div class='scale_region year'>"+year+"</div>"));
scale.append($("<div class='group year w1 h1 thmtxt thmc1'>"+year+"</div>"));
if(typeof callbackFn == "function"){
callbackFn.call(this,scale);
}
@@ -75,7 +75,6 @@ var orbitTimeline = function(dom){
}
var bt = (bubbleData.title.length > 70? bubbleData.title.substr(0,70) + "..." : bubbleData.title);
var bubble = $("<li class='bubble'><span>"+bt+"<span class='date'> - "+bubbleData.fulldate+"</span></span></li>");
bubble.css("margin-left","25px");
targetul.prepend(bubble);
bubble.show();
bubble.click(function(){