Date and Time enhancements

- Add Time State information
This commit is contained in:
bergware
2024-12-28 14:17:22 +01:00
parent ff8e70d627
commit 14e36a9c55
2 changed files with 4 additions and 1 deletions
+4
View File
@@ -73,6 +73,9 @@ _(Time zone)_:
:timezone_help:
_(Time state)_:
: <span id="timeState"><i class="fa fa-spin fa-refresh"></i></span>
_(Time sync)_:
: <select name="USE_NTP" onchange="updatePage(this.form,'slow')">
<?=mk_option($var['USE_NTP'], "yes", _('NTP'))?>
@@ -308,5 +311,6 @@ $(function() {
if (form.USE_NTP.selectedIndex==1) $('#noports').show();
<?endif;?>
updatePage(form);
setInterval(function(){$.post('/webGui/include/DashboardApps.php',{ntp:'ntp'},function(ntp){$('#timeState').html('<i class="fa fa-spin fa-refresh"></i>&nbsp;'+ntp);});},2000);
});
</script>
@@ -1,3 +1,2 @@
div.extra,span.ipv4,span.ipv6,span.mac,span#noports{display:none}
select,input[type=text]{margin-right:40px}
select[name=timeZone]{max-width:166px}