Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed Jun 17, 2024
1 parent bbccb7f commit 81e12aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions static/case/case.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const url = new URL(window.location.href);
let p = new URLSearchParams(url.search);
let caseId = p.get('id');
const path = '../../' + config.path;
const path = '../' + config.path;

$(window).ready(() => {
$.get(`${path}/summary.json`, (data) => {
let x = data.cases.find((x) => x.id == caseId);
console.log(x);
//console.log(x);

$('#caseId').html(x.id);
$('#caseId').removeClass().addClass('retCode_' + x.l2v5RetCode);
Expand Down
2 changes: 1 addition & 1 deletion static/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
window.config = {
results: './results.json',
figPath: './cases/output',
path: 'result/latest',
path: 'latest',
};

0 comments on commit 81e12aa

Please sign in to comment.