aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands/barnet/position_map.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-04-24 15:49:12 +0100
committerStruan Donald <struan@exo.org.uk>2012-04-24 15:49:12 +0100
commitd7ea16b79d6dd9fe65c4550edf393bbf8fd9d04d (patch)
tree4b7c00e01b05d9170968040049e940010cba978c /web/cobrands/barnet/position_map.js
parent4aa639173602d06ec85532c8598d99983b8340b4 (diff)
New style map Barnet Cobrand Work in Progress
Also, pull out map positioning JS to a separate file to make cobrands a bit more modular.
Diffstat (limited to 'web/cobrands/barnet/position_map.js')
-rw-r--r--web/cobrands/barnet/position_map.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/web/cobrands/barnet/position_map.js b/web/cobrands/barnet/position_map.js
new file mode 100644
index 000000000..95e6717ee
--- /dev/null
+++ b/web/cobrands/barnet/position_map.js
@@ -0,0 +1,14 @@
+function position_map_box() {
+ var map_pos = 'absolute', map_height = '100%';
+ if ($('html').hasClass('ie6')) {
+ map_pos = 'absolute';
+ map_height = $(window).height();
+ }
+ $('#map_box').prependTo('.wrapper').css({
+ zIndex: 0, position: map_pos,
+ top: $('.wrapper').top, left: $('.wrapper').left,
+ right: $('.wrapper').right, bottom: $('.wrapper').bottom,
+ width: '100%', height: map_height,
+ margin: 0
+ });
+}