|
@ -59,6 +59,18 @@ $(function () { |
|
|
var lastPingUrl = base + "/checks/" + code + "/last_ping/"; |
|
|
var lastPingUrl = base + "/checks/" + code + "/last_ping/"; |
|
|
$.get(lastPingUrl, function(data) { |
|
|
$.get(lastPingUrl, function(data) { |
|
|
$("#ping-details-body" ).html(data); |
|
|
$("#ping-details-body" ).html(data); |
|
|
|
|
|
var htmlPre = $("#email-body-html pre"); |
|
|
|
|
|
if (htmlPre.length) { |
|
|
|
|
|
var opts = {USE_PROFILES: {html: true}}; |
|
|
|
|
|
var clean = DOMPurify.sanitize(htmlPre.text(), opts); |
|
|
|
|
|
var blob = new Blob([clean], {type: "text/html; charset=utf-8"}); |
|
|
|
|
|
|
|
|
|
|
|
var iframe = document.createElement("iframe"); |
|
|
|
|
|
iframe.sandbox = ""; |
|
|
|
|
|
iframe.src = URL.createObjectURL(blob); |
|
|
|
|
|
|
|
|
|
|
|
htmlPre.replaceWith(iframe); |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
var logUrl = base + "/checks/" + code + "/log/"; |
|
|
var logUrl = base + "/checks/" + code + "/log/"; |
|
|