Skip to content

Commit

Permalink
Remove unused functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsv committed Dec 17, 2021
1 parent b8d7126 commit aec0d4a
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions source/viewer/domutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,6 @@ OV.AddRadioButton = function (parentElement, name, id, text, onChange)
return radio;
};

OV.AddSelect = function (parentElement, options)
{
let selectElement = OV.AddDomElement (parentElement, 'select');
for (let option of options) {
let optionElement = OV.AddDomElement (selectElement, 'option');
optionElement.value = option.value;
optionElement.innerHTML = option.text;
}
return selectElement;
};

OV.AddRangeSlider = function (parentElement, min, max)
{
let slider = OV.AddDomElement (parentElement, 'input', 'ov_slider');
Expand All @@ -147,23 +136,6 @@ OV.AddRangeSlider = function (parentElement, min, max)
return slider;
};

OV.AddNumberInput = function (parentElement, min, max)
{
let slider = OV.AddDomElement (parentElement, 'input', 'ov_number_input');
slider.setAttribute ('type', 'number');
slider.setAttribute ('min', min.toString ());
slider.setAttribute ('max', max.toString ());
return slider;
};

OV.SelectRadioButton = function (radioButtons, selectedId)
{
for (let radioButton of radioButtons) {
let isChecked = radioButton.getAttribute ('id') === selectedId;
radioButton.checked = isChecked;
}
};

OV.AddToggle = function (parentElement, className)
{
function UpdateStatus (toggle, status)
Expand Down

0 comments on commit aec0d4a

Please sign in to comment.