Merge pull request #285 from dinger1986/master

added cookie warning and popups for pricing, fixed scripts in docs
This commit is contained in:
RustDesk 2023-09-10 09:59:52 +08:00 committed by GitHub
commit 0ecbab0d0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 355 additions and 45 deletions

View File

@ -45,7 +45,7 @@ The easiest way to setup automatically is using deployment scripts found [here](
You can fix the Password is required and use a reverse Base64 string in the format `{"host":"HOSTADDRESS","key":"HOSTKEY","api":"http://HOSTADDRESS:21114"}` to automatically configure the clients, this is available automatically with RustDesk Server Pro via the console.
You can also use the steps from [above](/docs/en/self-host/client-configuration/#setup-using-import-or-export) to export the string then reverse it using [this site](https://string-functions.com/reverse.aspx).
You can also use the steps from [above](/docs/en/self-host/client-configuration/#setup-using-import-or-export) to export the string, remove any `=` at the start or end of the string.
#### Put config in rustdesk.exe file name (Windows only)

View File

@ -67,16 +67,9 @@ while ($arrService.Status -ne 'Running')
cd $env:ProgramFiles\RustDesk\
$rustdesk_id = (.\RustDesk.exe --get-id | out-host)
net stop rustdesk > null
.\RustDesk.exe --config $rustdesk_cfg
$ProcessActive = Get-Process rustdesk -ErrorAction SilentlyContinue
if($ProcessActive -ne $null)
{
stop-process -ProcessName rustdesk -Force
}
Start-Process "$env:ProgramFiles\RustDesk\RustDesk.exe" "--password $rustdesk_pw" -wait
.RustDesk.exe--password $rustdesk_pw
Write-Output "..............................................."
# Show the value of the ID Variable
@ -90,14 +83,16 @@ Write-Output "..............................................."
### Windows batch/cmd
```bat
@echo off
REM Assign the value random password to the password variable
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
set alfanum=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
set rustdesk_pw=
FOR /L %%b IN (0, 1, 16) DO (
SET /A rnd_num=!RANDOM! * 62 / 32768 + 1
for /F %%c in ('echo %%alfanum:~!rnd_num!^,1%%') do set pwd=!pwd!%%c
FOR /L %%b IN (1, 1, 12) DO (
SET /A rnd_num=!RANDOM! %% 62
for %%c in (!rnd_num!) do set rustdesk_pw=!rustdesk_pw!!alfanum:~%%c,1!
)
REM Get your config string from your Web portal and Fill Below
@ -111,27 +106,22 @@ cd C:\Temp\
curl -L "https://github.com/rustdesk/rustdesk/releases/download/1.2.2/rustdesk-1.2.2-x86_64.exe" -o rustdesk.exe
rustdesk.exe --silent-install
$ServiceName = 'RustDesk'
$arrService = Get-Service -Name $ServiceName -ErrorAction SilentlyContinue
timeout /t 20
cd "C:\Program Files\RustDesk\"
for /f "delims=" %i IN ('rustdesk.exe --get-id ^| more') DO set rustdesk_id=%i
for /f "delims=" %%i IN ('rustdesk.exe --get-id ^| more') DO set rustdesk_id=%%i
net stop rustdesk > null
RustDesk.exe --config %rustdesk_cfg%
net start rustdesk > null
RustDesk.exe --password %rustdesk_pw%
echo "..............................................."
echo ...............................................
REM Show the value of the ID Variable
echo "RustDesk ID: %rustdesk_id%"
echo RustDesk ID: %rustdesk_id%
REM Show the value of the Password Variable
echo "Password: %rustdesk_pw%"
echo "..............................................."
echo Password: %rustdesk_pw%
echo ...............................................
```
### macOS Bash
@ -291,13 +281,10 @@ else
exit 1
fi
systemctl stop rustdesk
# Run the rustdesk command with --get-id and store the output in the rustdesk_id variable
rustdesk_id=$(rustdesk --get-id)
# Apply new password to RustDesk
systemctl start rustdesk
rustdesk --password $rustdesk_pw &> /dev/null
rustdesk --config $rustdesk_cfg

View File

@ -21,6 +21,7 @@
<script type="text/javascript">!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);</script>
<link href="images/favicon.png?v2" rel="shortcut icon" type="image/x-icon">
<link href="images/webclip.png" rel="apple-touch-icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.css">
<style>
:root {
--accent: #024eff;
@ -324,5 +325,27 @@ window.addEventListener("load", function() {
gtag('config', 'UA-178912857-1');
</script>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#edeff5",
"text": "#838391"
},
"button": {
"background": "#4b81e8"
}
},
"position": "bottom-right",
"content": {
"message": "This website uses cookies to ensure you get the best experience on our website.",
"dismiss": "Got it!",
"link": "Learn more"
}
});
});
</script>
</body>
</html>

