summaryrefslogtreecommitdiff
path: root/docs/examples/index.html
blob: 44b10afb8cea5aea5c28c7dc3ce6260fbaf51c6c (plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html;charset=utf-8" />

        <title>Jarmon - customisable, Javascript generated charts from
        Collectd RRD data</title>

        <link rel="stylesheet" type="text/css" href="assets/css/style.css" />
        <link rel="stylesheet" type="text/css" href="assets/css/tabs-no-images.css" />
        <link rel="stylesheet" type="text/css" href="assets/css/jquerytools.dateinput.skin1.css" />

        <script type="text/javascript" src="https://raw.github.com/mochi/mochikit/master/MochiKit/Async.js"></script>
        <script type="text/javascript" src="https://raw.github.com/mochi/mochikit/master/MochiKit/Async.js"></script>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
        <script type="text/javascript" src="http://flot.googlecode.com/svn/trunk/excanvas.js"></script>
        <script type="text/javascript" src="http://flot.googlecode.com/svn/trunk/jquery.flot.js"></script>
        <script type="text/javascript" src="http://flot.googlecode.com/svn/trunk/jquery.flot.stack.js"></script>
        <script type="text/javascript" src="http://flot.googlecode.com/svn/trunk/jquery.flot.selection.js"></script>
        <script type="text/javascript" src="http://javascriptrrd.cvs.sourceforge.net/viewvc/*checkout*/javascriptrrd/v0/src/lib/binaryXHR.js?revision=1.5&content-type=text%2Fplain"></script>
        <script type="text/javascript" src="http://javascriptrrd.cvs.sourceforge.net/viewvc/*checkout*/javascriptrrd/v0/src/lib/rrdFile.js?revision=1.8&content-type=text%2Fplain"></script>
        <script type="text/javascript" src="https://raw.github.com/jquerytools/jquerytools/master/src/dateinput/dateinput.js"></script>
        <script type="text/javascript" src="https://raw.github.com/jquerytools/jquerytools/master/src/tabs/tabs.js"></script>
        <script type="text/javascript" src="https://raw.github.com/jquerytools/jquerytools/master/src/toolbox/toolbox.history.js"></script>

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

        $(function() {
            jarmon.buildTabbedChartUi(
                $('.chart-container').remove(),
                jarmon.CHART_RECIPES_COLLECTD,
                $('.tabbed-chart-interface'),
                jarmon.TAB_RECIPES_STANDARD,
                $('.chartRangeControl')
            );
        });
        </script>
    </head>

    <body>
        <div class="chartRangeControl">
            <form>
                <div>
                    <span class="timerange_control custom">
                        <img src="assets/icons/calendar.png" width="16" height="16" alt="calendar" class="from_custom"
                             title="Click to choose a custom start date" />
                        <input name="from_custom" type="text" readonly="readonly"
                               title="Time range start" />
                        <img src="assets/icons/calendar.png" width="16" height="16" alt="calendar" class="to_custom"
                             title="Click to choose a custom end date" />
                        <input name="to_custom" type="text" readonly="readonly"
                               title="Time range end" />
                    </span>
                    <span class="timerange_control standard">
                        <select name="from_standard"
                                title="Time range shortcuts - click to select an alternative time range" >
                        </select>
                    </span>
                    <input name="from" type="hidden"  />
                    <input name="to" type="hidden"  />
                    <select name="tzoffset"
                            title="Timezone offset - click to choose a custom timezone offset" ></select>
                    <input name="action" value="Update" type="button"
                           title="Graph update - click to update all graphs" />
                </div>
                <div class="range-preview"
                     title="Time range preview - click and drag to select a custom timerange" ></div>
            </form>
        </div>
        <div class="tabbed-chart-interface"></div>
        <div class="chart-container">
            <div class="chart-header">
                <h2 class="title"></h2>
                <div class="chart-controls">
                    <input type="button" name="chart_edit" value="edit">
                    <input type="button" name="chart_delete" value="delete">
                </div>
            </div>
            <div class="error"></div>
            <div class="chart"></div>
            <div class="graph-legend"></div>
        </div>
    </body>
</html>