A bunch of changes like
1) Freemarker versions of Co-PI visualizations. CoInvestigator.ftl, CoPIPersonLevel.ftl, person_level_fm-copi.js. 2) Styling changes to Temporal graph. 3) Adding co_author, co_pi and temporal graph icons. 4) ftls related to sparklines. (CoAuthorship and CoPI) 5) Styling changes to CoAuthor/CoPI visualizations -- page.css, coauthor_style.css, coinvestigator_style.css
This commit is contained in:
parent
8dc99312c7
commit
c74821f302
34 changed files with 1358 additions and 479 deletions
|
@ -3,9 +3,10 @@
|
|||
/* Javascript for sparkline visualization on person profile page */
|
||||
|
||||
var visualization = {
|
||||
render: function(url) {
|
||||
var containerId = 'vis_container',
|
||||
container = $('#' + containerId);
|
||||
renderCoAuthor: function(url) {
|
||||
|
||||
var containerIdCoAuthor = 'vis_container_coauthor',
|
||||
containerCoAuthor = $('#' + containerIdCoAuthor);
|
||||
|
||||
//container.empty().html('<img src="${loadingImageLink}" />');
|
||||
|
||||
|
@ -15,17 +16,21 @@ var visualization = {
|
|||
'render_mode': 'dynamic',
|
||||
'vis': 'person_pub_count',
|
||||
'vis_mode': 'short',
|
||||
'container': containerId
|
||||
'container': containerIdCoAuthor
|
||||
},
|
||||
dataType: 'html',
|
||||
success:function(data){
|
||||
container.html(data);
|
||||
containerCoAuthor.html(data);
|
||||
containerCoAuthor.children("#pub_count_short_sparkline_vis").append(coAuthorIcon);
|
||||
/* containerCoAuthor.find("<img>").css("float", "left"); */
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
visualizationUrl = visualizationUrl.replace("/visualization", "/visualizationAjax");
|
||||
visualization.render(visualizationUrl);
|
||||
|
||||
visualization.renderCoAuthor(visualizationUrl);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue