diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-08-18 17:53:51 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-08-18 17:53:51 -0700 |
commit | 51997e9bc3aaab137c93f6af658af2e8dd7fb6e8 (patch) | |
tree | 39fe29620ae4c6045a929cb1584bfbede7de19b5 /includes | |
parent | 373c31ffc41e76165aca5ee709284045c799f0e7 (diff) | |
parent | d2b27af54e560591e44393de0d22fd8621c3320c (diff) | |
download | pathery-51997e9bc3aaab137c93f6af658af2e8dd7fb6e8.tar.xz |
Merge branch 'HEAD' of ssh://git@git.raylu.net/pathery
Diffstat (limited to 'includes')
-rw-r--r-- | includes/header.php | 10 | ||||
-rw-r--r-- | includes/maps.php | 18 |
2 files changed, 12 insertions, 16 deletions
diff --git a/includes/header.php b/includes/header.php index 4e19fad..f9b0f18 100644 --- a/includes/header.php +++ b/includes/header.php @@ -56,7 +56,17 @@ function hideSignin() { }
function htmlFooter() {
+ //Preload the path-images and add the google-analytics script
?>
+ <div style='visibility:hidden;display:none'>
+ <img src='images/Path1.png' alt=''>
+ <img src='images/Path2.png' alt=''>
+ <img src='images/Path3.png' alt=''>
+ <img src='images/Path4.png' alt=''>
+ <img src='images/OverlayTileFaceted50.png' alt=''>
+ <img src='images/OverlayTileFaceted30.png' alt=''>
+ <img src='images/OverlayTileFaceted10.png' alt=''>
+ </div>
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-371072-3']);
diff --git a/includes/maps.php b/includes/maps.php index cddd0d5..474a2ad 100644 --- a/includes/maps.php +++ b/includes/maps.php @@ -110,19 +110,6 @@ function DisplayMap($mapMatrix, $idprefix = 1, $style = 'normal', $speed = NULL) //$height = (($i * 22) + 2).'px';
$jsonmap = str_replace("'", "\'", json_encode($mapdata));
-
- //!! This should move to header.php
- //This works in chrome, not sure about others.
- $preloaddiv = "
- <div style='visibility:hidden;display:none'>
- <img src='images/Path1.png' alt=''>
- <img src='images/Path2.png' alt=''>
- <img src='images/Path3.png' alt=''>
- <img src='images/Path4.png' alt=''>
- <img src='images/OverlayTileFaceted50.png' alt=''>
- <img src='images/OverlayTileFaceted30.png' alt=''>
- <img src='images/OverlayTileFaceted10.png' alt=''>
- </div>";
//$mapdatadiv .= "<div id='$idprefix,mapdata' style='visibility:hidden;display:none'>";
//$mapdatadiv .= $jsonmap;
@@ -134,8 +121,7 @@ function DisplayMap($mapMatrix, $idprefix = 1, $style = 'normal', $speed = NULL) </script>";
- $maptable = "$preloaddiv
- <table style='width:$width;height:$height;' class='grid_table'>
+ $maptable = "<table style='width:$width;height:$height;' class='grid_table'>
$maptable
</table>";
@@ -1079,4 +1065,4 @@ function findTilesM ($mapMatrix, $search) { return $r;
}
-?>
\ No newline at end of file +?> |