[Xymon] Adding a CSS style element to results?

Richard L. Hamilton rlhamil2 at gmail.com
Sun Jun 12 02:09:00 CEST 2016


Which of the many header files has the <head> section when clicking on a particular dot?

For example, I want to use Google maps API (not just the URL, but the JavaScript stuff too) to display a map via a client "location" script, e.g. to track my laptop.

The google maps API seems to require a CSS style in the <head> section (shouldn't conflict with anything else) - their example is below.  So I need to be able to get that into there somehow.  I don't think that would conflict with anything existing.

Alternatively, if there's a separate stylesheet file that would be loaded, that would be great.  Usually, my "location" column is clear (since it's not really a status in the usual sense), but it's not impossible that I might one day change that to be some other color, for instance if unable to obtain location, or if outside an expected area, or whatever.  So whatever I do should work with any status color.
<!DOCTYPE html>
<html>
  <head>
    <style>
      #map {
        width: 500px;
        height: 400px;
      }
    </style>
  </head>
  <body>
    <div id="map"></div>
    <script>
      function initMap() {
        var mapDiv = document.getElementById('map');
        var map = new google.maps.Map(mapDiv, {
          center: {lat: 44.540, lng: -78.546},
          zoom: 8
        });
      }
    </script>
    <script src="https://maps.googleapis.com/maps/api/js?callback=initMap"
        async defer></script>
  </body>
</html>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20160611/26469f24/attachment.html>


More information about the Xymon mailing list