MCPcopy Create free account
hub / github.com/error311/FileRise / toggleVisibility

Function toggleVisibility

public/js/domUtils.js:30–37  ·  view source on GitHub ↗
(elementId, shouldShow)

Source from the content-addressed store, hash-verified

28
29// Basic DOM Helpers
30export function toggleVisibility(elementId, shouldShow) {
31 const element = document.getElementById(elementId);
32 if (element) {
33 element.style.display = shouldShow ? "block" : "none";
34 } else {
35 console.error(t("element_not_found", { id: elementId }));
36 }
37}
38
39export function escapeHTML(str) {
40 return String(str)

Callers 7

updateAuthenticatedUIFunction · 0.85
checkAuthenticationFunction · 0.85
closeAddUserModalFunction · 0.85
closeRemoveUserModalFunction · 0.85
initAuthFunction · 0.85
afterTrashMutationFunction · 0.85
setupTrashRestoreDeleteFunction · 0.85

Calls 1

tFunction · 0.85

Tested by

no test coverage detected