Commit 90a85e29 authored by Iker Hurtado's avatar Iker Hurtado
Browse files

Deliverable 2.1 - version 1.6

parent b25df796
......@@ -345,14 +345,14 @@
<button class="next" disabled>NEXT RESULTS &gt;&gt;</button></div>\
<div style="clear: both;"></div>\
</div>\
<table> <thead> \
<th>Formula</th> \
<table> <thead > \
<tr class="rsHead"><th>Formula</th> \
<th>Number of Atoms</th> \
<th>Space Group</th> \
<th>Code name</th> \
<th>Basis set type</th> \
<th>XC treatment</th> \
</thead><tbody> \
<th>Code Name</th> \
<th>Basis Set Type</th> \
<th>XC Treatment</th> \
</tr></thead><tbody> \
</tbody></table>';
//this.resultsNrTag= document.getElementById("resultsNr");
......@@ -405,9 +405,12 @@
this.resultsNrTag.innerHTML= data[0]['nr_results']+' results found';
}
data.forEach(function(el){
html+= '<tr><td>'+el["formula"]+'</td><td>'+el["nr_atoms"]+'</td><td>'+
el["space_group"]+'</td><td>'+el["code_name"]+'</td><td>'+
el["basis_set_type"]+'</td><td>'+el["xc_treatment_basis"]+'</td></tr>';
html+= '<tr class="rsCol" ><td class="left">'+el["formula"]+'</td>\
<td class="right">'+el["nr_atoms"]+'</td>\
<td class="right">'+el["space_group"]+'</td>\
<td class="left">'+el["code_name"]+'</td>\
<td class="left">'+el["basis_set_type"]+'</td>\
<td class="left">'+el["xc_treatment_basis"]+'</td></tr>';
//console.log("data: "+JSON.stringify(el)+" "+el["code version"]);
});
......
......@@ -181,5 +181,16 @@ tr:nth-child(odd) td { background: #FEFEFE; }
#paginationWg button:disabled{ color: #CCC;cursor: default;}
#paginationWg span{ display:inline-block; margin:0 auto !important; }
tr.rsHead th{ padding: 2px 12px;text-align: left;}
tr.rsCol td{ padding: 2px 12px;}
tr.rsCol td.left{
text-align: left;
}
tr.rsCol td.right{
text-align: right;
}
/*#paginationWg .left { float: left }
#paginationWg .right { float: right }*/
......@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8">
<title>NoMaD</title>
<title>NOMAD</title>
<link rel="stylesheet" href="client/css/styles.css"/>
......
......@@ -25,14 +25,14 @@ ResultSet.prototype._init = function() {
<button class="next" disabled>NEXT RESULTS &gt;&gt;</button></div>\
<div style="clear: both;"></div>\
</div>\
<table> <thead> \
<th>Formula</th> \
<table> <thead > \
<tr class="rsHead"><th>Formula</th> \
<th>Number of Atoms</th> \
<th>Space Group</th> \
<th>Code name</th> \
<th>Basis set type</th> \
<th>XC treatment</th> \
</thead><tbody> \
<th>Code Name</th> \
<th>Basis Set Type</th> \
<th>XC Treatment</th> \
</tr></thead><tbody> \
</tbody></table>';
//this.resultsNrTag= document.getElementById("resultsNr");
......@@ -85,9 +85,12 @@ ResultSet.prototype.addResults = function(data) {
this.resultsNrTag.innerHTML= data[0]['nr_results']+' results found';
}
data.forEach(function(el){
html+= '<tr><td>'+el["formula"]+'</td><td>'+el["nr_atoms"]+'</td><td>'+
el["space_group"]+'</td><td>'+el["code_name"]+'</td><td>'+
el["basis_set_type"]+'</td><td>'+el["xc_treatment_basis"]+'</td></tr>';
html+= '<tr class="rsCol" ><td class="left">'+el["formula"]+'</td>\
<td class="right">'+el["nr_atoms"]+'</td>\
<td class="right">'+el["space_group"]+'</td>\
<td class="left">'+el["code_name"]+'</td>\
<td class="left">'+el["basis_set_type"]+'</td>\
<td class="left">'+el["xc_treatment_basis"]+'</td></tr>';
//console.log("data: "+JSON.stringify(el)+" "+el["code version"]);
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment