mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 23:36:16 -04:00
Added UI tests for all HTML operations
This commit is contained in:
parent
36aafb9246
commit
7eda2fd4a6
6 changed files with 131 additions and 55 deletions
|
@ -90,7 +90,20 @@ class ShowOnMap extends Operation {
|
|||
leafletUrl = "https://unpkg.com/leaflet@1.5.0/dist/leaflet.js",
|
||||
leafletCssUrl = "https://unpkg.com/leaflet@1.5.0/dist/leaflet.css";
|
||||
return `<link rel="stylesheet" href="${leafletCssUrl}" crossorigin=""/>
|
||||
<style>#output-html { white-space: normal; padding: 0; }</style>
|
||||
<style>
|
||||
#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;
|
||||
}
|
||||
</style>
|
||||
<div id="presentedMap" style="width: 100%; height: 100%;"></div>
|
||||
<script type="text/javascript">
|
||||
var mapscript = document.createElement('script');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue