File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 http://openenergymonitor.org
1010 */
1111
12- global $ path , $ embed ;
12+ global $ path , $ embed, $ settings ;
1313 global $ fullwidth ;
1414 $ fullwidth = true ;
1515
1818 $ apikey = "" ;
1919 if (isset ($ _GET ['apikey ' ])) $ apikey = $ _GET ['apikey ' ];
2020
21- $ js_css_version = 4 ;
21+ $ min_feed_interval = 10 ;
22+ if (isset ($ settings ['feed ' ]['min_feed_interval ' ])) {
23+ $ min_feed_interval = (int ) $ settings ['feed ' ]['min_feed_interval ' ];
24+ }
25+
26+ $ js_css_version = 5 ;
2227?>
2328
2429<!--[if IE]><script language="javascript" type="text/javascript" src="<?php echo $ path ;?> Lib/flot/excanvas.min.js"></script><![endif]-->
30+ <script>var min_feed_interval = <?php echo $ min_feed_interval ; ?> ;</script>
2531<script language="javascript" type="text/javascript" src="<?php echo $ path ;?> Lib/flot/jquery.flot.min.js"></script>
2632<script language="javascript" type="text/javascript" src="<?php echo $ path ;?> Lib/flot/jquery.flot.time.min.js"></script>
2733<script language="javascript" type="text/javascript" src="<?php echo $ path ;?> Lib/flot/jquery.flot.selection.min.js"></script>
You can’t perform that action at this time.
0 commit comments