Skip to content

Commit

Permalink
update style
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed Jun 17, 2024
1 parent 9a12824 commit ebe20bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions static/case/case.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ $(window).ready(() => {
let x = data.cases.find((x) => x.id == caseId);
//console.log(x);

$('#caseId').html(x.id);
$('#caseId').removeClass().addClass('retCode_' + x.l2v5RetCode);
$('#caseId div.part3').html(x.id);
$('#caseId div.part1').addClass('retCode_' + x.l2v5RetCode);
$('#caseId div.part2').addClass('retCode_' + x.l3v2RetCode);
$('#casePath').html(`${path}/cases/${x.id}/`);
$('#retCode').html(x.l2v5RetCode);

Expand Down
6 changes: 5 additions & 1 deletion static/case/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
<div>
<h1>SBML case results</h1>
<div id="preamble">
<h2 id="caseId"></h2>
<h2 id="caseId" class="item">
<div class="part3"></div>
<div class="part1"></div>
<div class="part2"></div>
</h2>
<p>Case path: <span id="casePath"></span></p>
<p>Return code: <span id="retCode"></span></p>
</div>
Expand Down

0 comments on commit ebe20bc

Please sign in to comment.