diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-11-22 00:55:08 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-11-22 00:55:08 +0000 |
commit | c24a186f04976a92acc668415469a52c2c34e7bb (patch) | |
tree | 06e2fab00cbe18ae9d3a92c3d338a5672a793190 /gpsd.php | |
parent | a5a7c368f0d30581915c1e5f1d2c6f7e903d0f02 (diff) | |
download | gpsd-c24a186f04976a92acc668415469a52c2c34e7bb.tar.gz |
Start on CSSing this.
Diffstat (limited to 'gpsd.php')
-rw-r--r-- | gpsd.php | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -294,10 +294,8 @@ function parse_pvt($resp){ if (preg_match('/^No/', $GPS['fix'])){ clearstate(); } - } else { - echo "$errstr ($errno)<br/>\n"; + } else $GPS['loc'] = ''; - } $GPS['gt'] = time(); $GPS['lt'] = date("r", $GPS['gt']); @@ -305,7 +303,7 @@ function parse_pvt($resp){ } function write_html($resp){ - global $GPS, $sock, $server, $port, $head, $body; + global $GPS, $sock, $errstr, $errno, $server, $port, $head, $body; global $blurb, $title, $autorefresh, $googlemap, $gmap_key, $footer; header("Content-type: text/html; charset=UTF-8"); @@ -342,6 +340,11 @@ function write_html($resp){ <meta http-equiv="Content-Language" content="en,en-us"/> <title>{$title} - GPSD Test Station {$GPS['loc']}</title> {$autorefresh} +<style> +.warning { + color: #FF0000; + } +</style> </head> <body {$body} {$gmap_body}> @@ -495,7 +498,7 @@ return <<<EOT <div id="map" style="width: 550px; height: 400px; border:1px; border-style: solid;"> Loading... <noscript> -<font color="red">Sorry: you must enable javascript to view our maps.</font><br/> +<span class='warning'>Sorry: you must enable javascript to view our maps.</span><br/> </noscript> </div> |