-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (30 loc) · 893 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<html>
<head>
<script type="application/javascript" src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
</head>
<body>
<div id="ress"></div>
<script type="application/javascript">
function createReport() {
let html = "";
for(const r of window.all) {
html += `<div id="${r.msg.toLowerCase().replace(/ /g, "_")}">
<h3>${r.msg}</h3>
<strong>${r.errorMsg}</strong>
<div>
${r.links.map(l => `<img src="data:image/png;base64,${l}">`)}
</div>
</div>`;
}
$("#ress").append($(html));
}
$( document ).ready(function() {
$.get("index.json", function(data, _status) {
window.all = data.slice();
console.log(all);
createReport();
});
});
</script>
</body>
</html>