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

View File

@@ -42,7 +42,7 @@
</div>
<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>
<img src="/img/upgrade.png" alt="Upgrade now" width="80%"/>
<img src="/img/upgrade.png" alt="Upgrade now" width="80%" id="vpnBtn"/>
</p>
</div>
</div>
@@ -345,6 +345,7 @@
// renderApps(true);
/*
const vpnToggle = document.getElementById("vpnToggle");
const vpnLabel = document.querySelector(".switch-label");
@@ -359,6 +360,7 @@
// Alapállapot beállítása
updateStatus();
*/
});
</script>