MCPcopy Create free account
hub / github.com/su-kaka/gcli2api / getInt

Function getInt

front/common.js:2785–2785  ·  view source on GitHub ↗
(id, def = 0)

Source from the content-addressed store, hash-verified

2783 try {
2784 const getValue = (id, def = '') => document.getElementById(id)?.value.trim() || def;
2785 const getInt = (id, def = 0) => parseInt(document.getElementById(id)?.value) || def;
2786 const getFloat = (id, def = 0.0) => parseFloat(document.getElementById(id)?.value) || def;
2787 const getChecked = (id, def = false) => document.getElementById(id)?.checked || def;
2788

Callers 1

saveConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected