aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/html.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/html.inc.php')
-rw-r--r--inc/html.inc.php17
1 files changed, 7 insertions, 10 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php
index c8cfbaf..117d61d 100644
--- a/inc/html.inc.php
+++ b/inc/html.inc.php
@@ -99,21 +99,18 @@ function html_end() {
99EOT; 99EOT;
100 100
101 if ($CONFIG['graph_type'] == 'canvas') { 101 if ($CONFIG['graph_type'] == 'canvas') {
102 echo <<<EOT
103<script type="text/javascript" src="{$html_weburl}js/CGP.js"></script>
104
105EOT;
106 if ($CONFIG['rrd_fetch_method'] == 'async') { 102 if ($CONFIG['rrd_fetch_method'] == 'async') {
107 echo <<<EOT 103 $js_async = 'true';
108<script type="text/javascript" src="{$html_weburl}js/CGP-async.js"></script>
109
110EOT;
111 } else { 104 } else {
105 $js_async = 'false';
106 }
112 echo <<<EOT 107 echo <<<EOT
113<script type="text/javascript" src="{$html_weburl}js/CGP-sync.js"></script> 108<script src="{$html_weburl}js/CGP.js"></script>
109<script>
110CGP.drawAll($js_async);
111</script>
114 112
115EOT; 113EOT;
116 }
117 } 114 }
118 115
119echo <<<EOT 116echo <<<EOT