Skip to content

Commit

Permalink
fix formula not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbzm committed Sep 18, 2024
1 parent 8d5e547 commit eb389ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions project-page/index_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
<script src="static/js/datatables.min.js"></script>


<script async src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.11/katex.min.js" integrity="sha512-1kNZVA50gKlorLAWU83+SdOAUwABzfFFQ4WuOAZTeS/UhNhnm9zU7rDv/Q5NEzSnr5u2L6uhR/+8icjjmHjSnQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link async rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.11/katex.min.css" integrity="sha512-J8je2SgrCzA7hNBeiCJiA6oETHTTdp3We3EriOgJp6POycGLcDXj5dSwWlAPQcYGeaQ4N3uf30aOg/Nt5pxW2g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.11/katex.min.js" integrity="sha512-1kNZVA50gKlorLAWU83+SdOAUwABzfFFQ4WuOAZTeS/UhNhnm9zU7rDv/Q5NEzSnr5u2L6uhR/+8icjjmHjSnQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link defer rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.11/katex.min.css" integrity="sha512-J8je2SgrCzA7hNBeiCJiA6oETHTTdp3We3EriOgJp6POycGLcDXj5dSwWlAPQcYGeaQ4N3uf30aOg/Nt5pxW2g==" crossorigin="anonymous" referrerpolicy="no-referrer" />


</head>
Expand Down Expand Up @@ -352,8 +352,7 @@ <h1 class="title is-1 publication-title">
var checkboxStates = {{ checkbox_states|safe }};
var groupColors = {{ groupcolors | safe }};
var rankCombinations = {{ rank_combinations | safe }};
var metricFormulas = {{ metric_formulas | safe }}; // metricFormulas["1111"]
document.getElementById('formula').innerHTML = katex.renderToString(metricFormulas["1111"])
var metricFormulas = {{ metric_formulas | safe }};

</script>

Expand Down
2 changes: 2 additions & 0 deletions project-page/static/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ window.addEventListener('load', () => {
drawPlotsSequentially();

window.addEventListener('resize', resizePlots);

document.getElementById('formula').innerHTML = katex.renderToString(metricFormulas["1111"])

switchInput.addEventListener('change', function() {
if (this.checked) {
Expand Down

0 comments on commit eb389ea

Please sign in to comment.