mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 23:36:16 -04:00
Improved HTML output sizing
This commit is contained in:
parent
7eda2fd4a6
commit
80e8b2339d
5 changed files with 17 additions and 9 deletions
|
@ -358,7 +358,7 @@ class Entropy extends Operation {
|
|||
|
||||
<br><script>
|
||||
var canvas = document.getElementById("chart-area"),
|
||||
parentRect = canvas.parentNode.getBoundingClientRect(),
|
||||
parentRect = canvas.closest(".cm-scroller").getBoundingClientRect(),
|
||||
entropy = ${entropy},
|
||||
height = parentRect.height * 0.25;
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ The graph shows the IC of the input data. A low IC generally means that the text
|
|||
|
||||
<script type='application/javascript'>
|
||||
var canvas = document.getElementById("chart-area"),
|
||||
parentRect = canvas.parentNode.getBoundingClientRect(),
|
||||
parentRect = canvas.closest(".cm-scroller").getBoundingClientRect(),
|
||||
ic = ${ic};
|
||||
|
||||
canvas.width = parentRect.width * 0.95;
|
||||
|
|
|
@ -94,14 +94,8 @@ class ShowOnMap extends Operation {
|
|||
#output-text .cm-content,
|
||||
#output-text .cm-line,
|
||||
#output-html {
|
||||
display: block;
|
||||
white-space: normal;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
}
|
||||
#output-text .cm-line .cm-widgetBuffer,
|
||||
#output-text .cm-line br {
|
||||
display: none;
|
||||
white-space: normal;
|
||||
}
|
||||
</style>
|
||||
<div id="presentedMap" style="width: 100%; height: 100%;"></div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue