Skip to content

Commit

Permalink
Copy vector to next line of output.
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneycb committed Aug 15, 2019
1 parent 2702ca8 commit d5d9658
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Expand Up @@ -181,6 +181,7 @@ function showOutput() {
$('#matrix-output').html(matrixString);
$('#vector-output').html(vectorString);
$('#expanded-matrix').html(expandedMatrixString);
$('#vector-copy').html(vectorString);
MathJax.Hub.Queue(["Typeset", MathJax.Hub, "output-container"]);
showEquations();
}
Expand Down
Expand Up @@ -32,7 +32,8 @@

#matrix-output,
#vector-output,
#expanded-matrix {
#expanded-matrix,
#vector-copy {
> span {
display: inline !important;
}
Expand Down
2 changes: 2 additions & 0 deletions csfieldguide/templates/interactives/matrix-simplifier.html
Expand Up @@ -96,6 +96,8 @@ <h5>{% trans "Output" %}</h5>
\end{bmatrix}
\] =
<div id="expanded-matrix" class="d-inline"></div>
+
<div id="vector-copy" class="d-inline"></div>
</div>
</div>
</div>
Expand Down

0 comments on commit d5d9658

Please sign in to comment.