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