mirror of
https://github.com/gchq/CyberChef
synced 2026-01-03 09:03:37 +00:00
Added UI tests for all HTML operations
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user