This commit is contained in:
2025-08-07 09:29:50 +00:00
parent 2f99a07ef7
commit c95880d22f
2 changed files with 7 additions and 5 deletions

View File

@@ -124,8 +124,8 @@ function check_vpn() {
$('#pro_on').show(); $('#pro_on').show();
$('#vpn_off').hide(); $('#vpn_off').hide();
$('#vpn_on').show(); $('#vpn_on').show();
document.getElementById('vpnToggle').checked = true; //document.getElementById('vpnToggle').checked = true;
document.querySelector(".switch-label").textContent = "ON"; //document.querySelector(".switch-label").textContent = "ON";
} }
} }
else if (data=="2") { else if (data=="2") {
@@ -133,8 +133,8 @@ function check_vpn() {
$('#pro_on').show(); $('#pro_on').show();
$('#vpn_on').hide(); $('#vpn_on').hide();
$('#vpn_off').show(); $('#vpn_off').show();
document.getElementById('vpnToggle').checked = false; //document.getElementById('vpnToggle').checked = false;
document.querySelector(".switch-label").textContent = "OFF"; //document.querySelector(".switch-label").textContent = "OFF";
} }
else { // data == 0 else { // data == 0
$('#pro_on').hide(); $('#pro_on').hide();

View File

@@ -42,7 +42,7 @@
</div> </div>
<p>Enjoy benefits and unlock more feature such as remote access, geo-redundant backups etc. <br><br> <p>Enjoy benefits and unlock more feature such as remote access, geo-redundant backups etc. <br><br>
<a href="" class="details">Read details</a><br><br> <a href="" class="details">Read details</a><br><br>
<img src="/img/upgrade.png" alt="Upgrade now" width="80%"/> <img src="/img/upgrade.png" alt="Upgrade now" width="80%" id="vpnBtn"/>
</p> </p>
</div> </div>
</div> </div>
@@ -345,6 +345,7 @@
// renderApps(true); // renderApps(true);
/*
const vpnToggle = document.getElementById("vpnToggle"); const vpnToggle = document.getElementById("vpnToggle");
const vpnLabel = document.querySelector(".switch-label"); const vpnLabel = document.querySelector(".switch-label");
@@ -359,6 +360,7 @@
// Alapállapot beállítása // Alapállapot beállítása
updateStatus(); updateStatus();
*/
}); });
</script> </script>