vpn
This commit is contained in:
@@ -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();
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user