diff --git a/web/static/index.html b/web/static/index.html index b748e172e..e50391d8f 100644 --- a/web/static/index.html +++ b/web/static/index.html @@ -34,9 +34,12 @@ document.getElementById("json_length").innerText = ""; renderjson.set_icons('▶','▼') renderjson.set_collapse_msg(function (asd) {return "...";}); + arr = []; for (let i=1; i<=length; i++) { value = document.getElementById("json_event_"+i).innerText; + arr.push(value); document.getElementById("json_event_"+i).innerText = ""; + document.getElementById("json_clipboard_"+i).addEventListener("click", function() { navigator.clipboard.writeText(arr[i-1]); }); document.getElementById("json_event_"+i).appendChild(renderjson(JSON.parse(value))); } diff --git a/web/static/report/json_parse.js b/web/static/report/json_parse.js index 5fd5226f5..b1c56bae0 100644 --- a/web/static/report/json_parse.js +++ b/web/static/report/json_parse.js @@ -3,9 +3,12 @@ document.getElementById("json_length").innerText = ""; renderjson.set_icons('▶','▼') renderjson.set_collapse_msg(function (asd) {return "...";}); + arr = []; for (let i=1; i<=length; i++) { value = document.getElementById("json_event_"+i).innerText; + arr.push(value); document.getElementById("json_event_"+i).innerText = ""; + document.getElementById("json_clipboard_"+i).addEventListener("click", function() { navigator.clipboard.writeText(arr[i-1]); }); document.getElementById("json_event_"+i).appendChild(renderjson(JSON.parse(value))); } \ No newline at end of file diff --git a/web/static/report/table_items.html b/web/static/report/table_items.html index 7218e73fa..da669a47e 100644 --- a/web/static/report/table_items.html +++ b/web/static/report/table_items.html @@ -1 +1,4 @@ -{0}{1}{2}{3}{4}{6} \ No newline at end of file +{0}{1}{2}{3}{4}
{6}
\ No newline at end of file