diff --git a/common.js b/common.js index f671ad5..733124f 100644 --- a/common.js +++ b/common.js @@ -122,6 +122,8 @@ function check_vpn() { else { $('#pro_off').hide(); $('#pro_on').show(); + $('#vpn_off').hide(); + $('#vpn_on').show(); document.getElementById('vpnToggle').checked = true; document.querySelector(".switch-label").textContent = "ON"; } @@ -129,6 +131,8 @@ function check_vpn() { else if (data=="2") { $('#pro_off').hide(); $('#pro_on').show(); + $('#vpn_on').hide(); + $('#vpn_off').show(); document.getElementById('vpnToggle').checked = false; document.querySelector(".switch-label").textContent = "OFF"; } @@ -213,7 +217,8 @@ function load_template(additional, block) { jQuery("div.deployment").each(function(index) { $(this).html(''); }); - jQuery("#"+block).html('Loading '+additional+' template...'); + //jQuery("#"+block).html('Loading '+additional+' template...'); + jQuery("#"+block).html('
Loading...
'); var url = 'scan.php?op=deployment&additional='+additional; jQuery.get(url, function(data) { console.log('load_template: '+data); @@ -239,7 +244,8 @@ function reinstall(additional, block) { jQuery("div.deployment").each(function(index) { $(this).html(''); }); - jQuery("#"+block).html('Loading '+additional+' template...'); + //jQuery("#"+block).html('Loading '+additional+' template...'); + jQuery("#"+block).html('
Loading...
'); var url = 'scan.php?op=reinstall&additional='+additional; jQuery.get(url, function(data) { console.log('reinstall '+additional+': '+data); @@ -279,8 +285,8 @@ function uninstall(additional) { } function confirm_uninstall(additional) { - jQuery("#"+additional).html('Loading...'); - jQuery("#popupText").html('Loading'); // manage2 + jQuery("#"+additional).html('
Loading...
'); + jQuery("#popupText").html('
Loading...
'); // manage2 var url = 'scan.php?op=uninstall&additional='+additional; jQuery.get(url, function(data) { console.log('uninstall '+additional+': '+data); @@ -408,53 +414,52 @@ function get_services() { function get_proxy_html() { proxy_html = ` -
- Enable proxy -
+
+
-
- - -
- Please enter a valid domain. -
+ +
+
+
+
-
- + +
+
+
-
- + +
-
- Please enter a valid email. -
+
+
-
- + +
-
-
- -
-
-
+
+
+ +
+
+ `; @@ -525,19 +530,19 @@ jQuery(document).ready(function(){ }); jQuery('#update_btn').click(function() { - jQuery('#updates').html('Looking for updates... Please wait...'); + jQuery('#updates').html('
Looking for updates...
'); get_updates(); }); jQuery('#add_repo').submit(function() { - jQuery('#repositories').html('Loading...'); + jQuery('#repositories').html('
Loading...
'); add_repository(); return false; }); jQuery('#save_vpn').submit(function() { save_vpn(); - jQuery('#vpn').html('Loading...'); + jQuery('#vpn').html('
Loading...
'); return false; }); diff --git a/install.js b/install.js index 45bc2ad..cf45d5b 100644 --- a/install.js +++ b/install.js @@ -163,7 +163,7 @@ function check_install() { } else { counter+=1 - $("#info").html('Please wait ... ' + counter); + $("#info").html('Please wait ...'); setTimeout(check_install, 1000); } }); diff --git a/install.php b/install.php index 2e9fe09..4989918 100644 --- a/install.php +++ b/install.php @@ -46,7 +46,7 @@ else { $header_text="Installing in progress... Please wait..."; //$key = "install:".date("YmdHis"); $key = "install"; - if (set_output($key,$json)) echo "OK"; + if (set_output($key,$json)) echo ""; else echo "ERROR"; } @@ -74,7 +74,7 @@ echo "
".$output."
";
- @@ -66,7 +70,7 @@
- Loading applications. Please wait... +
Loading applications...
- Looking for updates... Please wait... +
Looking for updates...
`; get_updates(); @@ -219,7 +223,7 @@

System services

- Loading... +
Loading...
`; get_system(); @@ -291,7 +295,7 @@

Repositories

-
Loading...
+
Loading repositories...

@@ -364,6 +368,6 @@ - + diff --git a/scan.html b/scan.html index ed487cd..7426617 100644 --- a/scan.html +++ b/scan.html @@ -11,7 +11,7 @@
-