diff options
author | Dave Whiteland <dave@mysociety.org> | 2012-04-29 18:14:32 +0100 |
---|---|---|
committer | Dave Whiteland <dave@mysociety.org> | 2012-04-29 18:14:32 +0100 |
commit | 16061e060354affb25701a8c6111ee30df2ac19c (patch) | |
tree | a2d0f949b532f582becff31ef7f79b5deacc4186 /web/cobrands/barnet/javascript/styleswitch.js | |
parent | b38ba427f7facd6e8042ae667b5b3bac1724803a (diff) | |
parent | 1fc50dcc7f65ae04055a803579445a9397e3ffdf (diff) |
Merge branch 'master' into barnet-integration
(prior to go-live... amongst other things, the Barnet web templates had changed.
NB conflict with carton.lock, accepted master in full)
Conflicts:
carton.lock
Diffstat (limited to 'web/cobrands/barnet/javascript/styleswitch.js')
-rw-r--r-- | web/cobrands/barnet/javascript/styleswitch.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/web/cobrands/barnet/javascript/styleswitch.js b/web/cobrands/barnet/javascript/styleswitch.js deleted file mode 100644 index c4afb0b28..000000000 --- a/web/cobrands/barnet/javascript/styleswitch.js +++ /dev/null @@ -1,26 +0,0 @@ -/**
-* Styleswitch stylesheet switcher built on jQuery
-* Under an Attribution, Share Alike License
-* By Kelvin Luck ( http://www.kelvinluck.com/ )
-**/
-
-$(document).ready(function() {
- $('.styleswitch').click(function()
- {
- switchStylestyle(this.getAttribute("rel"));
- return false;
- });
- var c = readCookie('style');
- if (c) switchStylestyle(c);
-});
-
-function switchStylestyle(styleName)
-{
- $('link[@rel*=style][@title]').each(function(i)
- {
- this.disabled = true;
- if (this.getAttribute('title') == styleName) this.disabled = false;
- });
- createCookie('style', styleName, 365);
-}
-
|