/[RFID]/www/rfid.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /www/rfid.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 56 by dpavlin, Fri Jun 26 11:27:32 2009 UTC revision 57 by dpavlin, Fri Jun 26 11:47:01 2009 UTC
# Line 14  Line 14 
14  .d7 {  .d7 {
15          background: #cfc;          background: #cfc;
16  }  }
17    
18    label[for=pull-reader] {
19            position: absolute;
20            top: 1em;
21            right: 1em;
22            background: #eee;
23    }
24    
25  </style>  </style>
26  <script type="text/javascript">  <script type="text/javascript">
27    
# Line 41  function got_visible_tags(data,textStatu Line 49  function got_visible_tags(data,textStatu
49    
50  function scan_tags() {  function scan_tags() {
51          console.info('scan_tags');          console.info('scan_tags');
52          $.getJSON("http://localhost:9000/scan?callback=?", got_visible_tags);          if ( $('input#pull-reader').attr('checked') )
53                    $.getJSON("http://localhost:9000/scan?callback=?", got_visible_tags);
54  }  }
55    
56  $(document).ready(function() {  $(document).ready(function() {
57                    $('input#pull-reader').click( function() {
58                            scan_tags();
59                    });
60                    $('input#pull-reader').attr('checked', true); // force check on load
61                  scan_tags();                  scan_tags();
62  });  });
63  </script>  </script>
# Line 53  $(document).ready(function() { Line 66  $(document).ready(function() {
66    
67  <h1>RFID tags in range</h1>  <h1>RFID tags in range</h1>
68    
69    <label for=pull-reader>
70    <input id=pull-reader type=checkbox checked=1>
71    active
72    </label>
73    
74  <div id="tags">  <div id="tags">
75  RFID reader not found or driver program not started.  RFID reader not found or driver program not started.
76  </div>  </div>

Legend:
Removed from v.56  
changed lines
  Added in v.57

  ViewVC Help
Powered by ViewVC 1.1.26