2 <html xmlns:ng="http://angularjs.org">
3 <script src="http://code.angularjs.org/angular-0.9.12.min.js" ng:autobind></script>
4 <style type="text/css">
5 th { text-align: right }
9 function RedisCntl($xhr,$defer) {
12 this.fetch = function() {
13 self.url = '/_redis' + '?callback=JSON_CALLBACK';
14 $xhr('JSON', self.url, function(code, response) {
16 self.response = response;
18 $defer( self.fetch, 5000 ); // 5s
22 RedisCntl.$inject = ['$xhr','$defer'];
24 <div ng:controller="RedisCntl">
26 {{response.status['CPE.start']}} -
27 {{response.status['CPE.finish']}}
28 <pre>{{response.status.poll.CPE}}</pre>
31 {{response.status['ZTEDSLAM.poll.start']}} -
32 {{response.status['ZTEDSLAM.poll.finish']}}
33 <pre>{{response.status.poll.ZTEDSLAM}}</pre>
36 {{response.status['ZTEMSAN.poll.start']}} -
37 {{response.status['ZTEMSAN.poll.finish']}}
38 <pre>{{response.status.poll.ZTEMSAN}}</pre>
40 <p><input type=checkbox name=debug>