diff options
Diffstat (limited to 'src/pmwebapi/jsdemos/jsbrowser')
-rw-r--r-- | src/pmwebapi/jsdemos/jsbrowser/GNUmakefile | 27 | ||||
-rw-r--r-- | src/pmwebapi/jsdemos/jsbrowser/index.html | 34 | ||||
-rw-r--r-- | src/pmwebapi/jsdemos/jsbrowser/jsbrowser.js | 12 |
3 files changed, 73 insertions, 0 deletions
diff --git a/src/pmwebapi/jsdemos/jsbrowser/GNUmakefile b/src/pmwebapi/jsdemos/jsbrowser/GNUmakefile new file mode 100644 index 0000000..70b65a1 --- /dev/null +++ b/src/pmwebapi/jsdemos/jsbrowser/GNUmakefile @@ -0,0 +1,27 @@ +# +# Copyright (c) 2013 Red Hat. All Rights Reserved. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 2 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# + +TOPDIR = ../../../.. +include $(TOPDIR)/src/include/builddefs + +JSFILES = jsbrowser.js +HTMLFILES = index.html + +LSRCFILES = $(JSFILES) $(HTMLFILES) + +default default_pcp: + +include $(BUILDRULES) + +install install_pcp: diff --git a/src/pmwebapi/jsdemos/jsbrowser/index.html b/src/pmwebapi/jsdemos/jsbrowser/index.html new file mode 100644 index 0000000..bf79522 --- /dev/null +++ b/src/pmwebapi/jsdemos/jsbrowser/index.html @@ -0,0 +1,34 @@ +<html> + <head> + <script type="text/javascript" src="../jquery-1.7.2.js"></script> + <script type="text/javascript" src="jsbrowser.js"></script> + <title>pcp metric browser</title> + </head> + <body> + + <!-- metadata about current context --> + + <div id="context"> + </div> + + <!-- forms associated with connecting to new context --> + + <div id="new_context"> + <h1>pcp metric browser: host-local connection</h1> + <input type="submit" value="submit"></input> + <h1>pcp metric browser: remote connection</h1> + <input type="text" name="hostname"></input> + <h1>pcp metric browser: archive file</h1> + <input type="text" name="archivefile"></input> + </div> + + <!-- checkboxed list of metrics --> + + <div id="metrics"> + </div> + + <!-- metric values --> + <div id="values"> + </div> + </body> +</html> diff --git a/src/pmwebapi/jsdemos/jsbrowser/jsbrowser.js b/src/pmwebapi/jsdemos/jsbrowser/jsbrowser.js new file mode 100644 index 0000000..91d9a01 --- /dev/null +++ b/src/pmwebapi/jsdemos/jsbrowser/jsbrowser.js @@ -0,0 +1,12 @@ +/*! + */ + +var context = -1; /* pmwebapi context, if connected */ + +/* Initial load. */ +$(document).ready(function() { + +}); + + + |