MCPcopy Create free account
hub / github.com/Threadfin/Threadfin / showLogs

Function showLogs

ts/logs_ts.ts:26–56  ·  view source on GitHub ↗
(bottom:boolean)

Source from the content-addressed store, hash-verified

24}
25
26function showLogs(bottom:boolean) {
27
28 var log = new Log()
29
30 var logs = SERVER["log"]["log"]
31 var div = document.getElementById("content_log")
32
33 div.innerHTML = ""
34
35 var keys = getObjKeys(logs)
36
37 keys.forEach(logID => {
38
39 var entry = log.createLog(logs[logID])
40
41 div.append(entry)
42
43 });
44
45 setTimeout(function(){
46
47 if (bottom == true) {
48
49 var wrapper = document.getElementById("box-wrapper");
50 wrapper.scrollTop = wrapper.scrollHeight;
51
52 }
53
54 }, 10);
55
56}
57
58function resetLogs() {
59

Callers 2

initWebSocketFunction · 0.70
showMethod · 0.70

Calls 2

createLogMethod · 0.95
getObjKeysFunction · 0.70

Tested by

no test coverage detected