MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / showLogs

Function showLogs

html/js/logs_ts.js:17–33  ·  view source on GitHub ↗
(bottom)

Source from the content-addressed store, hash-verified

15 }
16}
17function showLogs(bottom) {
18 var log = new Log();
19 var logs = SERVER["log"]["log"];
20 var div = document.getElementById("content_log");
21 div.innerHTML = "";
22 var keys = getObjKeys(logs);
23 keys.forEach(logID => {
24 var entry = log.createLog(logs[logID]);
25 div.append(entry);
26 });
27 setTimeout(function () {
28 if (bottom == true) {
29 var wrapper = document.getElementById("box-wrapper");
30 wrapper.scrollTop = wrapper.scrollHeight;
31 }
32 }, 10);
33}
34function resetLogs() {
35 var cmd = "resetLogs";
36 var data = new Object();

Callers 2

initWebSocketFunction · 0.70
showMethod · 0.70

Calls 2

createLogMethod · 0.95
getObjKeysFunction · 0.70

Tested by

no test coverage detected