View File

@ -21,6 +21,7 @@
<script type="text/javascript">!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);</script>
<link href="images/favicon.png?v2" rel="shortcut icon" type="image/x-icon">
<link href="images/webclip.png" rel="apple-touch-icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.css">
<style>
:root {
--accent: #024eff;
@ -366,5 +367,27 @@ window.addEventListener("load", function() {
gtag('config', 'UA-178912857-1');
</script>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#edeff5",
"text": "#838391"
},
"button": {
"background": "#4b81e8"
}
},
"position": "bottom-right",
"content": {
"message": "This website uses cookies to ensure you get the best experience on our website.",
"dismiss": "Got it!",
"link": "Learn more"
}
});
});
</script>
</body>
</html>

View File

@ -21,6 +21,7 @@
<script type="text/javascript">!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);</script>
<link href="images/favicon.png?v2" rel="shortcut icon" type="image/x-icon">
<link href="images/webclip.png" rel="apple-touch-icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.css">
<style>
:root {
--accent: #024eff;
@ -512,5 +513,27 @@ window.addEventListener("load", function() {
gtag('config', 'UA-178912857-1');
</script>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#edeff5",
"text": "#838391"
},
"button": {
"background": "#4b81e8"
}
},
"position": "bottom-right",
"content": {
"message": "This website uses cookies to ensure you get the best experience on our website.",
"dismiss": "Got it!",
"link": "Learn more"
}
});
});
</script>
</body>
</html>

View File

@ -21,6 +21,7 @@
<script type="text/javascript">!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);</script>
<link href="images/favicon.png?v2" rel="shortcut icon" type="image/x-icon">
<link href="images/webclip.png" rel="apple-touch-icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.css">
<style>
:root {
--accent: #024eff;
@ -348,5 +349,27 @@ window.addEventListener("load", function() {
gtag('config', 'UA-178912857-1');
</script>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#edeff5",
"text": "#838391"
},
"button": {
"background": "#4b81e8"
}
},
"position": "bottom-right",
"content": {
"message": "This website uses cookies to ensure you get the best experience on our website.",
"dismiss": "Got it!",
"link": "Learn more"
}
});
});
</script>
</body>
</html>

View File

@ -21,6 +21,8 @@
<script type="text/javascript">!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);</script>
<link href="images/favicon.png?v2" rel="shortcut icon" type="image/x-icon">
<link href="images/webclip.png" rel="apple-touch-icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11.7.27/dist/sweetalert2.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.css">
<style>
:root {
--accent: #024eff;
@ -300,7 +302,7 @@ label {
<div class="uui-padding-vertical-xhuge-11">
<div class="uui-text-align-center-5">
<div class="uui-max-width-large-6 align-center">
<div class="uui-heading-subheading-9">Pricing of self-hosting solution</div>
<div class="uui-heading-subheading-9">Pricing of our self-hosting solutions</div>
<h2 class="uui-heading-medium-9">Simple, transparent pricing</h2>
<div class="uui-space-xsmall-9"></div>
<div class="uui-text-size-large-9">We believe RustDesk should be accessible to all companies, no matter the size.</div>
@ -309,7 +311,7 @@ label {
<div data-current="Tab 1" data-easing="ease" data-duration-in="300" data-duration-out="100" class="uui-pricing08_component w-tabs">
<div class="uui-pricing08_tabs-menu w-tab-menu">
<a data-w-tab="Tab 1" class="uui-pricing08_tab-link w-inline-block w-tab-link w--current">
<div>Our Plans</div>
<div>Our Self-hosting Plans</div>
</a>
<a data-w-tab="Tab 2" class="uui-pricing08_tab-link w-inline-block w-tab-link">
<div>Other Plans &amp; Hosting</div>
@ -322,7 +324,7 @@ label {
<div class="uui-pricing08_content">
<div class="uui-pricing08_content-top">
<div class="uui-text-align-center-5">
<h2 class="uui-heading-xxsmall-2">Free plan</h2>
<h2 class="uui-heading-xxsmall-2">Free self-hosting plan</h2>
<div class="uui-pricing08_price">$0<span class="uui-pricing08_price-text">/month </span></div>
<div class="uui-text-size-medium-10">Open source and free</div>
</div>
@ -383,7 +385,7 @@ label {
<div class="uui-pricing08_content">
<div class="uui-pricing08_content-top">
<div class="uui-text-align-center-5">
<h2 class="uui-heading-xxsmall-2">Personal plan</h2>
<h2 class="uui-heading-xxsmall-2">Personal self-hosting plan</h2>
<div class="uui-pricing08_price">$9.90<span class="uui-pricing08_price-text">/month</span></div>
<div class="uui-text-size-medium-10">billed annually</div>
</div>
@ -415,7 +417,7 @@ label {
<path fill-rule="evenodd" clip-rule="evenodd" d="M17.096 7.39004L9.93602 14.3L8.03602 12.27C7.68602 11.94 7.13602 11.92 6.73602 12.2C6.34602 12.49 6.23602 13 6.47602 13.41L8.72602 17.07C8.94602 17.41 9.32601 17.62 9.75601 17.62C10.166 17.62 10.556 17.41 10.776 17.07C11.136 16.6 18.006 8.41004 18.006 8.41004C18.906 7.49004 17.816 6.68004 17.096 7.38004V7.39004Z" fill="#12B76A"></path>
</svg></div>
</div>
<div class="uui-text-size-medium-10">100 managed devices
<div class="uui-text-size-medium-10">100 managed and unattended devices
<div class="tooltip">?<span class="tooltiptext">The maximum number of
devices which can be assigned to licensed users, strategies, address book. Pro features are
applied to managed devices only</span></div>
@ -486,9 +488,9 @@ label {
</div>
</div>
</div>
<a href="https://rustdesk.com/api/lic/stripe/checkout?type=Personal" target="_blank" class="uui-button-15 w-inline-block">
<button id="buyNowButton1" class="uui-button-3 w-inline-block">
<div>Buy now</div>
</a>
</button>
</div>
</div>
<div class="uui-pricing08_popular-plan">
@ -498,7 +500,7 @@ label {
<div class="uui-pricing08_content">
<div class="uui-pricing08_content-top">
<div class="uui-text-align-center-5">
<h2 class="uui-heading-xxsmall-2">Business plan</h2>
<h2 class="uui-heading-xxsmall-2">Business self-hosting plan</h2>
<div class="uui-pricing08_price">$19.90<span class="uui-pricing08_price-text">/month</span></div>
<div class="uui-text-size-medium-10">billed annually</div>
</div>
@ -519,7 +521,7 @@ label {
<path fill-rule="evenodd" clip-rule="evenodd" d="M17.096 7.39004L9.93602 14.3L8.03602 12.27C7.68602 11.94 7.13602 11.92 6.73602 12.2C6.34602 12.49 6.23602 13 6.47602 13.41L8.72602 17.07C8.94602 17.41 9.32601 17.62 9.75601 17.62C10.166 17.62 10.556 17.41 10.776 17.07C11.136 16.6 18.006 8.41004 18.006 8.41004C18.906 7.49004 17.816 6.68004 17.096 7.38004V7.39004Z" fill="#12B76A"></path>
</svg></div>
</div>
<div class="uui-text-size-medium-10">500 managed devices</div>
<div class="uui-text-size-medium-10">500 managed and unattended devices</div>
</div>
<div id="w-node-_0ae53630-2fcd-6e7f-a2f1-2bb955c877d3-47ad0af8" class="uui-pricing08_feature">
<div class="uui-pricing08_icon-wrapper">
@ -559,9 +561,9 @@ label {
</div>
</div>
</div>
<a href="https://rustdesk.com/api/lic/stripe/checkout?type=Business" target="_blank" class="uui-button-15 w-inline-block">
<button id="buyNowButton2" class="uui-button-3 w-inline-block">
<div>Buy now</div>
</a>
</button>
</div>
</div>
</div>
@ -698,6 +700,62 @@ window.addEventListener("load", function() {
gtag('js', new Date());
gtag('config', 'UA-178912857-1');
</script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.7.27"></script>
<script>
document.getElementById("buyNowButton1").addEventListener("click", function() {
Swal.fire({
title: 'Please Confirm',
text: 'Do you want to proceed to the purchase page?',
icon: 'question',
showCancelButton: true,
confirmButtonText: 'Yes',
cancelButtonText: 'No',
}).then((result) => {
if (result.isConfirmed) {
const redirectUrl = 'https://rustdesk.com/api/lic/stripe/checkout?type=Personal';
window.location.href = redirectUrl;
}
});
});
document.getElementById("buyNowButton2").addEventListener("click", function() {
Swal.fire({
title: 'Please Confirm',
text: 'Do you want to proceed to the purchase page?',
icon: 'question',
showCancelButton: true,
confirmButtonText: 'Yes',
cancelButtonText: 'No',
}).then((result) => {
if (result.isConfirmed) {
const redirectUrl = 'https://rustdesk.com/api/lic/stripe/checkout?type=Business';
window.location.href = redirectUrl;
}
});
});
</script>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#edeff5",
"text": "#838391"
},
"button": {
"background": "#4b81e8"
}
},
"position": "bottom-right",
"content": {
"message": "This website uses cookies to ensure you get the best experience on our website.",
"dismiss": "Got it!",
"link": "Learn more"
}
});
});
</script>
</body>
</html>

View File

@ -21,6 +21,7 @@
<script type="text/javascript">!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);</script>
<link href="images/favicon.png?v2" rel="shortcut icon" type="image/x-icon">
<link href="images/webclip.png" rel="apple-touch-icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.css">
<style>
:root {
--accent: #024eff;
@ -361,5 +362,27 @@ window.addEventListener("load", function() {
gtag('config', 'UA-178912857-1');
</script>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#edeff5",
"text": "#838391"
},
"button": {
"background": "#4b81e8"
}
},
"position": "bottom-right",
"content": {
"message": "This website uses cookies to ensure you get the best experience on our website.",
"dismiss": "Got it!",
"link": "Learn more"
}
});
});
</script>
</body>
</html>

View File

@ -21,6 +21,7 @@
<script type="text/javascript">!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);</script>
<link href="images/favicon.png?v2" rel="shortcut icon" type="image/x-icon">
<link href="images/webclip.png" rel="apple-touch-icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.css">
<style>
:root {
--accent: #024eff;
@ -328,5 +329,27 @@ window.addEventListener("load", function() {
gtag('config', 'UA-178912857-1');
</script>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#edeff5",
"text": "#838391"
},
"button": {
"background": "#4b81e8"
}
},
"position": "bottom-right",
"content": {
"message": "This website uses cookies to ensure you get the best experience on our website.",
"dismiss": "Got it!",
"link": "Learn more"
}
});
});
</script>
</body>
</html>

View File

@ -21,6 +21,7 @@
<script type="text/javascript">!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);</script>
<link href="images/favicon.png?v2" rel="shortcut icon" type="image/x-icon">
<link href="images/webclip.png" rel="apple-touch-icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.css">
<style>
:root {
--accent: #024eff;
@ -408,5 +409,27 @@ window.addEventListener("load", function() {
gtag('config', 'UA-178912857-1');
</script>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#edeff5",
"text": "#838391"
},
"button": {
"background": "#4b81e8"
}
},
"position": "bottom-right",
"content": {
"message": "This website uses cookies to ensure you get the best experience on our website.",
"dismiss": "Got it!",
"link": "Learn more"
}
});
});
</script>
</body>
</html>

View File

@ -21,6 +21,7 @@
<script type="text/javascript">!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);</script>
<link href="images/favicon.png?v2" rel="shortcut icon" type="image/x-icon">
<link href="images/webclip.png" rel="apple-touch-icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.css">
<style>
:root {
--accent: #024eff;
@ -383,5 +384,27 @@ window.addEventListener("load", function() {
gtag('config', 'UA-178912857-1');
</script>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#edeff5",
"text": "#838391"
},
"button": {
"background": "#4b81e8"
}
},
"position": "bottom-right",
"content": {
"message": "This website uses cookies to ensure you get the best experience on our website.",
"dismiss": "Got it!",
"link": "Learn more"
}
});
});
</script>
</body>
</html>

View File

@ -21,6 +21,7 @@
<script type="text/javascript">!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);</script>
<link href="../images/favicon.png" rel="shortcut icon" type="image/x-icon">
<link href="../images/webclip.png" rel="apple-touch-icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.css">
<style>
:root {
--accent: #024eff;
@ -506,5 +507,27 @@ window.addEventListener("load", function() {
gtag('config', 'UA-178912857-1');
</script>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#edeff5",
"text": "#838391"
},
"button": {
"background": "#4b81e8"
}
},
"position": "bottom-right",
"content": {
"message": "This website uses cookies to ensure you get the best experience on our website.",
"dismiss": "Got it!",
"link": "Learn more"
}
});
});
</script>
</body>
</html>

View File

@ -21,6 +21,8 @@
<script type="text/javascript">!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);</script>
<link href="../images/favicon.png" rel="shortcut icon" type="image/x-icon">
<link href="../images/webclip.png" rel="apple-touch-icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11.7.27/dist/sweetalert2.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.css">
<style>
:root {
--accent: #024eff;
@ -486,9 +488,9 @@ label {
</div>
</div>
</div>
<a href="https://rustdesk.com/api/lic/stripe/checkout?type=Personal&currency=cny" target="_blank" class="uui-button-15 w-inline-block">
<div>购买</div>
</a>
<button id="buyNowButton1" class="uui-button-3 w-inline-block">
<div>Buy now</div>
</button>
</div>
</div>
<div class="uui-pricing08_popular-plan">
@ -559,9 +561,9 @@ label {
</div>
</div>
</div>
<a href="https://rustdesk.com/api/lic/stripe/checkout?type=Business&currency=cny" target="_blank" class="uui-button-15 w-inline-block">
<div>购买</div>
</a>
<button id="buyNowButton2" class="uui-button-3 w-inline-block">
<div>Buy now</div>
</button>
</div>
</div>
</div>
@ -693,5 +695,61 @@ window.addEventListener("load", function() {
gtag('config', 'UA-178912857-1');
</script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.7.27"></script>
<script>
document.getElementById("buyNowButton1").addEventListener("click", function() {
Swal.fire({
title: 'Please Confirm',
text: 'Do you want to proceed to the purchase page?',
icon: 'question',
showCancelButton: true,
confirmButtonText: 'Yes',
cancelButtonText: 'No',
}).then((result) => {
if (result.isConfirmed) {
const redirectUrl = 'https://rustdesk.com/api/lic/stripe/checkout?type=Personal&currency=cny';
window.location.href = redirectUrl;
}
});
});
document.getElementById("buyNowButton2").addEventListener("click", function() {
Swal.fire({
title: 'Please Confirm',
text: 'Do you want to proceed to the purchase page?',
icon: 'question',
showCancelButton: true,
confirmButtonText: 'Yes',
cancelButtonText: 'No',
}).then((result) => {
if (result.isConfirmed) {
const redirectUrl = 'https://rustdesk.com/api/lic/stripe/checkout?type=Business&currency=cny';
window.location.href = redirectUrl;
}
});
});
</script>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#edeff5",
"text": "#838391"
},
"button": {
"background": "#4b81e8"
}
},
"position": "bottom-right",
"content": {
"message": "This website uses cookies to ensure you get the best experience on our website.",
"dismiss": "Got it!",
"link": "Learn more"
}
});
});
</script>
</body>
</html>