mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2024-12-27 01:19:41 +01:00
chore
This commit is contained in:
parent
33f39f4352
commit
f6dc4fb169
@ -490,72 +490,6 @@ label {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div data-w-tab="Tab 2" class="uui-pricing08_tab-pane w-tab-pane">
|
||||
<div class="w-layout-grid uui-pricing08_components">
|
||||
<div id="w-node-_0ae53630-2fcd-6e7f-a2f1-2bb955c877ee-47ad0af8"></div>
|
||||
<div class="uui-pricing08_plan">
|
||||
<div class="uui-text-align-center-5">
|
||||
<h2 class="uui-heading-xxsmall-2">Customized plan</h2>
|
||||
<div class="uui-pricing08_price">$<span id="cprice">19.90</span><span class="uui-pricing08_price-text">/month</span></div>
|
||||
<div class="uui-text-size-medium-10">billed annually</div>
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
<form>
|
||||
<label for="users">Number of Licensed Users:</label>
|
||||
<input type="number" id="users" name="users" value="20" min="20" max="1000"><br>
|
||||
<input type="range" id="usersSlider" class="slider" name="usersRange" value="20" min="20" max="1000"><br>
|
||||
|
||||
<label for="devices">Number of Managed Devices:</label>
|
||||
<input type="number" id="devices" name="devices" value="500" min="500" max="25000"><br>
|
||||
<input type="range" id="devicesSlider" class="slider" name="devicesRange" value="500" min="500" max="25000">
|
||||
</form>
|
||||
<br>
|
||||
<script>
|
||||
function submit() {
|
||||
location.href = "https://rustdesk.com/api/lic/stripe/checkout?type=Customized&users=" + document.getElementById("users").value + "&devices=" + document.getElementById("devices").value;
|
||||
}
|
||||
function calculatePrice() {
|
||||
var users = parseInt(document.getElementById("users").value);
|
||||
var devices = parseInt(document.getElementById("devices").value);
|
||||
var price = 19.9 * (users / 20 + devices / 500) / 2;
|
||||
document.getElementById("cprice").innerText = price.toFixed(2);
|
||||
}
|
||||
|
||||
document.getElementById("users").onchange = function() {
|
||||
if (this.value < 20) {
|
||||
this.value = 20;
|
||||
}
|
||||
document.getElementById("usersSlider").value = this.value;
|
||||
calculatePrice();
|
||||
}
|
||||
|
||||
document.getElementById("devices").onchange = function() {
|
||||
if (this.value < 500) {
|
||||
this.value = 500;
|
||||
}
|
||||
document.getElementById("devicesSlider").value = this.value;
|
||||
calculatePrice();
|
||||
}
|
||||
|
||||
document.getElementById("usersSlider").oninput = function() {
|
||||
document.getElementById("users").value = this.value;
|
||||
calculatePrice();
|
||||
}
|
||||
|
||||
document.getElementById("devicesSlider").oninput = function() {
|
||||
document.getElementById("devices").value = this.value;
|
||||
calculatePrice();
|
||||
}
|
||||
</script>
|
||||
<div class="uui-pricing08_content">
|
||||
<a href="#" class="uui-button-15 w-inline-block" onClick="submit()">
|
||||
<div>Buy now</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div data-w-tab="Tab 2" class="uui-pricing08_tab-pane w-tab-pane">
|
||||
<div class="w-layout-grid uui-pricing08_components">
|
||||
<div id="w-node-_0ae53630-2fcd-6e7f-a2f1-2bb955c877ee-47ad0af8"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user