tomlplusplus/docs/muu.js
Mark Gillard 6b8fa1bef5 fixed source information being copied when copying nodes
also:
- many minor documentation fixes
- added pull request template
2020-07-30 23:31:08 +03:00

19 lines
403 B
JavaScript

function ToggleEnableIf(anchor)
{
if (!anchor.hasOwnProperty('enableIfHidden'))
anchor['enableIfHidden'] = true;
anchor.enableIfHidden = !anchor.enableIfHidden;
content = anchor.parentNode.getElementsByTagName('span')[0]
if (anchor.enableIfHidden)
{
anchor.style.display = "";
content.style.display = "";
}
else
{
anchor.style.display = "none";
content.style.display = "block";
}
}