3 <script type="text/javascript">//<![CDATA[
4 XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "system", "clock_status")%>', null,
7 var s = document.getElementById('<%=self.option%>-clock-status');
10 s.innerHTML = rv.timestring || '?';
15 function sync_clock(btn)
18 btn.value = '<%:Synchronizing...%>';
20 XHR.get('<%=luci.dispatcher.build_url("admin", "system", "clock_status")%>',
21 { set: Math.floor((new Date()).getTime() / 1000) },
25 btn.value = '<%:Sync with browser%>';
33 <span id="<%=self.option%>-clock-status"><em><%:Collecting data...%></em></span>
34 <input type="button" class="cbi-button cbi-button-apply" value="<%:Sync with browser%>" onclick="return sync_clock(this)" />