cleanup
Costa Tsaousis (ktsaou) committed
May 3, 2014 at 20:14 UTC
46f7d526345e4a98d614c7f8388e8f00d4371e0b
1 file changed
-64
web/all.xsl
deleted
-64
@@ -1,64 +0,0 @@
1
-<?xml version="1.0" encoding="utf-8"?>
2
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3
-
4
-<xsl:template match="/">
5
-<html>
6
-<style>
7
- * {font-family:Arial}
8
- div {float: left; margin: 0 0 0 0; }
9
-</style>
10
-
11
-<head>
12
- <!--Load the AJAX API-->
13
- <script type="text/javascript" src="https://www.google.com/jsapi"></script>
14
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
15
- <script type="text/javascript" src="/netdata.js"></script>
16
- <script type="text/javascript">
17
-
18
- <!--
19
- <xsl:variable name="unique-list" select="//graph/type[not(.=following::type)]" />
20
- <xsl:for-each select="$unique-list">
21
- alert('<xsl:value-of select="." />');
22
- </xsl:for-each>
23
- -->
24
-
25
- // Set a callback to run when the Google Visualization API is loaded.
26
- google.setOnLoadCallback(drawCharts);
27
-
28
- function drawCharts() {
29
- <xsl:for-each select="catalog/graph">
30
- addChart('<xsl:value-of select="name"/>', 'div_graph_<xsl:value-of select="position()"/>', 0, 0, "<xsl:value-of select="dataurl"/>/0/1/average", "<xsl:value-of select="title"/>", "<xsl:value-of select="vtitle"/>");
31
- </xsl:for-each>
32
- refreshCharts(999999);
33
- }
34
-
35
- var refreshCount = 0;
36
- function myChartsRefresh() {
37
- refreshCount += 2;
38
- if(refreshCount > 500) location.reload();
39
-
40
- // refresh up to 2 charts per second
41
- refreshCharts(2);
42
- }
43
-
44
- setInterval(myChartsRefresh, 1000);
45
-
46
- //window.onresize = function(event) {
47
- // refreshCharts(999999);
48
- //};
49
-
50
- </script>
51
-</head>
52
-<body>
53
- <xsl:for-each select="catalog/graph">
54
- <div>
55
- <div>
56
- <xsl:attribute name="id">div_graph_<xsl:value-of select="position()"/></xsl:attribute>
57
- </div>
58
- </div>
59
- </xsl:for-each>
60
-
61
-</body>
62
-</html>
63
-</xsl:template>
64
-</xsl:stylesheet>