/halogy/application/modules/halogy/views/tracking.php

https://bitbucket.org/haloweb/halogy-1.0/ · PHP · 16 lines · 12 code · 4 blank · 0 comment · 0 complexity · ea3697cec59779479b2b46604a67e335 MD5 · raw file

  1. <script type="text/javascript">
  2. function refresh(){
  3. $('div.loader').load('/admin/tracking_ajax');
  4. timeoutID = setTimeout(refresh, 5000);
  5. }
  6. $(function(){
  7. timeoutID = setTimeout(refresh, 0);
  8. });
  9. </script>
  10. <h1>Most Recent Visits <small>(<a href="/admin">Back to Dashboard</a>)</small></h1>
  11. <br />
  12. <div class="loader"></div>