diff options
author | Hakim Cassimally <hakim@mysociety.org> | 2014-01-22 10:19:35 +0000 |
---|---|---|
committer | Hakim Cassimally <hakim@mysociety.org> | 2014-03-05 09:43:06 +0000 |
commit | d94ccbc4621df55cacf058b8efca1b14a8cc2dd4 (patch) | |
tree | be185600120cceebf59c3ef3908dd719ab537c40 /web/cobrands/hart/position_map.js | |
parent | cbdcd3a3f2d3b9fe4e5e3b3656bbe20b5c56bc61 (diff) |
[Hart] basic Hart cobranding
Originally copied from template of Bromley code, substituting logo,
council ID, geolocation data, and renaming .scss variables etc.
(NB: this was a bad idea. As per notes/cobranding.txt, should have
started with less copying of files, as this required more cleanup.
Bromley's code has some particularities, like smaller map, split
First/Last name fields and so on.
The current branch has been rebased to present a slightly idealised
picture of the process.)
(Includes contributions by @davea and @stevenday)
* Some code cleanup and added is_two_tier
* Add Hart-specific links to footer
* Shift FMS nav out of the main header
* Update styling to follow design more closely
* Flip nav colours to better indicate links
* Make header banner entire width of the page
* Stretch footer bg to entire width of page
* Add top-level nav links
* Correct header height on mobile
* Correct wording of top menu item
* Remove FMS logo from top of page
* Shift top level nav to correct position
* Invert media query so IE8 displays header properly
* hide folding triangle, as makes no sense on this cobrand
* Some more renaming of Bromley to Hart
* Treat Hart the same as Bromley in the JS
* Whitespace/formatting fixes
* Basic test for cobrand
* Javascript #map_box fixes
* Make sure #map_box is not in desk-only
* ensure there is only single map (one .wrapper only)
* colour tweaks
* Fix example places (postcode, spelling)
* Basic FAQ text
* Set Zoom level 3
* CSS/HTML/JS tweaks removing Bromley customizations
* Switch templates to put navigation in footer, as FMS.com does
* remaining HTML/CSS changes for large map
* replace favicon
* move site-logo scss to one place
* make small logo transparent
Diffstat (limited to 'web/cobrands/hart/position_map.js')
-rw-r--r-- | web/cobrands/hart/position_map.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/web/cobrands/hart/position_map.js b/web/cobrands/hart/position_map.js new file mode 100644 index 000000000..e5bc78c9a --- /dev/null +++ b/web/cobrands/hart/position_map.js @@ -0,0 +1,21 @@ +function position_map_box() { + var $html = $('html'); + if ($html.hasClass('ie6')) { + $('#map_box').prependTo('body').css({ + zIndex: 0, position: 'absolute', + top: 250, left: 0, right: 0, bottom: 0, + width: '100%', height: $(window).height(), + margin: 0 + }); + } else { + $('#map_box').prependTo('body').css({ + zIndex: 0, position: 'fixed', + top: 250, left: 0, right: 0, bottom: 0, + width: '100%', height: '100%', + margin: 0 + }); + } +} + +function map_fix() {} +var slide_wards_down = 0; |