MCPcopy Create free account
hub / github.com/adobe/Marinus / displayCountData

Function displayCountData

web_server/public/javascripts/data.js:103–114  ·  view source on GitHub ↗
(obj, divRef)

Source from the content-addressed store, hash-verified

101}
102
103function displayCountData(obj, divRef) {
104 var elem = document.getElementById(divRef);
105 elem.className = "";
106
107 if (Object.hasOwn(obj, "count")) {
108 elem.innerHTML = obj.count;
109 } else if (Object.hasOwn(obj, "message")) {
110 elem.innerHTML = obj.message;
111 } else {
112 elem.innerHTML = "Error parsing response.";
113 }
114}
115
116function show_distinct_fields(obj, values) {
117 let innerHTML = values[0] + ": " + obj.count.toString() + "<br/>";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected