fix cookie, pricing etc

This commit is contained in:
rustdesk
2023-09-11 01:28:24 +08:00
parent 17744b5ee0
commit 50ca3f4ee3
15 changed files with 173 additions and 248 deletions

View File

@@ -21,8 +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">
<link rel="stylesheet" href="./sweetalert2.min.css">
<link rel="stylesheet" href="./cookieconsent.min.css">
<style>
:root {
--accent: #024eff;
@@ -701,12 +701,12 @@ window.addEventListener("load", function() {
gtag('config', 'UA-178912857-1');
</script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.7.27"></script>
<script src="sweetalert2@11.7.27.js"></script>
<script>
document.getElementById("buyNowButton1").addEventListener("click", function() {
Swal.fire({
title: 'Please Confirm',
text: 'Do you want to proceed to the purchase page?',
text: 'Do you want to proceed to the purchase page? Please note that what you are not purchasing is not a SaaS (Software as a Service) subscription. Instead, it is a license for a self-hosting solution, which requires you to deploy it on your own server.',
icon: 'question',
showCancelButton: true,
confirmButtonText: 'Yes',
@@ -714,7 +714,7 @@ window.addEventListener("load", function() {
}).then((result) => {
if (result.isConfirmed) {
const redirectUrl = 'https://rustdesk.com/api/lic/stripe/checkout?type=Personal';
window.location.href = redirectUrl;
window.open(redirectUrl, '_blank');
}
});
});
@@ -722,7 +722,7 @@ window.addEventListener("load", function() {
document.getElementById("buyNowButton2").addEventListener("click", function() {
Swal.fire({
title: 'Please Confirm',
text: 'Do you want to proceed to the purchase page?',
text: 'Do you want to proceed to the purchase page? Please note that what you are not purchasing is not a SaaS (Software as a Service) subscription. Instead, it is a license for a self-hosting solution, which requires you to deploy it on your own server.',
icon: 'question',
showCancelButton: true,
confirmButtonText: 'Yes',
@@ -730,32 +730,12 @@ window.addEventListener("load", function() {
}).then((result) => {
if (result.isConfirmed) {
const redirectUrl = 'https://rustdesk.com/api/lic/stripe/checkout?type=Business';
window.location.href = redirectUrl;
window.open(redirectUrl, '_blank');
}
});
});
</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>
<script src="./cookieconsent.min.js"></script>
<script src="./cookieconsent-init.js"></script>
</body>
</html>