File: details.html

package info (click to toggle)
psensor 1.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,216 kB
  • sloc: javascript: 14,982; ansic: 7,696; perl: 5,119; sh: 4,979; makefile: 379; xml: 223; sed: 16
file content (60 lines) | stat: -rw-r--r-- 1,468 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<html>
  <head>
    <meta charset="utf-8">
    <title id="title">Sensor </title>

    <link href="jqplot.css" rel="stylesheet" type="text/css"/>	
    <link href="style.css" rel="stylesheet" type="text/css"/>	

    <script src="jquery.js" type="text/javascript"></script>
    <script src="jqplot.js" type="text/javascript"></script>
    <script src="jqplot.dateAxisRenderer.js" type="text/javascript"></script>

    <script src="psensor.js" type="text/javascript"></script>

    <script>
      $(document).ready(function() {
          	var url_id;

      	  	url_id = get_url_params()["id"];

		update_menu();
		$.getJSON(url_id, function(data) {
      				update_chart("chart", type_to_str(data["type"]), data);
      	  	});

      		setInterval(function() {
          		$.getJSON(url_id, function(data) {
      				update_chart("chart", type_to_str(data["type"]), data);
      	  		});
      		}, 5000);

      		// reload page in order to workaround memory-leak in JQPlot
      		setInterval(function() {
      			location.reload();
      		}, 60000);

      });
    </script>
  </head>
  <body>

    <div id="page">
      <div id="menu">
	<ul id="menu-list">
	  <li><a href="index.html">Summary</a></li>
	</ul>
      </div>
      
      <div id="main">
	<h1></h1>
	
	<div class="chart" id="chart"></div>	
      </div>
      
      <div id="footer">
	Generated by <a href='http://wpitchoune.net/psensor'>psensor-server</a>
      </div>
    </div>
  </body>
</html>