mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 10:01:53 +08:00
hid outputs switch
This commit is contained in:
@@ -141,6 +141,12 @@ export var tools = new function() {
|
||||
el.value = value;
|
||||
};
|
||||
|
||||
this.radioMakeItem = function(name, title, value) {
|
||||
return `
|
||||
<input type="radio" id="${name}-${value}" name="${name}" value="${value}" />
|
||||
<label for="${name}-${value}">${title}</label>
|
||||
`;
|
||||
};
|
||||
this.radioSetOnClick = function(name, callback) {
|
||||
for (let el of $$$(`input[type="radio"][name="${name}"]`)) {
|
||||
this.setOnClick(el, callback);
|
||||
|
||||
Reference in New Issue
Block a user