Much simpler than that.
This is all I have (inside a <td> </td>) on this page
http://silveracorn.nz/weather/wxtrends.php Code: Select all
<div class="row">
<div id="tip_7" class="gauge">
<canvas id="canvas_dir" class="gaugeSizeSml"></canvas>
</div>
<div id="tip_10" class="gauge">
<canvas id="canvas_rose" class="gaugeSizeSml"></canvas>
</div>
</div>
to display the two gauges you see there - no changes to any other part of the gauges fileset.
You will also have to include all the necessary support files in the head section i.e.
Code: Select all
<!-- Included Scripts -->
<link rel="stylesheet" href="<?php echo $sharedir ?>lib/steelseries/css/wx-gauges-ss.css">
<!-- CDN hosted JQuery library -->
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<!-- Combined steelseries.js & tween.js -->
<script src="<?php echo $sharedir ?>lib/steelseries/scripts/steelseries_tween.min.js"></script>
<script src="<?php echo $sharedir ?>lib/steelseries/scripts/language.min.js"></script>
<script src="<?php echo $sharedir ?>lib/steelseries/scripts/gauges.js"></script>
<!-- Optional Wind Rose scripts -->
<script src="<?php echo $sharedir ?>lib/steelseries/scripts/RGraph.common.core.min.js"></script>
<script src="<?php echo $sharedir ?>lib/steelseries/scripts/RGraph.rose.min.js"></script>
The <?php echo $sharedir ?> is simply the path to a separate folder - replace this with what ever your path is from the location the script is running in.