MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / BuildComponentJson

Function BuildComponentJson

www/js/json_api.js:95–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 });
94
95function BuildComponentJson()
96{
97 $('button[name="compStateButtons"]').each(function(i, obj) {
98 $(this).removeClass('disabled');
99 });
100
101 var component = $('input[name="compState"]:checked').val();
102 var state = $('input[name="compState_onoff"]:checked').val();
103 var finJson = componentJson.replace("{0}", component).replace("{1}", state);
104 $("#compState_json").text(finJson);
105}
106////////////////////////////////////////////////////////////////////////////////
107var switchJson =
108`{

Callers 1

json_api.jsFile · 0.85

Calls 1

$Function · 0.50

Tested by

no test coverage detected