mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2025-02-04 20:40:15 +01:00
control min value
This commit is contained in:
parent
74e2fa487e
commit
7af914e4cb
@ -522,12 +522,18 @@ label {
|
||||
document.getElementById("cprice").innerText = price.toFixed(2);
|
||||
}
|
||||
|
||||
document.getElementById("users").oninput = function() {
|
||||
document.getElementById("users").onchange = function() {
|
||||
if (this.value < 20) {
|
||||
this.value = 20;
|
||||
}
|
||||
document.getElementById("usersSlider").value = this.value;
|
||||
calculatePrice();
|
||||
}
|
||||
|
||||
document.getElementById("devices").oninput = function() {
|
||||
document.getElementById("devices").onchange = function() {
|
||||
if (this.value < 500) {
|
||||
this.value = 500;
|
||||
}
|
||||
document.getElementById("devicesSlider").value = this.value;
|
||||
calculatePrice();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user